AP_UAVCAN: don't update hobbywing ESC table while armed

some hobbywing ESCs have a bug where requesting the ID table can cause
the ESC to stutter
This commit is contained in:
Andrew Tridgell 2023-12-05 14:10:05 +11:00 committed by Peter Barker
parent c7ef591a56
commit 42f6c9400d
1 changed files with 1 additions and 1 deletions

View File

@ -1713,7 +1713,7 @@ void AP_UAVCAN::logging(void)
*/ */
void AP_UAVCAN::hobbywing_ESC_update(void) void AP_UAVCAN::hobbywing_ESC_update(void)
{ {
if (!hobbywing.enabled) { if (!hobbywing.enabled || hal.util->get_soft_armed()) {
return; return;
} }
uint32_t now = AP_HAL::millis(); uint32_t now = AP_HAL::millis();