Plane: fixed sense of altitude test for glide slope

This commit is contained in:
Andrew Tridgell 2014-07-25 15:04:16 +10:00
parent 71132058b4
commit c9be610dca
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ static void setup_glide_slope(void)
// is basically to prevent situations where we try to slowly
// gain height at low altitudes, potentially hitting
// obstacles.
if (relative_altitude() > 40 || !above_location_current(next_WP_loc)) {
if (relative_altitude() > 40 || above_location_current(next_WP_loc)) {
set_offset_altitude_location(next_WP_loc);
} else {
reset_offset_altitude();