How to get orientation of android from gyrsocope sensor events ?

Posted by Pritam on Stack Overflow See other posts from Stack Overflow or by Pritam
Published on 2011-03-13T15:51:20Z Indexed on 2011/03/13 16:10 UTC
Read the original article Hit count: 268

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.

© Stack Overflow or respective owner

Related posts about android

Related posts about orientation