eCompass

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

eCompass

2,764 次查看
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

标签 (1)
0 项奖励
0 回复数
%3CLINGO-SUB%20id%3D%22lingo-sub-219539%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E7%94%B5%E5%AD%90%E7%BD%97%E7%9B%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219539%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%E4%BD%A0%E5%A5%BD%E3%80%81%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%3E%E6%88%91%E6%9C%89%E4%B8%80%E4%B8%AA%E9%97%AE%E9%A2%98%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3E%E5%9C%A8%E5%88%9B%E5%BB%BA%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3E%E5%9C%A8%20Kinetis%20K70%20%E4%B8%8A%E4%BD%BF%E7%94%A8%20MAG3110%EF%BC%88%E7%A3%81%E5%8A%9B%E8%AE%A1%EF%BC%89%E5%92%8C%20MMA8451A%EF%BC%88%E5%8A%A0%E9%80%9F%E8%AE%A1%EF%BC%89%E5%88%9B%E5%BB%BA%E5%B5%8C%E5%85%A5%E5%BC%8F%E7%BD%97%E7%9B%98%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%97%B6%EF%BC%8C%E6%88%91%E9%81%87%E5%88%B0%E4%BA%86%E9%97%AE%E9%A2%98%E3%80%82%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%3E%E9%97%AE%E9%A2%98%E6%98%AF%EF%BC%8C%E7%BD%97%E7%9B%98%E6%8C%87%E5%90%91%E8%A7%92%20(Rho)%20%E7%9A%84%E5%80%BC%E6%80%BB%E6%98%AF%E5%9C%A8%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3E%200%C2%B0-360%C2%B0%20%E4%B9%8B%E9%97%B4%E8%B7%B3%E8%B7%83%E3%80%82%3C%2FSPAN%3E%3CSPAN%20class%3D%22hps%22%3E%20%E5%80%BC%20%E6%80%BB%E6%98%AF%20%E5%9C%A8%3C%2FSPAN%3E%200%C2%B0-360%C2%B0%20%E4%B9%8B%E9%97%B4%3CSPAN%20class%3D%22hps%22%3E%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22hps%22%3E%E8%B7%B3%E5%8A%A8%20%E3%80%82%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%3E%E5%9B%A0%E6%AD%A4%EF%BC%8C%3C%2FSPAN%3E%3CSPAN%20class%3D%22hps%22%3E%20%E5%BD%93%3C%2FSPAN%3E%3CSPAN%20class%3D%22hps%22%3E%20%E6%88%91%E8%BD%AC%E5%8A%A8%E7%94%B5%E5%AD%90%E7%BD%97%E7%9B%98%20%E6%97%B6%EF%BC%8C%20%E4%B8%8D%E4%BC%9A%E5%BE%97%E5%88%B0%3CBR%20%2F%3E%3C%2FSPAN%3E%20%E4%B8%80%E4%B8%AA%3CSPAN%20class%3D%22hps%22%3E%20%E8%BF%9E%E7%BB%AD%E7%9A%84%3C%2FSPAN%3E%3CSPAN%20class%3D%22hps%22%3E%20%E6%95%B0%E5%80%BC%20%E3%80%82%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%3E%E6%88%91%E6%B2%A1%E6%9C%89%E5%9C%A8%20C%20%E4%BB%A3%E7%A0%81%E4%B8%AD%E7%9C%8B%E5%88%B0%E6%88%91%E7%9A%84%E9%94%99%E8%AF%AF%EF%BC%88%E8%A7%81%E9%99%84%E4%BB%B6%EF%BC%89%E3%80%82%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%3E%E5%A6%82%E6%9E%9C%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3E%E5%A6%82%E6%9E%9C%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hps%22%3E%E6%9C%89%E4%BA%BA%E8%83%BD%E5%B8%AE%E6%88%91%E7%9A%84%E8%AF%9D%E5%B0%B1%E5%A4%AA%E5%A5%BD%E4%BA%86%E3%80%82%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%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%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%E5%AE%89%E8%BF%AA%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%E5%8E%9F%E5%A7%8B%E9%99%84%E4%BB%B6%E5%B7%B2%E7%A7%BB%E8%87%B3%EF%BC%9A%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%3E%E7%A3%81%E5%8A%9B%E4%BC%A0%E6%84%9F%E5%99%A8%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E