Skip to content

Commit

Permalink
Plane: don't switch to RTL on battery failsafe if in autoland
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 authored and tridge committed Feb 25, 2025
1 parent d84a3ec commit 6ad05dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ArduPlane/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,11 @@ void Plane::handle_battery_failsafe(const char *type_str, const int8_t action)
quadplane.in_vtol_land_sequence()) {
already_landing = true;
}
#endif
#if MODE_AUTOLAND_ENABLED
if (control_mode == &mode_autoland) {
already_landing = true;
}
#endif
if (!already_landing) {
// never stop a landing if we were already committed
Expand Down

0 comments on commit 6ad05dc

Please sign in to comment.