AccurateRelativeGyroscopeAttitudeEstimator2

Estimates relative attitude respect to start attitude by integrating gyroscope sensor data using Runge-Kutta integration for greater accuracy, and without using any additional sensors.

Constructors

constructor(context: Context, sensorType: GyroscopeSensorType = GyroscopeSensorType.GYROSCOPE_UNCALIBRATED, sensorDelay: SensorDelay = SensorDelay.GAME, startOffsetEnabled: Boolean = false, estimateCoordinateTransformation: Boolean = false, estimateEulerAngles: Boolean = true, attitudeAvailableListener: AccurateRelativeGyroscopeAttitudeEstimator2.OnAttitudeAvailableListener? = null, accuracyChangedListener: AccurateRelativeGyroscopeAttitudeEstimator2.OnAccuracyChangedListener? = null)

Types

Properties

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.