PyPX4Flow: A cross-platform Python package for reading from the PX4Flow optical-flow sensor

I needed an easy way to access data from the PX4Flow sensor using Python, so I wrote this little package, which you can download from github. It runs on Windows, Linux, and OS X in Python 2 and 3. As with the other Python packages I've written, the API is very simple.  I'm hoping that this package will enable students, hobbyists, and others to use the PX4Flow for cool projects on MAVs and other robots.

One thing I could use some help with is the MAVLink parsing.  I looked over pymavlink and was unable to find a class that I could subclass or include to do what I needed, so I wrote my own little parser.  Among other shortcomings, this meant that I was unable to to checksum validation (again, I looked over the checksum code in pymavlink and was unable to figure out how to use it.)  So if anyone wants to modify the code on github, let me know, and I'll add you as a developer. 

Views: 1485

Comment by Rob Thompson on September 3, 2014 at 4:58pm
Great work, I hope you find some contributors for this project.
Comment by Greg Dronsky on September 4, 2014 at 3:35am

I will try to run this, my python knowledge is still small but maybe i will pull it off :)


You need to be a member of DIY Drones to add comments!

Join DIY Drones

© 2018   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service