From 77067edd91c29a67f3e22fdf46beeaf5da2d89b9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 21 Sep 2024 17:22:23 +1000 Subject: [PATCH] Plane: correct the ability to disable the takeoff atititude checks --- ArduPlane/takeoff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/takeoff.cpp b/ArduPlane/takeoff.cpp index e6c26076a5..98c59acfcf 100644 --- a/ArduPlane/takeoff.cpp +++ b/ArduPlane/takeoff.cpp @@ -57,7 +57,7 @@ bool Plane::auto_takeoff_check(void) bool do_takeoff_attitude_check = !(flight_option_enabled(FlightOptions::DISABLE_TOFF_ATTITUDE_CHK)); #if HAL_QUADPLANE_ENABLED // disable attitude check on tailsitters - do_takeoff_attitude_check = !quadplane.tailsitter.enabled(); + do_takeoff_attitude_check &= !quadplane.tailsitter.enabled(); #endif if (!takeoff_state.launchTimerStarted && !is_zero(g.takeoff_throttle_min_accel)) {