Relative Gyroscope Attitude Estimator
class RelativeGyroscopeAttitudeEstimator(context: Context, sensorType: GyroscopeSensorType = GyroscopeSensorType.GYROSCOPE_UNCALIBRATED, sensorDelay: SensorDelay = SensorDelay.GAME, estimateCoordinateTransformation: Boolean = false, estimateDisplayEulerAngles: Boolean = true, attitudeAvailableListener: RelativeGyroscopeAttitudeEstimator.OnAttitudeAvailableListener? = null, gyroscopeMeasurementListener: GyroscopeSensorCollector.OnMeasurementListener? = null) : BaseRelativeGyroscopeAttitudeEstimator<RelativeGyroscopeAttitudeEstimator, RelativeGyroscopeAttitudeEstimator.OnAttitudeAvailableListener>
Estimates relative attitude respect to start attitude by integrating gyroscope sensor data without using any additional sensors.
Constructors
Link copied to clipboard
constructor(context: Context, sensorType: GyroscopeSensorType = GyroscopeSensorType.GYROSCOPE_UNCALIBRATED, sensorDelay: SensorDelay = SensorDelay.GAME, estimateCoordinateTransformation: Boolean = false, estimateDisplayEulerAngles: Boolean = true, attitudeAvailableListener: RelativeGyroscopeAttitudeEstimator.OnAttitudeAvailableListener? = null, gyroscopeMeasurementListener: GyroscopeSensorCollector.OnMeasurementListener? = null)
Types
Link copied to clipboard
fun interface OnAttitudeAvailableListener : BaseRelativeGyroscopeAttitudeEstimator.OnAttitudeAvailableListener<RelativeGyroscopeAttitudeEstimator, RelativeGyroscopeAttitudeEstimator.OnAttitudeAvailableListener>
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
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
Delay of gyroscope between samples.
Link copied to clipboard
One of the supported gyroscope sensor types.