How to get orientation of android from gyrsocope sensor events ?
- by Pritam
I am using android 2.3 on Nexus S and want to get orientation from gyroscope sensor events. As gyro gives angular velocity how to use this for getting device orientation ?
Also is there any way we can get pure linear accelerations on phone's axis, without gravity vector. I expected this from Linear acceleration sensor event but just found a post and referred android source as well for Sensor which currently uses only accelerometer.
So what's the best way to combine the readings from both hardware to get pure accelerations without gravity inclusions ?
Thanks.