I bought the Enviro pHAT from the adafruit shop, and after some research I found the magnetometer/accelerometer chip can be used to measure pitch and yaw, according to this documentation: http://www.st.com/content/ccc/resource/ … 286303.pdf
This would be perfect for my project, but I can’t begin to decipher this into the python library I’ve been been using in this project. Any help would be greatly appreciated.