Flight log Data analysis visualization tool
Project description
A PX4 flight log (ulog) visual analysis tool, inspired by FlightPlot.
pyFlightAnalysis is written in Python, and depends on pyqtgraph (which is based on PyQt), pyOpenGL, pyulog, and a number of other widely used scientific packages including numpy, matplotlib, etc.
For other log analysis tools see dev.px4.io
Installation
You can either clone the repository and run the tool directly from source, or you can install pyFlightAnalysis (from source or using the PyPi Python package manager) and then run it. In either case you will first need to install PyQt (as shown below).
Install PyQt
For Python 3.x, PyQt5 can be installed directly from pip:
pip install PyQt5
For Python 2.x, PyQt can’t directly be installed using pip. Instead you will need to install it manually
(if using Anaconda, install using the command: conda install pyqt
).
Run from Source
After installing PyQt, enter the following commands to install other dependencies:
pip install pyqtgraph pyOpenGL pyulog matplotlib numpy
Once you have installed these packages you can clone the source files:
# In folder where you want put the source code
git clone https://github.com/Marxlp/pyFlightAnalysis.git
Then run the analysis.py source files:
cd pyFlightAnalysis/src python analysis.py
Install and Run
You can install pyFlightAnalysis from either source or PyPi (after first installing PyQt as described above):
# Install from pypi
pip install pyFlightAnalysis
Or
# Install from source
git clone https://github.com/Marxlp/pyFlightAnalysis.git
python setup.py install
After installing pyFlightAnalysis you can run it as shown:
analysis
Features
Dynamic filter for displaying data
3D visulization for attitude and position of drone
Easily replay with pyqtgraph’s ROI (Region Of Interest)
Usage
Video Tutorial:
Literacy Tutorial:
Open log file (currently only support .ulg format) 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 installed PyQt4 and pyqtgraph but get the error below:
ImportError: cannot import name QtOpenGL
try
>>> sudo apt-get install python-qt4-gl
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyFlightAnalysis-1.0.7b0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e51872bb2dd5fbd4c480e4f74222d1076e4f6d8f396f53427f83a87bc7f4756 |
|
MD5 | 66aa21ee643f2b730d6a1ed19c5ee293 |
|
BLAKE2b-256 | dca83a66c0e00837915a34ca3851405a7459b24a2bcf98474ca9c685f94b5841 |