I’m currently using a gyroscope for a project. It gives out angular speed but what I want is the actual angle orientation of the device. I know I need to integrate to get this but I have no idea how. Can anyone help?
Integration just means summing the angles over time; just make sure you have a constant sampling rate.
I’ve no idea how you cope with drift though.
an accelerometer might be better for orientation. someone posted a few days ago about doing this for a helicopter. you might see how he’s doing.
just make sure you have a constant sampling rate.
Well just make sure you sample at least twice as fast as the fastest change you will see.
The down side is the faster you sample the worst the drift is.