jremington / ICM_20948-AHRS

Mahony Fusion Filter and Tilt compensated compass for ICM_20948
32 stars 7 forks source link

Magnetometer Calibration #9

Closed jasvinder1079 closed 5 months ago

jasvinder1079 commented 5 months ago

While collecting calib data do we need to put sensor in particular direction like x direction of sensor should put in north then rotate sensor in 3D? and , How often do we need to calibrate this sensor ?Every time when powered up or only during location change?

jremington commented 5 months ago

The best overview on magnetometer calculation is this one: https://thecavepearlproject.org/2015/05/22/calibrating-any-compass-or-accelerometer-for-arduino/

Collect a full 3D sphere of data and calibrate (in place, if possible), when the compass direction for magnetic North is off by more than a couple of degrees.