From 8bc65e4ea1e2598413bb10d7283f68e1a30803c3 Mon Sep 17 00:00:00 2001 From: Tal Bass Date: Mon, 12 Jul 2021 13:21:47 -0400 Subject: [PATCH] Copter: reset land_repo_active flag in RTL mode --- ArduCopter/mode_rtl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduCopter/mode_rtl.cpp b/ArduCopter/mode_rtl.cpp index 19db54b1d2..e98be10980 100644 --- a/ArduCopter/mode_rtl.cpp +++ b/ArduCopter/mode_rtl.cpp @@ -22,6 +22,8 @@ bool ModeRTL::init(bool ignore_checks) _state = SubMode::STARTING; _state_complete = true; // see run() method below terrain_following_allowed = !copter.failsafe.terrain; + // reset flag indicating if pilot has applied roll or pitch inputs during landing + copter.ap.land_repo_active = false; return true; }