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

commander: fix toggling datalink lost and regained #11795

Merged
merged 1 commit into from
Apr 5, 2019

Conversation

julianoes
Copy link
Contributor

When using QGC and/or the Dronecode SDK it was possible to get in a state where the two mavlink instances were both publishing their last heartbeat_time and cause commander to consistently toggle between data link lost and regained.

With this fix, we only ever look at the very last heartbeat time and therefore seem to avoid this issue.

Tested in SITL, fixes #11794.

When using QGC and/or the Dronecode SDK it was possible to get in a
state where the two mavlink instances were both publishing their last
heartbeat_time and cause commander to consistently toggle between
data link lost and regained. With this fix, we only ever look at the
very last heartbeat time and therefore seem to avoid this issue.
@julianoes julianoes requested a review from dagar April 5, 2019 10:02
@dagar dagar merged commit 95ab984 into master Apr 5, 2019
@dagar dagar deleted the pr-fix-datalink-lost branch April 5, 2019 13:25
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.

Continuous "Data link lost" messages in SITL
2 participants