From 95601d42dbf4056ad2758b04570bfdce906b397e Mon Sep 17 00:00:00 2001 From: Leonard Hall Date: Wed, 4 Aug 2021 12:42:13 +0930 Subject: [PATCH] Copter: Guided: Add terrain following initialization. --- ArduCopter/mode_guided.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduCopter/mode_guided.cpp b/ArduCopter/mode_guided.cpp index aa448314a6..7bf83c7ee1 100644 --- a/ArduCopter/mode_guided.cpp +++ b/ArduCopter/mode_guided.cpp @@ -153,6 +153,9 @@ void ModeGuided::pva_control_start() // initialise yaw auto_yaw.set_mode_to_default(false); + + // initialise terain alt + guided_pos_terrain_alt = false; } // initialise guided mode's position controller