Sensor Readings (Video)
Below is a short screen capture of the Remote Control app with sensor readings that I just incorporated into the app. BNO055 seems to be working great. Behind the scenes I’m holding the copter in my hand and rotating it every which way.
Please ignore the ugly interface (it’s work in progress) and random motor speeds readings (there is an error in calculations that I fixed after I made the video).
The only issue I’ve noticed so far is that if I interrupt the server app on the Raspberry Pi, sometimes serial bus gets out of whack and gives errors on consecutive attempts to read from it. Need to investigate for ways to gracefully disconnect from the serial bus.
A couple of things they don’t mention on Adafruit guide to working with the sensor is that there are 2 additional dependencies for Python library for it. One is Adafruit GPIO module that can be found here: https://github.com/adafruit/Adafruit_Python_GPIO. Another is Python’s serial module that you can install by running this on Raspberry Pi:
sudo apt-get install python-serial