From cfeccefcae1b4b3a2dcfbc6a48da1f340a9bc2d8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 18 May 2022 21:50:17 +1000 Subject: [PATCH] Plane: cope with QGC retrying AUTO mode QGC tries several times to enter AUTO even when it is refused. We need to keep refusing --- ArduPlane/mode_auto.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduPlane/mode_auto.cpp b/ArduPlane/mode_auto.cpp index 436abdd08e..17affcf0a2 100644 --- a/ArduPlane/mode_auto.cpp +++ b/ArduPlane/mode_auto.cpp @@ -10,6 +10,7 @@ bool ModeAuto::_enter() quadplane.guided_wait_takeoff_on_mode_enter) { if (!plane.mission.starts_with_takeoff_cmd()) { gcs().send_text(MAV_SEVERITY_ERROR,"Takeoff waypoint required"); + quadplane.guided_wait_takeoff = true; return false; } }