Copter: disarm routine shortcut
Extra check so we only run the disarm check when we are actually armed. The ground stations sometimes send many disarm messages which can be ignored
This commit is contained in:
parent
ec73169c02
commit
bc4b2ff05d
@ -417,8 +417,14 @@ static bool arm_checks(bool display_failure)
|
||||
return true;
|
||||
}
|
||||
|
||||
// init_disarm_motors - disarm motors
|
||||
static void init_disarm_motors()
|
||||
{
|
||||
// return immediately if we are already disarmed
|
||||
if (!motors.armed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
#if HIL_MODE != HIL_MODE_DISABLED || CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
|
||||
gcs_send_text_P(SEVERITY_HIGH, PSTR("DISARMING MOTORS"));
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user