How to post-process ecompass heading from logged data

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

How to post-process ecompass heading from logged data

1,208 次查看
chriswrighton
Contributor I

Hi,

I have a data set of MAG3110 magnetometer XYZ, MMA8451Q accelerometer XYZ and hard and soft iron offsets. Since all the available code here is geared towards live acquisition from development boards, would anyone be kind enough to suggest the quickest way to post-process the data set into ecompass pitch, roll and tilt-compensated heading please? I'm most familiar with Matlab but can also work with C.

Many thanks in advance..

Chris

标签 (1)
0 项奖励
回复
1 回复

864 次查看
michaelestanley
NXP Employee
NXP Employee

Chris,

See video #14 at https://community.nxp.com/thread/465153  to learn how an ecompass works.  BUT I should tell you that without running magnetic compensation on the magnetometer outputs, it is very possible you will see significant errors.  Video #13 in the same series discusses that topic.  If you haven't logged data for compensation purposes, the best you can do is try to estimate constant offsets in the magnetometer outputs from the data you have.

Mike

0 项奖励
回复