Accelerometer Noise Estimator
constructor(context: Context, sensorType: AccelerometerSensorType = AccelerometerSensorType.ACCELEROMETER_UNCALIBRATED, sensorDelay: SensorDelay = SensorDelay.FASTEST, maxSamples: Int = DEFAULT_MAX_SAMPLES, maxDurationMillis: Long = DEFAULT_MAX_DURATION_MILLIS, stopMode: StopMode = StopMode.MAX_SAMPLES_OR_DURATION, completedListener: AccumulatedTriadEstimator.OnEstimationCompletedListener<AccelerometerNoiseEstimator>? = null, unreliableListener: AccumulatedTriadEstimator.OnUnreliableListener<AccelerometerNoiseEstimator>? = null, measurementListener: AccelerometerSensorCollector.OnMeasurementListener? = null)
Parameters
context
Android context.
sensor Delay
Delay of sensor between samples.
max Samples
Maximum number of samples to take into account before completion. This is only taken into account if using either StopMode.MAX_SAMPLES_ONLY or StopMode.MAX_SAMPLES_OR_DURATION.
max Duration Millis
Maximum duration expressed in milliseconds to take into account before completion. This is only taken into account if using either StopMode.MAX_DURATION_ONLY or StopMode.MAX_SAMPLES_OR_DURATION.
stop Mode
Determines when this estimator will consider its estimation completed.
completed Listener
Listener to notify when estimation is complete.
unreliable Listener
Listener to notify when sensor becomes unreliable, and thus, estimation must be discarded.