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:
Andrew Tridgell 2022-05-14 13:23:25 +10:00 committed by Randy Mackay
parent ee41132483
commit eed5079295
1 changed files with 5 additions and 0 deletions

View File

@ -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; return ret;
} }