Full Magnetometer and Gyroscope Bias Estimation using Angular Rates: Theory and Experimental Evaluation of a Factor Graph-Based Approach
Sebastián Rodríguez-Martínez, Giancarlo Troni
TL;DR
MEMS AHRS suffer from magnetometer biases (hard-iron $m_b$ and soft-iron $A$) and gyroscope bias, limiting attitude accuracy. MAGYC estimates full magnetometer calibration and gyroscope bias from magnetometer and angular-rate measurements using two factor-graph formulations (batch and online incremental). The key innovations include a Cholesky-based parametrization of $C = A^{-1}$ with unit-volume constraint, a residual that eliminates the need for attitude or local magnetic-field magnitude, and seamless integration with smoothing and mapping frameworks via $GTSAM$. Validation on Monte Carlo simulations and field data from an underwater mapping mission shows dramatic reductions in heading errors and dead-reckoning drift, e.g., from about 10% to 0.5% of traveled distance.
Abstract
Despite their widespread use in determining system attitude, Micro-Electro-Mechanical Systems (MEMS) Attitude and Heading Reference Systems (AHRS) are limited by sensor measurement biases. This paper introduces a method called MAgnetometer and GYroscope Calibration (MAGYC), leveraging three-axis angular rate measurements from an angular rate gyroscope to estimate both the hard- and soft-iron biases of magnetometers as well as the bias of gyroscopes. We present two implementation methods of this approach based on batch and online incremental factor graphs. Our method imposes fewer restrictions on instrument movements required for calibration, eliminates the need for knowledge of the local magnetic field magnitude or instrument's attitude, and facilitates integration into factor graph algorithms for Smoothing and Mapping frameworks. We validate the proposed methods through numerical simulations and in-field experimental evaluations with a sensor onboard an underwater vehicle. By implementing the proposed method in field data of a seafloor mapping dive, the dead reckoning-based position estimation error of the underwater vehicle was reduced from 10% to 0.5% of the distance traveled.
