Python Logfile Analysis

peabody124 edited this page Jul 5, 2015 · 2 revisions

To analyze log files collected from either internal flash or with telemetry using android or GCS you can use a set of scripts written in python. You can find these files in the git repository under the python directory. They require the repository to be checked out in order to support analyzing log files from various versions.

From the Tau Labs directory, you can launch analysis using the command

./python/shell.py path/to/log/file.tll

This will bring you to an IPython environment where you can inspect data objects and plot graphs. For example to plot the Z gyro you would type:

gyro = uavo_list.as_numpy_array(UAVO_Gyros)
plot(gyro['time'], gyro['Z'])
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.