Skip to content

mayanez/px4tools

 
 

Repository files navigation

px4tools

Coverage Status Build Status

Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge Anaconda-Server Badge

Python tools for px4.

Install

Dependencies

  1. See requirements.txt

Using Anaconda (Recommended)

  1. Install anaconda

    • Python 3 version recommended
    • Do not select add to path if you use ROS. ROS expects the standard python to be installed. You can create a script to source and add anaconda to your path. This is similar to setup.bash for ROS users.

    ~/bin/conda_env:

    #!/bin/bash
    export PATH=$HOME/anaconda3/bin:$PATH

    Now you can source the script to start using anaconda instead of the sytem python:

    . conda_env
  2. Install via conda

conda config --add channels http://conda.anaconda.org/dronecrew
conda install px4tools jupyter

Using PyPi

pip install px4tools jupyter --user

Usage

First use the sdlog2_dumpy.py program to convert the px4log to csv:

wget https://github.com/PX4/Firmware/raw/master/Tools/sdlog2/sdlog2_dump.py
python sdlog2_dumpy.py your_log.px4log > your_log.csv

Now start jupyter notebook in the directoy of your_log.csv:

jupyter notebook

Example:

https://github.com/jgoppert/lpe-analysis/blob/master/15-09-30%20Kabir%20Log.ipynb

About

PX4 flight analysis tools.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%