Skip to content

Commit

Permalink
Plane: QLAND if long failsafe on VTOL takeoff
Browse files Browse the repository at this point in the history
  • Loading branch information
CallanDaniel authored and tridge committed Feb 19, 2024
1 parent 9123554 commit a404693
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ArduPlane/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,14 @@ void Plane::failsafe_long_on_event(enum failsafe_state fstype, ModeReason reason
// don't failsafe in a landing sequence
break;
}

#if HAL_QUADPLANE_ENABLED
if (quadplane.in_vtol_takeoff()) {
set_mode(mode_qland, reason);
// QLAND if in VTOL takeoff
break;
}
#endif
FALLTHROUGH;

case Mode::Number::AVOID_ADSB:
Expand Down

0 comments on commit a404693

Please sign in to comment.