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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jonathanreeves
Copy link

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.

@@ -757,6 +757,9 @@ message FixedwingMetrics {
float airspeed_m_s = 1 [(mavsdk.options.default_value)="NaN"]; // Current indicated airspeed (IAS) in metres per second
float throttle_percentage = 2 [(mavsdk.options.default_value)="NaN"]; // Current throttle setting (0 to 100)
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
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
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
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.

@@ -437,6 +458,9 @@ message FixedwingMetrics {
float airspeed_m_s = 1 [(mavsdk.options.default_value)="NaN"]; // Current indicated airspeed (IAS) in metres per second
float throttle_percentage = 2 [(mavsdk.options.default_value)="NaN"]; // Current throttle setting (0 to 100)
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
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
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
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
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
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
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
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