uLog Analysis in Python (Parameters and Messages)

I analyse my ulogs with Python by importing them with px4tools.
I can read the parameters and the messages of PX4 over the comand-line tool pyulog in Ubuntu. But if I would like to get this information directly with Python as well, how could I achieve that? If possible not only in Ubuntu but also on Windows, as I work on both systems.

Hi

Please have a look at how the scripts are doing it, you can do the same thing in python directly:


1 Like

That is exactly what I was looking for. Thanks a lot :slight_smile:

1 Like

I try using this parser and keep getting this message:

SyntaxError: from future imports must occur at the beginning of the file

Does anyone know what the problem could be?

Hi @DRUMKC

The error message tells you already: the future import must be moved to the top of the file.