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: increment cmd confirmation field #14808

Merged
merged 1 commit into from
May 4, 2020

Conversation

dayjaby
Copy link
Contributor

@dayjaby dayjaby commented May 1, 2020

Describe problem solved by this pull request
According to the mavlink documentation, the confirmation field is supposed to be 0 only for the first transmission. Any retransmissions of commands have the confirmation field incremented with this PR.

Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

Thanks, I think that's correct.

Have you tested that the values sent out are correct?

@dayjaby
Copy link
Contributor Author

dayjaby commented May 4, 2020

Yes, tested with a command that was sent from PX4 to companion computer (MAV_CMD_IMAGE_START_CAPTURE), which got not acknowledged yet from the other side. So the command got sent 4 times and the confirmation field got incremented from 0 up to 3.

@julianoes julianoes merged commit 09180b9 into PX4:master May 4, 2020
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