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

Switch to new REQUEST_MESSAGE but fall back to deprecated request message commands if required #2381

Merged
merged 9 commits into from
Sep 1, 2024

Conversation

julianoes
Copy link
Collaborator

@julianoes julianoes commented Aug 20, 2024

This implements the logic of requesting messages using the new command as well as the deprecated commands consolidated in the RequestMessage class.

Currently WIP implementing the functionality in REQUEST_MESSAGE. The next step is to use this class consistently everywhere.

Closes #1605, closes #2013.

@julianoes julianoes changed the title core: add deprecated messages to RequestMessage class Switch to new REQUEST_MESSAGE but fall back to deprecated request message commands if required Aug 20, 2024
JonasVautherin
JonasVautherin previously approved these changes Aug 20, 2024
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.

Yeah I think this logic makes sense 👍

This is a first step towards consistently using the new REQUEST_MESSAGE
commands everywhere while still being able to fall back to the
deprecated commands on retries.
Just to name this consistently with other MAVLink helpers like this.
The home position is now requested until valid, for both PX4 and
ArduPilot. Presumably, I had broken this in a previous cleanup.
We no longer support gimbal v1 (MOUNT) commands with the next MAVSDK
major release.
This allows to register and unregister mavlink messages in any context,
even if the the mavlink message handler lock is already taken.
@julianoes
Copy link
Collaborator Author

@JonasVautherin do you mind double checking the last commit please, thanks! Better to get that one right...

Copy link

sonarcloud bot commented Aug 27, 2024

@JonasVautherin
Copy link
Collaborator

It looks good to me! Though I haven't tested it, I only read the commit (carefully, though). Let me know if you need me to test something.

@julianoes
Copy link
Collaborator Author

julianoes commented Sep 1, 2024

Thanks @JonasVautherin!

It fixes the system_test failure, so that's enough testing for me :)

@julianoes julianoes marked this pull request as ready for review September 1, 2024 03:30
@julianoes julianoes merged commit 0f18e37 into main Sep 1, 2024
33 checks passed
@julianoes julianoes deleted the pr-request-old-messages branch September 1, 2024 03: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.

REQUEST_MESSAGE vs custom getters like REQUEST_CAMERA_INFORMATION Camera plugin uses deprecated messages
2 participants