mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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:
parent
723eda69f7
commit
61fce77bfe
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user