Then don't try and just use an accelerometer to establish orientation because it doesn't work.
No takers? C'mon guys! Why is this so hardddddd
Quote from: Rob Cameron on Jan 28, 2014, 09:16 pmNo takers? C'mon guys! Why is this so harddddddTwo words: kalman filter
There are several open source AHRS (Attitude and Heading Reference System) projects around for you to use as a guide. They are intended for navigation, but the "Attitude" part does what you want. Here is David Grayson's, intended for the Pololu Mini-IMU and the Raspberry Pi: https://github.com/DavidEGrayson/minimu9-ahrsThere is this link on Sebastian Madgwick's page: http://www.x-io.co.uk/open-source-imu-and-ahrs-algorithms/One on Google Code: http://code.google.com/p/openahrs/wiki/openAHRSFinally you can buy self contained modules with code very cheaply these days: http://www.chrobotics.com/