BaseRelativeGyroscopeAttitudeProcessor

Base class to estimate relative attitude of device respect to an arbitrary initial attitude using gyroscope measurements only.

Inheritors

Constructors

Types

Link copied to clipboard
fun interface OnProcessedListener

Interface to notify when a new relative attitude has been processed.

Properties

Link copied to clipboard
val attitude: Quaternion

Instance to be reused which contains integrated attitude of all gyroscope samples using NED coordinates system.

Link copied to clipboard
Link copied to clipboard

Time interval expressed in seconds between consecutive gyroscope measurements

Functions

Link copied to clipboard
abstract fun process(measurement: GyroscopeSensorMeasurement, timestamp: Long = measurement.timestamp): Boolean

Processes a gyroscope sensor measurement to integrate angular speed values to obtain an accumulated attitude from an arbitrary attitude of origin.

Link copied to clipboard
fun reset()

Resets this processor to its initial state.