Skip to content
Snippets Groups Projects
Commit c299f721 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

Plane: fixed sense of landing sink rate calculation

thanks to BretC for reporting
parent d1fb1376
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ static bool verify_land()
after landing if we've had positive baro drift)
*/
if (height <= g.land_flare_alt ||
height <= -auto_state.land_sink_rate * g.land_flare_sec ||
height <= auto_state.land_sink_rate * g.land_flare_sec ||
(!rangefinder_state.in_range && location_passed_point(current_loc, prev_WP_loc, next_WP_loc))) {
if (!auto_state.land_complete) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment