Giter Club home page Giter Club logo

pyflightanalysis's Introduction

pyFlightAnalysis

A PX4 flight log (ulog) visual analysis tool, inspired by FlightPlot.

pyFlightAnalysis GUI

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:

Brief usage tutorial of pyFlightAnalysis

Literacy Tutorial:

  1. Open log file (currently only support .ulg format) by clicked open file.
  2. Choose data by using filter filter data and double click to add it.
  3. Change color or toggle visibility change color or toggle visibility.
  4. Scroll the middle wheel of mouse to zoom, press down and drag to move the curve.
  5. Click show quadrotor to show 3D viewer ( currently may not be robust).
  6. Press play data 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

MIT

pyflightanalysis's People

Contributors

marxlp avatar hamishwillee avatar bkueng avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.