Get Dataflash Logs in .csv file using python

Hi guys, I’m working on an automatic testing software to test UAV autonomously. To do this I send some commands to the UAV and recording datas. But my data are not so good as I expected… I can see some stairs and I don’t know where this problem is coming from (I put a graphical example of the roll test in ALT_HOLD mode).

Because of that I would like to get datas from the DataFlash Logs directly using a python script to export DataFlash Logs in .csv file, but I’m stuck. I used the dronekit-la (DroneKit Log Analyser) but I can’t even install it.

Does anybody have an idea about how to do this ?
Thanks.

1 Like

Because of that I would like to get datas from the DataFlash Logs directly using a python script to export DataFlash Logs in .csv file, but I¢m stuck. I

mavlogdump.py can give you a csv file.

used the dronekit-la (DroneKit Log Analyser) but I can¢t even install it.

What problem are you having there?

Does anybody have an idea about how to do this ?

I suggest you look at the existing tools used for analysis here:
https://ardupilot.org/copter/docs/common-logs.html

Peter

Ok thanks for the answer and for the mavlogdump.py, this will be useful.
I’m looking for command lines, something that I can execute with a single python script.
First I would like to download the dataflash log and finally export in .csv file.
Is that possible ?

For the DroneKit Log Analyser I downloaded the file on github at this link : https://github.com/dronekit/dronekit-la
When I use the dronekit-la_0.3_amd64.deb in dronekit-la-master/docs/downloads to install DoneKit LA, nothing append when I call dronekit-la my_datas.log in a terminal, and I don’t know what the problem is…
I hope there are also command lines for this module…

The main issue of my project is to have one script that do everything : test and analyse datas, that’s why I would like to get command lines.