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

ardupilot/mission-planning: Don't answer the same item request twice… #353

Merged

Conversation

rafaellehmkuhl
Copy link
Member

@rafaellehmkuhl rafaellehmkuhl commented Jun 5, 2023

...unless it's the last mission point.

With the previous approach, the same mission item was being sent over and over after being requested, to guarantee the item reached the vehicle, but this was causing the vehicle to think we were sending older items (e.g.: vehicle already requesting item 1, and we're still sending item 0 because the item 1 request still didn't reach us).

With the new approach, we send an answer (mission item) only once per request, so if our message is lost, we expect the vehicle to request again.

The only exception is the last item. We send it over and over till receiving the mission upload acknowledgment.

Thanks, @joaoantoniocardoso, for the idea on how to solve the problem.

Fix #351

…e twice...

...unless it's the last mission point.

With previous approach, the same mission item was being sent over and over after being requested, to guarantee the item reached the vehicle, but this was causing the vehicle to think we were sending older items (e.g.: vehicle already requesting item 1 and we still sending item 0 because the item 1 request still didn't reach us).

With the new approach, we send an aswer (mission item) only once per request, so if our message is lost, we expect the vehicle to request again.

The only exception is the last item. We send it over and over till receiveing the mission upload acknowledgment.
Copy link
Member

@Williangalvani Williangalvani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixed my upload issue, thanks!

@rafaellehmkuhl
Copy link
Member Author

This fixed my upload issue, thanks!

You're welcome.

@rafaellehmkuhl rafaellehmkuhl merged commit 262e475 into bluerobotics:master Jun 5, 2023
@rafaellehmkuhl rafaellehmkuhl deleted the fix-invalid-sequence branch June 5, 2023 18:34
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.

Uploading of missions failed:
2 participants