Plane: correct the ability to disable the takeoff atititude checks

This commit is contained in:
Peter Barker 2024-09-21 17:22:23 +10:00 committed by Andrew Tridgell
parent 29a35baf48
commit 77067edd91
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ bool Plane::auto_takeoff_check(void)
bool do_takeoff_attitude_check = !(flight_option_enabled(FlightOptions::DISABLE_TOFF_ATTITUDE_CHK)); bool do_takeoff_attitude_check = !(flight_option_enabled(FlightOptions::DISABLE_TOFF_ATTITUDE_CHK));
#if HAL_QUADPLANE_ENABLED #if HAL_QUADPLANE_ENABLED
// disable attitude check on tailsitters // disable attitude check on tailsitters
do_takeoff_attitude_check = !quadplane.tailsitter.enabled(); do_takeoff_attitude_check &= !quadplane.tailsitter.enabled();
#endif #endif
if (!takeoff_state.launchTimerStarted && !is_zero(g.takeoff_throttle_min_accel)) { if (!takeoff_state.launchTimerStarted && !is_zero(g.takeoff_throttle_min_accel)) {