-
Notifications
You must be signed in to change notification settings - Fork 602
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
mavlogdump.py --format csv only extracts one IMU instance #905
Comments
This happens because of some logic in the CSV output bit of mavlogdump.py which only takes the last message when there are multiple with the same timestamp. Lines 333 to 343 in e39879a
I don't know if this was done with a sensible use-case in mind, but my view would be to remove this logic, so that CSV behaves the same as the other output formats in that it really dumps all messages of the requested type. As well as messages with instance fields, you will get the similarly lost output if you were dumping things like MSG, MULT or UNIT messages, as these typically follow each other with the same timestamp too. e.g.:
|
On Mon, 29 Jan 2024, Simon Hancock wrote:
This happens because of some logic in the CSV output bit of mavlogdump.py which only takes the last message when there are multiple with the same timestamp.
Yeah, that's kind of bad. There are three solutions I can see here:
- remove that logic, and the "csv_out" persistent data, just print the
message then-and-there
- remove the "must have only one message type when dumping as csv"
restriction, emit messages only when we have seen a complete set of
messages since last we emitted. This new logic would replace current
"duplicate timestamp" logic, which I can't think has worked for many, many
years.
I'm leaning towards the first. Nobody seems to miss the ability to have
multiple messages in the CSV output.
|
Sounds good. If anyone does want the multi-message CSV thing, it can be raised as a specific feature request. |
mavlogdump.py --type VIBE will export IMU: 0, 1, 2 (if logged in the BIN file).
Adding the format flag for CSV only exports one of the IMUs. In my instance it was IMU2. I am not sure if this is exporting the primary core or the last message for the unique timestamp.
The text was updated successfully, but these errors were encountered: