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

Fix mission progress if mission is only downloaded #575

Merged
merged 3 commits into from
Oct 25, 2018

Conversation

julianoes
Copy link
Collaborator

This fixes a problem where the mission progress is just -1 if the mission has only been downloaded and never uploaded. The fix makes sure that the map between mission items and mavlink mission items is populated on download.

We forgot to update the mavlink mission item to mission item map which
meant that the mission progress was unknown (-1) in case the mission is
only downloaded but never uploaded.
RTL is connected to the last mission item and does not require an
additional step in the mission progress info.

The off-by-one error was due because we increment item_i at the end of a
loop iteration, although that's not required in the last iteration.
JonasVautherin
JonasVautherin previously approved these changes Oct 25, 2018
@julianoes julianoes merged commit 49ea5c0 into develop Oct 25, 2018
@julianoes julianoes deleted the fix-mission-cache branch October 25, 2018 12:22
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.

2 participants