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

mavparmdiff: use_tabs ignored for parameters not present in both files #796

Open
durka opened this issue Apr 20, 2023 · 1 comment
Open

Comments

@durka
Copy link

durka commented Apr 20, 2023

If you run mavparmdiff.py with -t to use tabs as separators, it works as expected when a parameter differs between files, however, spaces are still used for parameters that are only in one of the two files.

$ mavparmdiff -t file1.params file2.params | cat -T
[...]
ADSB_ENABLE            0.0000
ADSB_TYPE                           0.0000
AHRS_TRIM_X^I-0.0135^I-0.0512
[...]

As my plan was to use -t and then import the result into a spreadsheet program, this is not helpful as it can't parse the first two lines.

In my opinion, the output should have been (note two tabs in the second line):

ADSB_ENABLE^I0.0000
ADSB_TYPE^I^I0.0000
AHRS_TRIM_X^I-0.0135^I-0.0512
@durka
Copy link
Author

durka commented Apr 20, 2023

I'll submit an MR unless this is expected behavior?

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

No branches or pull requests

1 participant