Skip to content

add find command to MAVExplorer#1682

Open
tridge wants to merge 2 commits into
ArduPilot:masterfrom
tridge:pr-find-messages
Open

add find command to MAVExplorer#1682
tridge wants to merge 2 commits into
ArduPilot:masterfrom
tridge:pr-find-messages

Conversation

@tridge

@tridge tridge commented May 4, 2026

Copy link
Copy Markdown
Contributor

The find command allows you to find log messages for particular fields, for example:

MAV> find roll
AHR2.Roll      [deg]   : Estimated roll
ATT.DesRoll    [deg]   : vehicle desired roll
ATT.Roll       [deg]   : achieved vehicle roll
CTRL.RMSRollP          : LPF Root-Mean-Squared Roll Rate controller P gain
CTRL.RMSRollD          : LPF Root-Mean-Squared Roll rate controller D gain
CTRL.RMSPitchP         : LPF Root-Mean-Squared Pitch Rate controller P gain
CTRL.RMSPitchD         : LPF Root-Mean-Squared Pitch Rate controller D gain
CTRL.RMSYaw            : LPF Root-Mean-Squared Yaw Rate controller P+D gain
PIDA.FF                : controller feed-forward portion of response
PIDA.DFF               : controller derivative feed-forward portion of response
PIDP.FF                : controller feed-forward portion of response
PIDP.DFF               : controller derivative feed-forward portion of response
PIDR.FF                : controller feed-forward portion of response
PIDR.DFF               : controller derivative feed-forward portion of response
PIDY.FF                : controller feed-forward portion of response
PIDY.DFF               : controller derivative feed-forward portion of response
RATE.RDes      [deg/s] : vehicle desired roll rate
RATE.R         [deg/s] : achieved vehicle roll rate
RATE.ROut              : normalized output for Roll
XKF1.Roll      [deg]   : Estimated roll
XKF4.errRP             : Filtered error in roll/pitch estimate

in addition this fixes "logmessage help" to work on tlogs, and makes "help MESSAGENAME" work the same as "logmessage help MESSAGENAME"

tridge and others added 2 commits May 4, 2026 12:48
Treat any all-caps token after 'help' as a DataFlash log message name
and route it to mlog.metadata.print_help(), giving the same output as
'logmessage help <MSG>' (description, fields, units). Other forms of
'help' (no arg, or a known command name, or a mavextra symbol) keep
their previous behaviour.

Also support logmessage help on tlogs

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Search every log message's field name and description (case-insensitive
substring match) and print the matches as MSG.field [units] : desc,
column-aligned. Useful for discovering which message carries a value
whose name you only half-remember (e.g. 'find airspeed' returns CTUN.As,
CTUN.AsT, CTUN.SAs, ARSP.Airspeed, NTUN.AsE, ...).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

@peterbarker peterbarker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants