Page 2 of 2

Re: HMC5883

Posted: Fri May 25, 2012 3:53 am
by kruftin
But work illegal. I don't understand formula for definition north direction. In datasheet i can'r find it.

Re: HMC5883

Posted: Fri Jun 01, 2012 12:04 am
by kruftin
Now i get normal values for angle, when i rotate compass from 0 to 270 degrees. There are region in 90 degrees(270-360), where compass have non stable and wrong data.
When i rotate compass i get negative value from 0 to -135 and it value i (angle*2) and i think that i have right value, but all value from 0 to 270 degrees is negative, but i use atan2 function.