From a7b32caf728739b1acb657e37956831f3c9bab94 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 15 Apr 2013 23:57:22 +0900 Subject: [PATCH] Copter: bug fix for loiter_time check loiter_time_max was changed to hold the loiter time in seconds (previously it was milliseconds) in order to allow the delay to be more than 65 seconds but the verify_loiter_time check was missed from that change --- 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 335dd8ee57..f5a9acc682 100644 --- a/ArduCopter/commands_logic.pde +++ b/ArduCopter/commands_logic.pde @@ -475,7 +475,7 @@ static bool verify_loiter_time() } // check if loiter timer has run out - return ((millis() - loiter_time) > loiter_time_max); + return (((millis() - loiter_time) / 1000) >= loiter_time_max); } // verify_circle - check if we have circled the point enough