From 5483398c7d92562c982d56a98b1e84b66dc1540a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 17 Dec 2022 18:56:56 +1100 Subject: [PATCH] Plane: correct compilation when QAUTOTUNE compiled out --- ArduPlane/system.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index 1bbad62b5f..c1fd293047 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -243,18 +243,6 @@ bool Plane::set_mode(Mode &new_mode, const ModeReason reason) return false; } -#if !QAUTOTUNE_ENABLED - if (&new_mode == &plane.mode_qautotune) { - gcs().send_text(MAV_SEVERITY_INFO,"QAUTOTUNE disabled"); - set_mode(plane.mode_qhover, ModeReason::UNAVAILABLE); - // make sad noise - if (reason != ModeReason::INITIALISED) { - AP_Notify::events.user_mode_change_failed = 1; - } - return false; - } -#endif // !QAUTOTUNE_ENABLED - #else if (new_mode.is_vtol_mode()) { INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);