From 558ba47e7eeb9c71eceab32ac8b88cb0d2bd7427 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sun, 19 Feb 2023 21:28:46 +0000 Subject: [PATCH] AP_HAL_ChibiOS: enable VTX power on MambaF405 2022 --- libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/defaults.parm | 5 +++++ libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef-bl.dat | 2 ++ libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat | 6 +++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/defaults.parm diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/defaults.parm new file mode 100644 index 0000000000..9197bfd3fe --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/defaults.parm @@ -0,0 +1,5 @@ +# setup for LEDs on chan9 +SERVO7_FUNCTION 120 +NTF_LED_TYPES 257 +# Default VTX power to on +RELAY_DEFAULT 1 \ No newline at end of file diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef-bl.dat index 7768209dbd..9749cd73ee 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef-bl.dat @@ -1 +1,3 @@ include ../MambaF405US-I2C/hwdef-bl.dat + +PC5 VTX_PWR OUTPUT HIGH diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat index 372edde68c..08fcba0e54 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat @@ -2,7 +2,7 @@ include ../MambaF405US-I2C/hwdef.dat -undef PA9 PA8 PC9 PC8 PB3 PB11 +undef PA9 PA8 PC9 PC8 PB3 PB11 PC5 PA9 TIM1_CH2 TIM1 PWM(1) GPIO(50) BIDIR PA8 TIM1_CH1 TIM1 PWM(2) GPIO(51) @@ -14,6 +14,10 @@ PB1 TIM3_CH4 TIM3 PWM(6) GPIO(55) # LED strip PB3 TIM2_CH2 TIM2 PWM(7) GPIO(56) +# VTX Power control - should be high at startup to ensure power +PC5 VTX_PWR OUTPUT HIGH GPIO(81) +define RELAY2_PIN_DEFAULT 81 + PB11 USART3_RX USART3 NODMA # MambaF405-2022B board