pyFlightAnalysis
A tool written by python to visualize the flight log data inspired by FlightGear. Other log analysis tools see dev.px4.io
Installation
There are two way to run pyFlightAnalysis
Run from source
pyFlightAnalysis is based on pyqtgraph (which based on PyQt ), pyOpenGL, pyulog besides generally used scientific packages like numpy, matplotlib etc. If you have installed these packages. You can download the source file
>>> # In folder where you want put the source code
>>> git clone https://github.com/Marxlp/pyFlightAnalysis.git
>>> cd pyFlightAnalysis
>>> python analysis.py
Install and Run
Due to PyQt4 is can't directly installed by pip, so you need install
PyQt4 by
hands. If you use anaconda, it can be installed by
conda install pyqt
. PyQt5 can install directly from pip but only
support python3.x. After install PyQt, you can
>>> # Install from pypi
>>> pip install pyFlightAnalysis
>>> # or install from source
>>> git clone https://github.com/Marxlp/pyFlightAnalysis.git
>>> python setup.py install
>>> # then run it
>>> analysis
Features
- Dynamic filter for looking data
- 3D visulization for attitude and position of drone
- Easily replay with pyqtgraph's ROI (Region Of Interest)
Usage
Video Tutorial:
Brief usage tutorial of pyFlightAnalysis
Literacy Tutorial:
- Open log file (currently only support .ulg filemat) by clicked
- Choose data by using filter and double click to add it.
- Change color or toggle visibility
- Scroll the middle wheel of mouse to zoom, press down and drag to move the curve
- Click to show 3D viewer ( currently may not be robust)
- Press to play ( you'd better open the 3D viewer to show the animation)
Issues
If you have install PyQt4 and pyqtgraph but with below error
ImportError: cannot import name QtOpenGL
try
>>> sudo apt-get install python-qt4-gl