GyroscopeNormEstimator

constructor(context: Context, sensorType: GyroscopeSensorType = GyroscopeSensorType.GYROSCOPE_UNCALIBRATED, sensorDelay: SensorDelay = SensorDelay.FASTEST, maxSamples: Int = DEFAULT_MAX_SAMPLES, maxDurationMillis: Long = DEFAULT_MAX_DURATION_MILLIS, stopMode: StopMode = StopMode.MAX_SAMPLES_OR_DURATION, completedListener: AccumulatedMeasurementEstimator.OnEstimationCompletedListener<GyroscopeNormEstimator>? = null, unreliableListener: AccumulatedMeasurementEstimator.OnUnreliableListener<GyroscopeNormEstimator>? = null, measurementListener: GyroscopeSensorCollector.OnMeasurementListener? = null)

Parameters

context

Android context.

sensorDelay

Delay of sensor between samples.

maxSamples

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.

maxDurationMillis

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.

stopMode

Determines when this estimator will consider its estimation completed.

completedListener

Listener to notify when estimation is complete.

unreliableListener

Listener to notify when sensor becomes unreliable, and thus, estimation must be discarded.