2019-10-08 02:30 AM
Hi,
I'm trying to get the heading direction from the compass of LSM303AGR, I'm getting the X,Y,Z data and configured the compass and the accelerometer.
I just preform a atan2(y,x) function and not using any filtering or compensations. I wanted to see data that going around +-180 deg when spinning the compass and 180 deg different when i spin the compass to other direction. But i'm getting very strange reading and cant understand what is wrong.
Looking for advice :\
Attach the compass data, the Y,X raw from the compass (without the sensitivity adjustment) and the atan2 result.