cancel
Showing results for 
Search instead for 
Did you mean: 

LSM303AGR heading angle calculation problems.

netanelu
Associate III

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.

0 REPLIES 0