Towards a Factor Graph-Based Method using Angular Rates for Full Magnetometer Calibration and Gyroscope Bias Estimation
Sebastián Rodríguez-Martínez, Giancarlo Troni
TL;DR
The paper tackles magnetometer–gyroscope calibration for MEMS-based AHRS under limited motion and GPS-denied settings. It proposes MAGYC, a factor-graph–based framework that uses three-axis angular-rate data to jointly estimate soft-iron and hard-iron magnetometer effects and gyroscope bias without relying on knowledge of the local magnetic field or attitude, with batch (MAGYC-BFG) and online (MAGYC-IFG) variants. The key contributions include a single-state-node factor-graph formulation, unary residuals from a nonlinear model, a unit-norm constraint on the soft-iron parameters, an averaging window to manage complexity, and the use of the RISE optimizer for robust online sparse nonlinear least-squares estimation. Across numerical simulations and field experiments (underwater vehicle), MAGYC significantly improves heading accuracy, outperforming TWOSTEP, Ellipsoid Fit, and MagFactor3, especially in constrained-motion scenarios, thereby enabling accurate, real-time calibration for low-cost MEMS AHRS with strong practical impact for underwater, aerial, and ground navigation.
Abstract
MEMS Attitude Heading Reference Systems are widely employed to determine a system's attitude, but sensor measurement biases limit their accuracy. This paper introduces a novel factor graph-based method called MAgnetometer and GYroscope Calibration (MAGYC). MAGYC leverages three-axis angular rate measurements from an angular rate gyroscope to enhance calibration for batch and online applications. Our approach imposes less restrictive conditions for instrument movements required for calibration, eliminates the need for knowledge of the local magnetic field or instrument attitude, and facilitates integration into factor graph algorithms within Smoothing and Mapping frameworks. We evaluate the proposed methods through numerical simulations and in-field experimental assessments using a sensor installed on an underwater vehicle. Ultimately, our proposed methods reduced the underwater vehicle's heading error standard deviation from 6.21 to 0.57 degrees for a standard seafloor mapping survey.
