eCompass

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

eCompass

2,694 Views
andy87
Contributor II

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

Labels (1)
0 Kudos
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-219539%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EeCompass%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219539%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHallo%2C%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3EI%20have%20a%20problem%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3Ewhen%20creating%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3Ea%20embedded-eCompass-Applikation%20with%20the%20MAG3110(Magnetometer)%20and%20the%20MMA8451A(Accelerometer)%20on%20a%20Kinetis%20K70.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3EThe%20problem%20is%2C%20that%20the%20value%20of%20the%20compass-heading-angle%20(Rho)%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3Ealways%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3Ejumps%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3Ebetween%20values%3C%2FSPAN%3E%20of%20%3CSPAN%20class%3D%22hps%22%3E0%C2%B0-360%C2%B0.%3C%2FSPAN%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3ESo%20i%20don't%20get%3C%2FSPAN%3E%20a%20%3CSPAN%20class%3D%22hps%22%3Econtinuous%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3Evalue%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3Ewhen%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3EI%20turn%20the%20eCompass.%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3EI%20dont%20see%20my%20mistkae%20in%20the%20C-Code%20(see%20the%20attachment).%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3EIt%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3Ewould%20be%20great%20if%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3Esomeone%20could%20help%20me.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3EBest%20regards%2C%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3EAndy%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EOriginal%20Attachment%20has%20been%20moved%20to%3A%20%3CA%20_jive_internal%3D%22true%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fdocs%2FDOC-338868%22%20target%3D%22_blank%22%3EeKompass_2.zip%3C%2FA%3E%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-219539%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EMagnetic%20Sensors%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E