US 11,815,568 B2
System and method for fast magnetometer calibration using gyroscope
Mahaveer Jain, Santa Clara, CA (US); and Mahesh Chowdhary, San Jose, CA (US)
Assigned to STMicroelectronics, Inc., Coppell, TX (US)
Filed by STMicroelectronics, Inc., Coppell, TX (US)
Filed on Dec. 28, 2020, as Appl. No. 17/135,628.
Prior Publication US 2022/0206085 A1, Jun. 30, 2022
Int. Cl. G01R 33/00 (2006.01); G01C 25/00 (2006.01)
CPC G01R 33/0035 (2013.01) [G01C 25/005 (2013.01)] 16 Claims
OG exemplary drawing
 
1. A method, comprising:
generating gyroscope sensor signals with a gyroscope of an electronic device;
generating magnetometer sensor signals with a magnetometer of the electronic device;
estimating a first magnetometer calibration parameter by performing a Kalman filter process with the gyroscope sensor signals and the magnetometer sensor signals;
estimating a second magnetometer calibration parameter by performing a least squares process with the gyroscope sensor signals and the magnetometer sensor signals;
validating the first and second magnetometer calibration parameters by analyzing a convergence between the first magnetometer calibration parameter and the second magnetometer calibration parameter; and
simultaneously operating multiple instances of the Kalman filter and the least squares process, wherein the multiple instances of the Kalman filter and the least squares process are offset from each other in time, wherein simultaneously operating multiple instances of the Kalman filter and least squares process includes continuously calibrating the magnetometer.