Sunday, October 26, 2014

Install PyMAVLink Tool

PyMAVLink is Tool for Bindings MAVLink with Python and also provide number tools for data analysis MAVLink stream logs

Download
git clone git://github.com/mavlink/mavlink.git

For Ubuntu
sudo apt-get install python-matplotlib

After Install Mathplot install PyMAVLink
cd ~
mkdir -p src
cd src
git clone https://github.com/mavlink/mavlink/
cd mavlink/pymavlink
python setup.py install --user

After install PyMAVLink it will show path in status message.It may vary
example : $HOME/.local/lib/python2.6/site-packages/
Edit ~/.bashrc or ~/.bash_profile and add this line:

export PYTHONPATH="$HOME/.local/lib/python2.6/site-packages/:$PYTHONPATH"
export PATH="$HOME/.local/lib/python2.6/bin/:$PATH"

Reference
1.http://qgroundcontrol.org/mavlink/pymavlink
2.http://pixhawk.org/dev/pymavlink

No comments:

Post a Comment