From ddbfc3ce42789f16e9f6a4f6e91062dad8042e8d Mon Sep 17 00:00:00 2001 From: Will Silva Date: Mon, 3 Oct 2016 15:12:15 -0700 Subject: [PATCH] Copter: initialize the land controller when starting the land phase of an AUTO RTL * ensures static variables for the landing ramp will be set properly on every landing --- ArduCopter/control_auto.pde | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduCopter/control_auto.pde b/ArduCopter/control_auto.pde index 206f3e5279..cd73ea7b52 100644 --- a/ArduCopter/control_auto.pde +++ b/ArduCopter/control_auto.pde @@ -265,6 +265,9 @@ static void auto_land_start(const Vector3f& destination) { auto_mode = Auto_Land; + // Setup land controller + land_init(false); + // initialise loiter target destination wp_nav.init_loiter_target(destination);