From c1c3115b428b4f9c2c7ffe6ba30e2f7c6fcd3abc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 5 Jan 2012 10:14:30 +1100 Subject: [PATCH] ACM: fixed a alt hold bug == instead of = --- ArduCopter/commands_logic.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/commands_logic.pde b/ArduCopter/commands_logic.pde index 2401e8e4a5..631f54d931 100644 --- a/ArduCopter/commands_logic.pde +++ b/ArduCopter/commands_logic.pde @@ -387,7 +387,7 @@ static bool verify_land() if((current_loc.alt - home.alt) < 300 && velocity_land <= 100){ land_complete = true; // reset old_alt - old_alt == 0; + old_alt = 0; init_disarm_motors(); return true; }