uLog Analysis in Python (Parameters and Messages)

#1

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.

#2

Hi

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


1 Like
#3

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

1 Like
#4

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?

#5

Hi @DRUMKC

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