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 #2511

Merged
merged 9 commits into from
Feb 13, 2025
Merged

Conversation

jonathanreeves
Copy link
Contributor

@jonathanreeves jonathanreeves commented Feb 12, 2025

NOTE: this is a re-creation of the now closed PR #2504. As far as I can tell, PR 2504 got closed because it was targeting a feature branch that was deleted. This now re-created PR is targeting main but is otherwise the same.

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.

@jonathanreeves
Copy link
Contributor Author

Proto PR aiming at main here:
mavlink/MAVSDK-Proto#364

Should be ready to go.

proto Show resolved Hide resolved
julianoes
julianoes previously approved these changes Feb 12, 2025
proto Show resolved Hide resolved
@julianoes julianoes merged commit 72549f6 into mavlink:main Feb 13, 2025
38 of 39 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.

2 participants