Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mission: warn at 2/3 of the max distance #8873

Merged
merged 1 commit into from
Feb 12, 2018
Merged

Conversation

julianoes
Copy link
Contributor

This was wrong, instead of warning at 2/3 of the max distance as
mentioned in the comment, we would start to warn at 3/2 of the distance
which would then never actually happen.

Found by @CornerOfSkyline.

This was wrong, instead of warning at 2/3 of the max distance as
mentioned in the comment, we would start to warn at 3/2 of the distance
which would then never actually happen.
julianoes referenced this pull request Feb 12, 2018
Instead of just checking whether the first waypoint is too far away from
home it makes sense to also check between waypoints.
This can prevent
- flyaways due to user errors, or
- catch the corner case where a takeoff waypoint is added to a mission
  and therefore the first waypoint is not too far away, however, the
  subsequent waypoints are still too far away.
@dagar
Copy link
Member

dagar commented Feb 12, 2018

CI failure is an actual firmware bug, but not your doing.

@dagar dagar merged commit cc36c8e into master Feb 12, 2018
@dagar dagar deleted the fix-wp-distance-warning branch February 12, 2018 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants