-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
Respond to MAVLINK 2 PROTOCOL_VERSION request #2449
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I didn't know that QGC was checking the version like this 👍. I just have a nitpick on the format of the static constexpr 👍.
@@ -25,6 +25,14 @@ class ServerPluginImplBase; | |||
|
|||
class ServerComponentImpl { | |||
public: | |||
static constexpr mavlink_protocol_version_t kMavlinkVersionInfo{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at other static constexpr
in the project, it feels like they are usually written more like this:
static constexpr mavlink_protocol_version_t kMavlinkVersionInfo{ | |
static constexpr mavlink_protocol_version_t MAVLINK_VERSION_INFO { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, sorry I should have looked at that more carefully. Change pushed to my fork and re-tested, thanks for the review and feedback!
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
MAVSDK comfortably supports MAVLINK 2, but the server component doesn't currently respond to the MAVLINK_MSG_ID_PROTOCOL_VERSION request, and thus GCSes like QGroundControl fall back to MAVLINK 1 when establishing communication.
This change adds the MAVLINK_MSG_ID_PROTOCOL_VERSION handler with a corresponding capability to communicate to clients that MAVLINK 2 is supported.
QGroundControl log before:
QGroundControl log after: