AccurateRelativeGyroscopeAttitudeEstimator

class AccurateRelativeGyroscopeAttitudeEstimator(context: Context, sensorType: GyroscopeSensorType = GyroscopeSensorType.GYROSCOPE_UNCALIBRATED, sensorDelay: SensorDelay = SensorDelay.GAME, estimateCoordinateTransformation: Boolean = false, estimateEulerAngles: Boolean = true, attitudeAvailableListener: AccurateRelativeGyroscopeAttitudeEstimator.OnAttitudeAvailableListener? = null, gyroscopeMeasurementListener: GyroscopeSensorCollector.OnMeasurementListener? = null) : BaseRelativeGyroscopeAttitudeEstimator<AccurateRelativeGyroscopeAttitudeEstimator, AccurateRelativeGyroscopeAttitudeEstimator.OnAttitudeAvailableListener>

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, estimateCoordinateTransformation: Boolean = false, estimateEulerAngles: Boolean = true, attitudeAvailableListener: AccurateRelativeGyroscopeAttitudeEstimator.OnAttitudeAvailableListener? = null, gyroscopeMeasurementListener: GyroscopeSensorCollector.OnMeasurementListener? = null)

Properties

Link copied to clipboard

listener to notify when a new attitude measurement is available.

Link copied to clipboard

Gets average time interval between gyroscope samples expressed in seconds.

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

listener to notify new gyroscope measurements.

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.

Functions

Link copied to clipboard
fun start(): Boolean

Starts this estimator.

Link copied to clipboard
fun stop()

Stops this estimator.