AccurateRelativeGyroscopeAttitudeProcessor

Estimates relative attitude of device respect to an arbitrary initial attitude using gyroscope measurements only. This processor uses Runge-Kutta integration to obtain greater accuracy than RelativeGyroscopeAttitudeProcessor at the expense of additional cpu usage.

Constructors

constructor(processorListener: BaseRelativeGyroscopeAttitudeProcessor.OnProcessedListener? = null)

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
open override fun process(measurement: GyroscopeSensorMeasurement, timestamp: Long): 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.