Telemetry and TelemetryServer improvements #2504
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR does 3 things:
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 aFixedwingMetrics
struct, but it only takes half the fields. This PR fills out the rest of the fields so the full message is available.TelemetryServer
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 revision9a871c7b4ec53a753e9fc46e950c4433dc2d6bf7
, 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.