onSample

abstract fun onSample(attitude: FloatArray, headingErrorDeg: Float, trueNorth: Boolean, timestampNs: Long)(source)

attitude is the device-to-east-north-up quaternion as (x, y, z, w), the rotation vector's layout. headingErrorDeg is the 95% half-cone of the heading error, 180 or more when unknown. trueNorth says the attitude is referenced to true north.