Plane: QLAND if long failsafe on VTOL takeoff

This commit is contained in:
CallanDaniel 2024-02-19 11:20:00 +02:00 committed by Andrew Tridgell
parent 9123554db3
commit a404693c7f
1 changed files with 8 additions and 0 deletions

View File

@ -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: