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 Randy Mackay
parent 8dbce394f2
commit c35616b35a
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)
{
if (!hobbywing.enabled) {
if (!hobbywing.enabled || hal.util->get_soft_armed()) {
return;
}
uint32_t now = AP_HAL::millis();