Magnetometer calibration data interpretation
I have a use case where I'd like to log the quaternion output from sensor fusion, as well as magnetic field data from the magnetometer. As far as I can tell, it's not possible to log 2 outputs of sensor fusion at the same time, so it has to be quaternion data and raw magnetometer output.
Once the data is downloaded from the sensor, I'd like to perform hard/soft iron correction on it. Since sensor fusion was used for the quaternion output, I guess its calibration data could be used instead of me trying to perform calibration manually from the data.
Can you please describe what exactly is stored in the 10 bytes of
MblMwCalibrationData.mag? Layout of the data as well as the units of the data would be useful.
Also, if you have any relevant guide available for how the magnetometer data correction happens based on
MblMwCalibrationData.mag, please share it with me.