Plane: removed impossible boolean check

This commit is contained in:
Andrew Tridgell 2014-10-24 22:04:05 +11:00
parent 959cd11cb1
commit ad58822cb5
1 changed files with 2 additions and 3 deletions

View File

@ -1423,9 +1423,8 @@ static void update_navigation()
nav_controller->reached_loiter_target() &&
labs(altitude_error_cm) < 1000) {
// we've reached the RTL point, see if we have a landing sequence
if (!auto_state.checked_for_autoland) {
jump_to_landing_sequence();
}
jump_to_landing_sequence();
// prevent running the expensive jump_to_landing_sequence
// on every loop
auto_state.checked_for_autoland = true;