StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator

constructor(context: Context, location: Location? = null, timestamp: Date = Date(), worldMagneticModel: WorldMagneticModel? = null, accelerometerSensorType: AccelerometerSensorType = AccelerometerSensorType.ACCELEROMETER_UNCALIBRATED, gyroscopeSensorType: GyroscopeSensorType = GyroscopeSensorType.GYROSCOPE_UNCALIBRATED, magnetometerSensorType: MagnetometerSensorType = MagnetometerSensorType.MAGNETOMETER_UNCALIBRATED, accelerometerSensorDelay: SensorDelay = SensorDelay.FASTEST, gyroscopeSensorDelay: SensorDelay = SensorDelay.FASTEST, magnetometerSensorDelay: SensorDelay = SensorDelay.FASTEST, solveCalibrationWhenEnoughMeasurements: Boolean = true, isAccelerometerGroundTruthInitialBias: Boolean = false, isGyroscopeGroundTruthInitialBias: Boolean = false, isMagnetometerGroundTruthInitialHardIron: Boolean = false, initializationStartedListener: StaticIntervalWithMeasurementGeneratorCalibrator.OnInitializationStartedListener<StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator>? = null, initializationCompletedListener: StaticIntervalWithMeasurementGeneratorCalibrator.OnInitializationCompletedListener<StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator>? = null, errorListener: StaticIntervalWithMeasurementGeneratorCalibrator.OnErrorListener<StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator>? = null, staticIntervalDetectedListener: StaticIntervalWithMeasurementGeneratorCalibrator.OnStaticIntervalDetectedListener<StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator>? = null, dynamicIntervalDetectedListener: StaticIntervalWithMeasurementGeneratorCalibrator.OnDynamicIntervalDetectedListener<StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator>? = null, staticIntervalSkippedListener: StaticIntervalWithMeasurementGeneratorCalibrator.OnStaticIntervalSkippedListener<StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator>? = null, dynamicIntervalSkippedListener: StaticIntervalWithMeasurementGeneratorCalibrator.OnDynamicIntervalSkippedListener<StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator>? = null, generatedAccelerometerMeasurementListener: StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator.OnGeneratedAccelerometerMeasurementListener? = null, generatedGyroscopeMeasurementListener: StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator.OnGeneratedGyroscopeMeasurementListener? = null, generatedMagnetometerMeasurementListener: StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator.OnGeneratedMagnetometerMeasurementListener? = null, readyToSolveCalibrationListener: StaticIntervalWithMeasurementGeneratorCalibrator.OnReadyToSolveCalibrationListener<StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator>? = null, calibrationSolvingStartedListener: StaticIntervalWithMeasurementGeneratorCalibrator.OnCalibrationSolvingStartedListener<StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator>? = null, calibrationCompletedListener: StaticIntervalWithMeasurementGeneratorCalibrator.OnCalibrationCompletedListener<StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator>? = null, stoppedListener: StaticIntervalWithMeasurementGeneratorCalibrator.OnStoppedListener<StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator>? = null, unreliableGravityNormEstimationListener: StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator.OnUnreliableGravityEstimationListener? = null, initialAccelerometerBiasAvailableListener: StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator.OnInitialAccelerometerBiasAvailableListener? = null, initialGyroscopeBiasAvailableListener: StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator.OnInitialGyroscopeBiasAvailableListener? = null, initialMagnetometerHardIronAvailableListener: StaticIntervalAccelerometerGyroscopeAndMagnetometerCalibrator.OnInitialMagnetometerHardIronAvailableListener? = null, accuracyChangedListener: SensorCollector.OnAccuracyChangedListener? = null, accelerometerQualityScoreMapper: QualityScoreMapper<StandardDeviationBodyKinematics> = DefaultAccelerometerQualityScoreMapper(), gyroscopeQualityScoreMapper: QualityScoreMapper<BodyKinematicsSequence<StandardDeviationTimedBodyKinematics>> = DefaultGyroscopeQualityScoreMapper(), magnetometerQualityScoreMapper: QualityScoreMapper<StandardDeviationBodyMagneticFluxDensity> = DefaultMagnetometerQualityScoreMapper())

Constructor.

Parameters

context

Android context.

location

location where device is located at. When location is provided, gravity norm is assumed to be the theoretical value determined by WGS84 Earth model, otherwise, if no location is provided, gravity norm is estimated using a gravity sensor. Additionally, if location and timestamp are provided, magnetometer calibration will be based on Earth's magnetic model, otherwise magnetometer calibration will be based on measured magnetic flux density norm at current location.

timestamp

Current timestamp.

worldMagneticModel

Earth's magnetic model. Null to use default model.

accelerometerSensorType

One of the supported accelerometer sensor types.

gyroscopeSensorType

One of the supported gyroscope sensor types.

magnetometerSensorType

One of the supported magnetometer sensor types.

accelerometerSensorDelay

Delay of accelerometer sensor between samples.

gyroscopeSensorDelay

Delay of gyroscope sensor between samples.

magnetometerSensorDelay

Delay of magnetometer sensor between samples.

solveCalibrationWhenEnoughMeasurements

true to automatically solve calibration once enough measurements are available, false otherwise.

isAccelerometerGroundTruthInitialBias

true if estimated accelerometer bias is assumed to be the true value, false if estimated bias is assumed to be only an initial guess. When accelerometerSensorType is AccelerometerSensorType.ACCELEROMETER, bias guess is zero, otherwise when it is AccelerometerSensorType.ACCELEROMETER_UNCALIBRATED, bias guess is the device calibrated values.

isGyroscopeGroundTruthInitialBias

true if estimated gyroscope bias is assumed to be the true value, false if estimated bias is assumed to be only an initial guess. When gyroscopeSensorType is GyroscopeSensorType.GYROSCOPE, bias guess is zero, otherwise when it is GyroscopeSensorType.GYROSCOPE_UNCALIBRATED, bias guess is the device calibrated values.

isMagnetometerGroundTruthInitialHardIron

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.

initializationStartedListener

listener to notify when initialization starts.

unreliableGravityNormEstimationListener

listener to notify when gravity norm estimation becomes unreliable. This is only used if no location is provided.