Saturday, September 7, 2013

Get device motion direction using accelerometer

Get device motion direction using accelerometer

I'm trying to detect the direction of motion of an android device using
the accelerometer. I've removed the gravity components from the
accelerometer output values and deducted the angles.
So I am able to get the direction of motion but I also get arbitrary
angles momentarily. Like when I stop moving the device.
Any suggestions how I could filter those angles out?

No comments:

Post a Comment