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

Telemetry and TelemetryServer improvements #2504

Closed
wants to merge 6 commits into from

Conversation

jonathanreeves
Copy link
Contributor

@jonathanreeves jonathanreeves commented Feb 5, 2025

Overview

This PR does 3 things:

  1. Expands the FixedwingMetrics telemetry object to include all fields that show up in the MAVLINK VFR_HUD message. The telemetry client handles the VFR_HUD message currently, translating it to a FixedwingMetrics struct, but it only takes half the fields. This PR fills out the rest of the fields so the full message is available.
  2. Adds an endpoint for sending the VFR_HUD message via TelemetryServer
  3. Adds an endpoint for sending the MAVLINK ATTITUDE message via TelemetryServer. Note that the client already supports handling this message.

Testing Done

Tested with a VTOL aircraft using MAVSDK as an autopilot, sending telemetry to QGroundControl. VFR and attitude messages are used to update the instrument panels and virtual horizon display. Hover taxi video here:

QGC-flight-smaller2.mp4

Notes and Caveats

There is a corresponding Proto PR based on Proto:main here: mavlink/MAVSDK-Proto#364

Unfortunately I am unable to get proto main to build against MAVSDK main, and I haven't had a chance to look into it. MAVSDK main is pinned to the proto submodule revision 9a871c7b4ec53a753e9fc46e950c4433dc2d6bf7, which works fine, so I branched proto from this revision for my own testing. That is the branch that is being used in this PR currently.

proto Show resolved Hide resolved
@jonathanreeves jonathanreeves changed the base branch from main to pr-update-proto February 12, 2025 04:28
@jonathanreeves
Copy link
Contributor Author

Note: rebased on #2508, including change of merge target (will auto update to main after that PR merges). Also re-tested with our own vehicle sim, all looks good.

@julianoes julianoes deleted the branch mavlink:pr-update-proto February 12, 2025 07:16
@julianoes julianoes closed this Feb 12, 2025
@jonathanreeves
Copy link
Contributor Author

@julianoes did this get closed automatically because the pr-update-proto branch was deleted or did something else happen? A little confused if I did something wrong here, I was expecting github to auto-update the target to main after your PR merged. I guess I'll open a new PR?

@jonathanreeves
Copy link
Contributor Author

Updated PR here: #2511

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