Source Code for BIN transformation to LOG, CSV or MAT

Hello folks,

I am aware and very familiar with the possibilities of transforming the raw BIN files from of the Autopilot into something readable. Normally I would use the integrated MissionPlanner functions for transforming BIN into LOG or MAT.
I am now looking for the source code of this function, so I can use my own automatic Python or Matlab scripts having the same function without starting MissionPlanner.

I already found something:
BIN to MATLAB converter: https://github.com/Georacer/ardupilog
BIN to CSV converter: https://github.com/PX4/Firmware/tree/master/Tools/sdlog2
BIN to LOG converter: https://github.com/ArduPilot/MissionPlanner/blob/c9cc63a29286263aff8d446149dd444cb33a92a7/Log/BinaryLog.cs

Since I am not the best programmer and finding stuff in GitHub, could you please confirm these sources are correct or push me to the right ones?

Thank you very much
Phreet

2 Likes

Hi, this is a really good option:
https://github.com/ArduPilot/pymavlink/blob/master/DFReader.py

3 Likes

How can I use this python script to change bin to log?

1 Like

Help! help!
I have a large size copter(eight motors ) Crash log, but I can’t post it for help. Can anyone help me?
It crashed in stabilize mode , and the Copter have not been Autotune yet.

thank you so much! Excuse my poor English