mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
Plane: refuse arming if we are in a landing sequence
this helps when the aircraft has gone into a landing sequence due to a failsafe before it is armed. Arming while in the landing sequence is very unlikely to be what the user wants
This commit is contained in:
parent
b8a92058b1
commit
20f641de99
@ -102,6 +102,11 @@ bool AP_Arming_Plane::pre_arm_checks(bool display_failure)
|
||||
}
|
||||
}
|
||||
|
||||
if (plane.mission.get_in_landing_sequence_flag()) {
|
||||
check_failed(display_failure,"In landing sequence");
|
||||
ret = false;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user