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

Saturday, October 11, 2014

Fixing QT GUI font Issue on Linux,Windows


Windows 7 version

Ubuntu 12.04 LTS version

with same code of  PyQt application came out with different outcome
this issue case of different in default font family and font size 

fixing by define correctly font in code
self.setStyleSheet('font-size: 8pt; font-family: Tahoma;')

result after fixed problem

Ubuntu 12.04 LTS version (after fixed problem)