AnsweredAssumed Answered

eCompass

Question asked by Andreas Sperl on Jan 1, 2013

Hallo,

 

I have a problem when creating a embedded-eCompass-Applikation with the MAG3110(Magnetometer) and the MMA8451A(Accelerometer) on a Kinetis K70.

 

The problem is, that the value of the compass-heading-angle (Rho) always jumps between values of 0°-360°.
So i don't get a continuous value when I turn the eCompass.


I dont see my mistkae in the C-Code (see the attachment).


It would be great if someone could help me.


Best regards,

Andy

Original Attachment has been moved to: eKompass_2.zip

Outcomes