Static Interval Magnetometer Calibrator
Constructor.
Parameters
Android context.
Current device location. If location and timestamp are provided, calibration will be based on Earth's magnetic model.If no location and timestamp is provided, calibration will be based on measured magnetic flux density norm at current location.
Current timestamp.
Earth's magnetic model. Null to use default model.
One of the supported accelerometer sensor types.
One of the supported magnetometer sensor types.
Delay of sensor between samples.
Delay of magnetometer sensor between samples.
true to automatically solve calibration once enough measurements are available, false otherwise.
true if estimated magnetometer hard iron is assumed to be the true value, false if estimated hard iron is assumed to be only an initial guess. When magnetometerSensorType is MagnetometerSensorType.MAGNETOMETER, hard iron guess is zero, otherwise when it is MagnetometerSensorType.MAGNETOMETER_UNCALIBRATED, hard iron guess is the device calibrated values.
listener to notify when initialization starts.
listener to notify when initialization completes.
listener to notify errors.
listener to notify when a static interval is detected.
listener to notify when a dynamic interval is detected.
listener to notify when a static interval is skipped if its duration is too short.
listener to notify when a dynamic interval is skipped if its duration is too long.
listener to notify when a new magnetometer calibration measurement is generated.
listener to notify when enough measurements have been collected and calibrator is ready to solve calibration.
listener to notify when calibration solving starts.
listener to notify when calibration solving completes.
listener to notify when calibrator is stopped.
listener to notify when a guess of hard iron values is obtained.
listener to notify when sensor accuracy changes.
mapper to convert collected magnetometer measurements into quality scores, based on the amount of standard deviation (the larger the variability, the worse the score will be).