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

MAVExplorer: Add message descriptions to stats command #1365

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

shancock884
Copy link
Contributor

The idea of this PR is to add the message description to the 'stats' command in MAVExplorer, using the downloaded XML metadata.
When I was first getting the hang of looking at logged data, I found myself using the stats command as a good to way to have an index of what messages exist, but the 4-letter names can take a while to get the hang of, so I thought that something like this would have made it easier!

Output is like this:

MODE  0.00%  [vehicle control mode information]
ARM   0.00%  [Arming status changes]
EV    0.00%  [Specifically coded event messages]
AUXF  0.00%  [Auxiliary function invocation information]
VER   0.00%  [Ardupilot version]
LAND  0.00%  [Slope Landing data]
DSF   0.03%  [Onboard logging statistics]
TERR  0.03%  [Terrain database information]
FMTU  0.03%  [Message defining units and multipliers used for fields of oth...]
RAD   0.03%  [Telemetry radio statistics]
ISBH  0.04%
MAV   0.06%  [GCS MAVLink link statistics]
...

As you see with FMTU, I have chosen to abbreviate long descriptions, to avoid making the actual stats bit any less readable.

@peterbarker peterbarker merged commit e595931 into ArduPilot:master Apr 20, 2024
2 checks passed
@peterbarker
Copy link
Contributor

Merged, thanks!

@shancock884 shancock884 deleted the msgstats-msg-descs branch April 20, 2024 07:21
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