From ca8ae06bba85f39e4d9b1b464395100204299b60 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 18 May 2017 12:26:19 +0900 Subject: [PATCH] Copter: minor format fix to landing-gear update function --- ArduCopter/landing_gear.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/landing_gear.cpp b/ArduCopter/landing_gear.cpp index ab7267e4d8..70645a1357 100644 --- a/ArduCopter/landing_gear.cpp +++ b/ArduCopter/landing_gear.cpp @@ -13,7 +13,7 @@ void Copter::landinggear_update(){ // if we are doing an automatic landing procedure, force the landing gear to deploy. // To-Do: should we pause the auto-land procedure to give time for gear to come down? if (control_mode == LAND || - (control_mode==RTL && (rtl_state == RTL_LoiterAtHome || rtl_state == RTL_Land || rtl_state == RTL_FinalDescent)) || + (control_mode == RTL && (rtl_state == RTL_LoiterAtHome || rtl_state == RTL_Land || rtl_state == RTL_FinalDescent)) || (control_mode == AUTO && auto_mode == Auto_Land) || (control_mode == AUTO && auto_mode == Auto_RTL && (rtl_state == RTL_LoiterAtHome || rtl_state == RTL_Land || rtl_state == RTL_FinalDescent))) { landinggear.force_deploy(true);