Patent Document ID: 10151805
Application ID: 14974402
Patent Flag: 1

Claim One:
1. A method, comprising: acquiring magnetic data from a magnetometer; and in a processing device, performing steps of: generating a calibration status indicator as a function of time elapsed since a last calibration and variation in total magnetic field in previously stored magnetic data, the calibration status indicator indicating whether a calibration process should be performed; detecting anomalies in the magnetic data; extracting a sparse magnetic data set only if the calibration status indicator indicates that the calibration process should be performed, the extraction performed using a comparison between the previously stored magnetic data and the magnetic data from the magnetometer, based on the calibration status indicator; generating calibration parameters for the magnetometer using a calibration method as a function of the magnetic data set, if the sparse magnetic data set is extracted and is sufficient; storing the calibration parameters in a calibration parameter store, based on performing a validation and stability check on the calibration parameters; weighting the calibration parameters and the previously stored calibration parameters to produce weighted calibration parameters, if the calibration parameters were stored in the calibration parameter store; and generating calibration settings for the magnetometer as a function of the weighted calibration parameters, if the weighted calibration parameters were produced.