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

How to use multiple types for mavlogdump.py #688

Open
anshulsood-02 opened this issue Jun 13, 2022 · 2 comments
Open

How to use multiple types for mavlogdump.py #688

anshulsood-02 opened this issue Jun 13, 2022 · 2 comments

Comments

@anshulsood-02
Copy link

I am trying to use this command:
mavlogdump.py --types=BAT,BARO --format=csv L1.BIN > L1.csv

But it only generates a csv of the first type mentioned.
The code mentions: types of messages (comma separated with wildcard)
but I am not sure if it works or if I am typing it wrong.

@peterbarker
Copy link
Contributor

@anshulsood-02 you cn only dump from one message type when generating a CSV.

We could probably come up with a rule on when to emit a CSV line, but we don't have one ATM. You don't want to emit for every (e.g.) BAT and BARO line, for example. Most sensible would probably emit any time you've seen all message types and get an instance of the first message, or something along those lines.

@shancock884
Copy link
Contributor

In the current implementation of mavlogdump.py, you get a clear message if you try to specify multiple types when dumping to CSV:

$ mavlogdump.py --format=csv --types=UNIT,MULT ArduPlane-Soaring-00000045.BIN 
Need exactly one type when dumping CSV from bin file

I don't know if this would count as a 'fix' for this issue? - at least the restriction is made clear to the user in a nice way.

(See also: #905 (comment))

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

3 participants