Skip to content

Commit

Permalink
Plane: refuse arming if we are in a landing sequence
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tridge committed May 15, 2022
1 parent b8a9205 commit 20f641d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ArduPlane/AP_Arming.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 20f641d

Please sign in to comment.