How to post-process ecompass heading from logged data

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

How to post-process ecompass heading from logged data

694 Views
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

Labels (1)
0 Kudos
1 Reply

350 Views
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 Kudos