BaseRelativeGyroscopeAttitudeEstimator

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

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 = GyroscopeSensorType.GYROSCOPE_UNCALIBRATED, sensorDelay: SensorDelay = SensorDelay.GAME, estimateCoordinateTransformation: Boolean = false, estimateEulerAngles: Boolean = true, attitudeAvailableListener: L? = null, gyroscopeMeasurementListener: GyroscopeSensorCollector.OnMeasurementListener?)

Types

Link copied to clipboard

Interface to notify when a new attitude measurement is available.

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.