Skip to content

Commit

Permalink
updates of board
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak committed Aug 26, 2024
1 parent 510d3cf commit 1fba76d
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 2 deletions.
58 changes: 58 additions & 0 deletions ROMFS/px4fmu_common/init.d/airframes/17005_TF-G250
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#!/bin/sh
#
# @name ThunderFly TF-G2505 (Nano)
#
# @type Autogyro
# @class Autogyro
#
# @output Motor1 throttle
# @output Servo2 rotor_head_L
# @output Servo3 reserve
# @output Servo4 rotor_head_R
#
#
# @url https://github.com/ThunderFly-aerospace/TF-G250/
# @maintainer ThunderFly s.r.o., Roman Dvorak <dvorakroman@thunderfly.cz>
#
# @board px4_fmu-v2 exclude
# @board bitcraze_crazyflie exclude
#

. ${R}etc/init.d/rc.fw_defaults


# param set-default BAT1_CAPACITY 3300
# param set-default BAT1_N_CELLS 3

param set-default SENS_BOARD_ROT 2

# param set-default FW_AIRSPD_MIN 7
# param set-default FW_AIRSPD_TRIM 13
# param set-default FW_THR_TRIM 0.8

# param set-default FW_MAN_P_MAX 25
# param set-default FW_MAN_R_MAX 25
# param set-default FW_PR_I 0.02
# param set-default FW_R_LIM 40
# param set-default FW_P_LIM_MAX 25
# param set-default FW_P_LIM_MIN -5
# param set-default FW_P_RMAX_NEG 20

param set-default CA_AIRFRAME 1

param set-default CA_ROTOR_COUNT 1
param set-default CA_ROTOR0_PX 0.3

param set-default CA_SV_CS_COUNT 3
param set-default CA_SV_CS0_TRQ_R 0
param set-default CA_SV_CS0_TRQ_Y 1
param set-default CA_SV_CS0_TYPE 4
param set-default CA_SV_CS1_TRQ_P 0
param set-default CA_SV_CS1_TRQ_R -0.5
param set-default CA_SV_CS1_TYPE 1
param set-default CA_SV_CS2_TRQ_P 1
param set-default CA_SV_CS2_TYPE 3

# param set-default PWM_MAIN_TIM0 50
# param set-default PWM_MAIN_TIM1 50
# param set-default PWM_MAIN_TIM2 50
2 changes: 2 additions & 0 deletions boards/px4/fmu-v5/default.px4board
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ CONFIG_DRIVERS_PWM_OUT=y
CONFIG_DRIVERS_PX4IO=y
CONFIG_COMMON_RC=y
CONFIG_DRIVERS_RC_INPUT=y
CONFIG_COMMON_RPM=y
CONFIG_DRIVERS_RPM_S35700=y
CONFIG_DRIVERS_SAFETY_BUTTON=y
CONFIG_DRIVERS_SMART_BATTERY_BATMON=y
CONFIG_COMMON_TELEMETRY=y
Expand Down
4 changes: 4 additions & 0 deletions boards/px4/fmu-v6x/autogyro.px4board
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# CONFIG_BOARD_UAVCAN_TIMER_OVERRIDE is not set
CONFIG_DRIVERS_UAVCAN=n
CONFIG_COMMON_RPM=y
CONFIG_DRIVERS_PPS_CAPTURE=y
3 changes: 2 additions & 1 deletion boards/px4/fmu-v6x/default.px4board
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ CONFIG_DRIVERS_POWER_MONITOR_INA228=y
CONFIG_DRIVERS_POWER_MONITOR_INA238=y
CONFIG_DRIVERS_POWER_MONITOR_PM_SELECTOR_AUTERION=y
CONFIG_DRIVERS_PWM_OUT=y
CONFIG_DRIVERS_PX4IO=y
CONFIG_DRIVERS_RC_SBUS_RC=y
CONFIG_DRIVERS_RC_INPUT=y
CONFIG_COMMON_RPM=y
CONFIG_DRIVERS_SAFETY_BUTTON=y
CONFIG_DRIVERS_TONE_ALARM=y
CONFIG_DRIVERS_UAVCAN=y
Expand Down
2 changes: 1 addition & 1 deletion boards/px4/fmu-v6x/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@
/* RC Serial port */

#define RC_SERIAL_PORT "/dev/ttyS5"
#define RC_SERIAL_SINGLEWIRE
//#define RC_SERIAL_SINGLEWIRE

/* Input Capture Channels. */
#define INPUT_CAP1_TIMER 1
Expand Down

0 comments on commit 1fba76d

Please sign in to comment.