This release is a pre-release and may not be stable for production use.
pyFlightAnalysis
A PX4 flight log (ulog) visual analysis tool, inspired by FlightPlot.
pyFlightAnalysis GUI
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
Metadata
Release files for pyFlightAnalysis 1.1.0b0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyFlightAnalysis-1.1.0b0.tar.gz | 5.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyFlightAnalysis-1.1.0b0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 10.5 MB
Release files / pyFlightAnalysis-1.1.0b0.tar.gz
| Download URL | pyFlightAnalysis-1.1.0b0.tar.gz |
|---|---|
| Size | 5.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
972199300e5ab7926285784506f63bb6e49069f2caa2c8ae43e7bea3e30c2473
|
|
BLAKE2b-256 checksum How to use checksums |
23985ed8193737358997c925486d454a96491a3ee6be54b15628a8f247091db1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.9.1 pkginfo/1.4.1 requests/2.11.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/2.7.12
|
Release files / pyFlightAnalysis-1.1.0b0-py2.py3-none-any.whl
| Download URL | pyFlightAnalysis-1.1.0b0-py2.py3-none-any.whl |
|---|---|
| Size | 5.2 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9d0a4cec0ee06eef1451f81868aa43f3f40d5980698812d2d987dd5a7ba6df0f
|
|
BLAKE2b-256 checksum How to use checksums |
c13a9960b3e5aed2f8cb772cd157d0bb02eae1135828d903004eefa65d1236d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.9.1 pkginfo/1.4.1 requests/2.11.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/2.7.12
|