Skip to content

mavlogdump: show clear error message when mat_file arg is missing#928

Merged
peterbarker merged 1 commit intoArduPilot:masterfrom
shancock884:mat_file-arg-missing-msg
Mar 15, 2024
Merged

mavlogdump: show clear error message when mat_file arg is missing#928
peterbarker merged 1 commit intoArduPilot:masterfrom
shancock884:mat_file-arg-missing-msg

Conversation

@shancock884
Copy link
Contributor

I was trying to use mavlogdump to generate a .mat file from a .bin file, and forgot to specify the --mat_file argument. I found the exception thrown by the call to scipy.io.savemat was not very clear as to my mistake.
This PR adds a check before processing the input file that the required argument is specified, and gives the user a clearer message as follows:
mat_file argument must be specified when mat format is selected

@shancock884 shancock884 force-pushed the mat_file-arg-missing-msg branch from 237744a to 7e2e2c2 Compare March 14, 2024 11:38
@peterbarker peterbarker merged commit 636a733 into ArduPilot:master Mar 15, 2024
@shancock884 shancock884 deleted the mat_file-arg-missing-msg branch March 15, 2024 07:54
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