I use an Android device to get the title (azimuth or angle of rotation).
The Android API used the Accelerometer value + mganetic field to calculate the rotation of the matrix, the azimuth is then extracted from this matrix (aka SensorManager.getOrientation (...)). But the result is very inaccurate! especially if the phone is concerned about some kind of magnetic material.
And then I have a gyroscope. If I integrate the gyro time value, I can get the actual angle, but as everyone knows: p, it is subject to drift ... after 10 seconds even I donโt move the angle 10 ยฐ ...
So, on the one hand I have the result of acceleration + magnetically, this is pretty shit near the magnetic field and on the other hand I have the result of a gyroscope, which is really good, but changes over time ...
So my question is: is there a simple or smart way to combine the two results together to get a kind of โreliableโ rate assessment? I speak easily because I know that there are kalman filters. but even hard I read the theory 50 times, I canโt get the damn thing :).
Thanks!
source share