0

I'm triying to get the inclination of an android device mounted on a moving vehicle using TYPE_ROTATION_VECTOR with sensor manager.

It works fine until the vehicle accelerates or decelerates suddenly, moment in which it becomes a bit crazy and gives wrong values.

Is there any way to compensate the acceleration or is there any way to measure the inclination using raw sensor data which has in account the device acceleration?

0 Answers0