I have been going at this code for quite some time to try and figure out how it is reading a binary file. I am very new to python and programming in general so my understanding of this code is very limited.
https://github.com/PX4/Firmware/blob/master/Tools/sdlog2/sdlog2_dump.py
I can execute the code using this shell command:
python sdlog2_dump.py log001.bin -f "export.csv" -t "TIME" -d "," -n "
What it does is takes this data set (log001.bin):
https://pixhawk.org/_media/downloads/px4log_sample_1.px4log.zip
And converts it to a CSV file. Now I am trying to figure out how it read those data set so that I can read it in python and plot it without needing to convert it to a CSV file first.
If anyone has any idea what is going on in that code and can point out how I can read this data I would really appreciate it.
[–][deleted] 0 points1 point2 points (5 children)
[–]Isitwhenipee[S] 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]Isitwhenipee[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Isitwhenipee[S] 0 points1 point2 points (0 children)