From b01041e90db89b2c503f6313a7bdc46f0bf084bd Mon Sep 17 00:00:00 2001 From: Roman Dvorak Date: Mon, 26 Aug 2024 19:51:11 +0200 Subject: [PATCH] updates of board --- .../init.d/airframes/17005_TF-G250 | 58 +++++++++++++++++++ boards/px4/fmu-v5/default.px4board | 2 + boards/px4/fmu-v6x/autogyro.px4board | 4 ++ boards/px4/fmu-v6x/default.px4board | 3 +- boards/px4/fmu-v6x/src/board_config.h | 2 +- 5 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 ROMFS/px4fmu_common/init.d/airframes/17005_TF-G250 create mode 100644 boards/px4/fmu-v6x/autogyro.px4board diff --git a/ROMFS/px4fmu_common/init.d/airframes/17005_TF-G250 b/ROMFS/px4fmu_common/init.d/airframes/17005_TF-G250 new file mode 100644 index 000000000000..081a8f2edd62 --- /dev/null +++ b/ROMFS/px4fmu_common/init.d/airframes/17005_TF-G250 @@ -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 +# +# @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 diff --git a/boards/px4/fmu-v5/default.px4board b/boards/px4/fmu-v5/default.px4board index 1132a48bbfb4..d44284b01189 100644 --- a/boards/px4/fmu-v5/default.px4board +++ b/boards/px4/fmu-v5/default.px4board @@ -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 diff --git a/boards/px4/fmu-v6x/autogyro.px4board b/boards/px4/fmu-v6x/autogyro.px4board new file mode 100644 index 000000000000..864f59b4021d --- /dev/null +++ b/boards/px4/fmu-v6x/autogyro.px4board @@ -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 diff --git a/boards/px4/fmu-v6x/default.px4board b/boards/px4/fmu-v6x/default.px4board index 7c4bf0b6f6cb..cea5589db65d 100644 --- a/boards/px4/fmu-v6x/default.px4board +++ b/boards/px4/fmu-v6x/default.px4board @@ -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 diff --git a/boards/px4/fmu-v6x/src/board_config.h b/boards/px4/fmu-v6x/src/board_config.h index 7c98f9490207..57d85475a350 100644 --- a/boards/px4/fmu-v6x/src/board_config.h +++ b/boards/px4/fmu-v6x/src/board_config.h @@ -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