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

Update to MavlinkPassthrough unsubscribe_message #2189

Merged
merged 6 commits into from
Dec 3, 2023

Conversation

c-devine
Copy link
Contributor

@c-devine c-devine commented Dec 2, 2023

This updates MavlinkPassthrough to require a message id in unsubscribe_message. It fixes the bug where unsubscribing from a passthrough message also unsubscribed from messages with the same handle id but different message ids.

Copy link
Collaborator

@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 for the PR! If you don't mind following up on two small things.

@@ -216,7 +216,7 @@ class MavlinkPassthrough : public PluginBase {
/**
* @brief Unsubscribe from subscribe_message.
Copy link
Collaborator

Choose a reason for hiding this comment

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

While we're at it. We should add the two @param docstrings.

JonasVautherin
JonasVautherin previously approved these changes Dec 3, 2023
Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@c-devine
Copy link
Contributor Author

c-devine commented Dec 3, 2023

Looks like gimbal_device_tester.cpp failed. I'll update the test.

@julianoes
Copy link
Collaborator

Thanks for the follow up @c-devine! Let's see if it passes now.

@julianoes julianoes merged commit 1560060 into mavlink:main Dec 3, 2023
26 checks passed
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.

3 participants