onProcessed

abstract fun onProcessed(processor: AttitudeProcessor, attitude: Quaternion, timestamp: Long, accuracy: SensorAccuracy?)

Called when a new attitude measurement is processed.

Parameters

processor

processor that raised this event.

attitude

containing absolute or relative device attitude expressed in NED coordinates.

timestamp

time in nanoseconds at which the measurement was made. Each measurement will be monotonically increasing using the same time base as android.os.SystemClock.elapsedRealtimeNanos.

accuracy

attitude sensor accuracy.