Browse Source

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
master
Randy Mackay 12 years ago
parent
commit
a7b32caf72
  1. 2
      ArduCopter/commands_logic.pde

2
ArduCopter/commands_logic.pde

@ -475,7 +475,7 @@ static bool verify_loiter_time() @@ -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

Loading…
Cancel
Save