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

Mavlink FTP: Fix for wrong component id in retry #12591

Merged
merged 1 commit into from
Aug 5, 2019

Conversation

MatejFranceskin
Copy link
Contributor

Problem was detected in a test of uploading 100 files with simulated 10% loss of mavlink packages.
Sometimes upload failed.

The problem was caused by unset component id in message that was saved to be sent again if the remote party repeated the request with the same sequence number.
Message component id should be set before the message is saved for retry.

Besides that I included a change of replies component id. Instead of broadcasting replies we should send them to the component that is the origin of request.

@MatejFranceskin MatejFranceskin requested a review from bkueng July 31, 2019 18:48
Copy link
Member

@bkueng bkueng left a comment

Choose a reason for hiding this comment

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

Looks good.

@bkueng bkueng merged commit 3d99377 into PX4:master Aug 5, 2019
@MatejFranceskin MatejFranceskin deleted the pr-mavlinkftp-retry-fix branch August 9, 2019 07:33
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