From e02a9890b35746c5fc9656806d69a42c0334419d Mon Sep 17 00:00:00 2001 From: Gone4Dirt Date: Sun, 23 Feb 2020 09:54:30 +0000 Subject: [PATCH] Plane: force mission resume on RTL when DO_LAND_START in mission --- ArduPlane/ArduPlane.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduPlane/ArduPlane.cpp b/ArduPlane/ArduPlane.cpp index f14c03dcee..49d8a791a7 100644 --- a/ArduPlane/ArduPlane.cpp +++ b/ArduPlane/ArduPlane.cpp @@ -467,6 +467,7 @@ void Plane::update_navigation() // we've reached the RTL point, see if we have a landing sequence if (mission.jump_to_landing_sequence()) { // switch from RTL -> AUTO + mission.set_force_resume(true); set_mode(mode_auto, ModeReason::UNKNOWN); } @@ -479,6 +480,7 @@ void Plane::update_navigation() // Go directly to the landing sequence if (mission.jump_to_landing_sequence()) { // switch from RTL -> AUTO + mission.set_force_resume(true); set_mode(mode_auto, ModeReason::UNKNOWN); }