Skip to content

Telemetry and TelemetryServer improvements#364

Merged
julianoes merged 4 commits intomavlink:mainfrom
jonathanreeves:feature/attitude-and-fixed-wing
Feb 12, 2025
Merged

Telemetry and TelemetryServer improvements#364
julianoes merged 4 commits intomavlink:mainfrom
jonathanreeves:feature/attitude-and-fixed-wing

Conversation

@jonathanreeves
Copy link
Copy Markdown
Contributor

Changes to support the corresponding MAVSDK PR: mavlink/MAVSDK#2504

Specifically:

  • Filled out the FixedwingMetrics struct to include the rest of the fields in the MAVLINK VFR_HUD message
  • Added an Attitude message for the TelemetryServer for symmetry with the Telemetry class

Note that currently MAVSDK does not build against Proto main. The MAVSDK PR listed above is using a branch of Proto with changes cherry-picked.

float climb_rate_m_s = 3 [(mavsdk.options.default_value)="NaN"]; // Current climb rate in metres per second
float groundspeed_m_s = 4 [(mavsdk.options.default_value)="NaN"]; // Current groundspeed metres per second
float heading_deg = 5 [(mavsdk.options.default_value)="NaN"]; // Current heading in compass units (0-360, 0=north)
float altitude_msl = 6 [(mavsdk.options.default_value)="NaN"]; // Current altitude in metres (MSL)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this would be more consistent with the others?

Suggested change
float altitude_msl = 6 [(mavsdk.options.default_value)="NaN"]; // Current altitude in metres (MSL)
float absolute_altitude_m = 6 [(mavsdk.options.default_value)="NaN"]; // Current altitude in metres (MSL)

Copy link
Copy Markdown
Contributor Author

@jonathanreeves jonathanreeves Feb 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep no problem, will do

  • absolute_altitude_m

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Sorry had to test on two different branches, which is why I didn't commit directly. Should be there though.

float climb_rate_m_s = 3 [(mavsdk.options.default_value)="NaN"]; // Current climb rate in metres per second
float groundspeed_m_s = 4 [(mavsdk.options.default_value)="NaN"]; // Current groundspeed metres per second
float heading_deg = 5 [(mavsdk.options.default_value)="NaN"]; // Current heading in compass units (0-360, 0=north)
float altitude_msl = 6 [(mavsdk.options.default_value)="NaN"]; // Current altitude in metres (MSL)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
float altitude_msl = 6 [(mavsdk.options.default_value)="NaN"]; // Current altitude in metres (MSL)
float absolute_altitude_m = 6 [(mavsdk.options.default_value)="NaN"]; // Current altitude in metres (MSL)

Copy link
Copy Markdown
Contributor Author

@jonathanreeves jonathanreeves Feb 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing

  • absolute_altitude_m

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. See above.

Copy link
Copy Markdown
Collaborator

@julianoes julianoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's good like that, thanks!

@julianoes
Copy link
Copy Markdown
Collaborator

julianoes commented Feb 12, 2025

@jonathanreeves the proto issues should be resolved with: mavlink/MAVSDK#2508 and #366. Thanks to @JonasVautherin for fixing it.

@jonathanreeves
Copy link
Copy Markdown
Contributor Author

@jonathanreeves the proto issues should be resolved with: mavlink/MAVSDK#2508 and #366. Thanks to @JonasVautherin for fixing it.

Great thank you both! I'll re-base on top of that PR so it's ready to go.

@jonathanreeves jonathanreeves force-pushed the feature/attitude-and-fixed-wing branch from 24c4db0 to 15c1a10 Compare February 12, 2025 04:17
@julianoes julianoes merged commit 4d2e9c4 into mavlink:main Feb 12, 2025
3 checks passed
ddatsko pushed a commit to ddatsko/MAVSDK-Proto that referenced this pull request Feb 17, 2025
* Updated FixedwingMetrics, added attitude and VFR_HUD publishers to the TelemetryServer

* Re-order fields for backward compatibility

* PR feedback: altitude_msl -> absolute_altitude_m

---------

Co-authored-by: Jon Reeves <jon.reeves@elroyair.com>
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.

3 participants