From 9c474a5603f7e905034e74e95cd6ba651b11774f Mon Sep 17 00:00:00 2001 From: Bob Long Date: Sun, 26 May 2024 21:50:08 -0500 Subject: [PATCH] CarbonixF405: fix ESC[15] bug This fixes an issue where an errant ESC[15] would show up for 5 seconds after boot that would contain NaN values. This is related to a bug that was years ago in ArduPilot: https://github.com/ArduPilot/ardupilot/pull/22308 Basically, different areas of the code had different values for ESC_TELEM_MAX_ESCS based which other header files were included at that time. SW-187 --- libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat index f46e5137da..614a32263b 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat @@ -120,4 +120,6 @@ define HAL_PERIPH_ENABLE_RC_OUT # enable ESC control define HAL_SUPPORT_RCOUT_SERIAL 1 -define HAL_PERIPH_ARM_MONITORING_ENABLE 1 \ No newline at end of file +define HAL_PERIPH_ARM_MONITORING_ENABLE 1 + +define NUM_SERVO_CHANNELS 2