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

Robustify mission upload/download #8750

Merged
merged 4 commits into from
Jan 25, 2018
Merged

Conversation

julianoes
Copy link
Contributor

@julianoes julianoes commented Jan 23, 2018

This includes a few changes in order to make the mission upload and download with QGC and DroneCore more robust (and also faster) on a lossy link.

The changes go together with mavlink/qgroundcontrol#6059.

This PR is mostly done but I need to test compatibility between QGC without the recent PR and also QGC with the recent PR and Firmware without this PR.

Tested against latest QGC release, upload/download works.

@julianoes julianoes requested a review from bkueng January 23, 2018 17:31
This is an attempt to fix mission upload and download with QGC on a
lossy link. The way it should work according to the protocol on
https://mavlink.io/en/protocol/mission.html is that in general
the ground station should be concerned about timeouts and
retransmission. This means the autopilot does not need to retransmit by
itself but just answer requests.

This seems like it would make the transfer less robust, however, it
actually resolves an edge case where QGC fails to make requests because
it gets spammed by the autopilot and keeps resetting the timeout.
When we receive a MAV_MISSION_UNSUPPORTED, we should try to send a
mission request again with or without int mode.
if anything doesn't go according to protocol we should not just throw
warnings but actually tell the ground station with a mission nack.
Instead of using a timeout to resend a mission item, we should directly
send the mission request again. This is needed because we removed the
automatic resending which lead to troubles.
@julianoes julianoes changed the title [WIP] Robustify mission upload/download Robustify mission upload/download Jan 24, 2018
@LorenzMeier LorenzMeier merged commit 757f0e7 into master Jan 25, 2018
@LorenzMeier LorenzMeier deleted the fix-mission-upload-download branch January 25, 2018 14:31
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