Q: Reading data from a binary file in Python I have a python code that I don't really understand since I am super new to python that reads data from a binary file and spits out a CSV file.
The code is in this site I can't post it on here because it is huge.
https://github.com/PX4/Firmware/blob/master/Tools/sdlog2/sdlog2_dump.py
Now I know you must have the key to a binary file to be able to parse it and use its data. What I don't understand is how that code that I linked above does this or where the key in the code is. I have tried reading the code and breaking it down, but due to my limited knowledge I have no idea where to go from here.
I am trying to extract the key so that I can write my own code using the key to parse the data in the binary file.
