BaseRelativeGyroscopeAttitudeEstimator2

abstract class BaseRelativeGyroscopeAttitudeEstimator2<T : BaseRelativeGyroscopeAttitudeEstimator2<T, L1, L2>, L1 : BaseRelativeGyroscopeAttitudeEstimator2.OnAttitudeAvailableListener<T, L1, L2>, L2 : BaseRelativeGyroscopeAttitudeEstimator2.OnAccuracyChangedListener<T, L1, L2>>(val context: Context, val sensorType: GyroscopeSensorType, val sensorDelay: SensorDelay, val startOffsetEnabled: Boolean, val estimateCoordinateTransformation: Boolean, val estimateEulerAngles: Boolean, var attitudeAvailableListener: L1?, var accuracyChangedListener: L2?)

Base class for estimators of device relative attitude respect to start attitude by integrating gyroscope sensor data without using any additional sensors.

Inheritors

Constructors

Link copied to clipboard
constructor(context: Context, sensorType: GyroscopeSensorType, sensorDelay: SensorDelay, startOffsetEnabled: Boolean, estimateCoordinateTransformation: Boolean, estimateEulerAngles: Boolean, attitudeAvailableListener: L1?, accuracyChangedListener: L2?)

Properties

Link copied to clipboard

listener to notify changes in accuracy.

Link copied to clipboard

listener to notify when a new attitude measurement is available.

Link copied to clipboard

Android context.

Link copied to clipboard

true to estimate coordinate transformation, false otherwise. If not needed, it can be disabled to improve performance and decrease cpu load.

Link copied to clipboard

true to estimate euler angles, false otherwise. If not needed, it can be disabled to improve performance and decrease cpu load.

Link copied to clipboard

Indicates whether this estimator is running or not.

Link copied to clipboard

Delay of gyroscope between samples.

Link copied to clipboard

One of the supported gyroscope sensor types.

Link copied to clipboard

Initial offset expressed in nano seconds between first received measurement timestamp and start time expressed in the monotonically increasing system clock obtained by SystemClock.elapsedRealtimeNanos.

Link copied to clipboard

indicates whether startOffset will be computed when first measurement is received or not. True indicates that offset is computed, false assumes that offset is null.

Link copied to clipboard

Time interval expressed in seconds between consecutive gyroscope measurements

Functions

Link copied to clipboard
fun start(startTimestamp: Long = SystemClock.elapsedRealtimeNanos()): Boolean

Starts this estimator.

Link copied to clipboard
fun stop()

Stops this estimator.