onAttitudeAvailable

abstract fun onAttitudeAvailable(estimator: KalmanRelativeAttitudeEstimator, attitude: Quaternion, timestamp: Long, roll: Double?, pitch: Double?, yaw: Double?, coordinateTransformation: CoordinateTransformation?, quaternionCovariance: Matrix?, eulerAnglesCovariance: Matrix?)

Called when a new attitude measurement is available.

Parameters

estimator

estimator that raised this event.

attitude

attitude expressed in NED coordinates.

timestamp

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

roll

roll angle expressed in radians respect to NED coordinate system. Only available if estimateEulerAngles is true.

pitch

pitch angle expressed in radians respect to NED coordinate system. Only available if estimateEulerAngles is true.

yaw

yaw angle expressed in radians respect to NED coordinate system. Only available if estimateEulerAngles is true.

coordinateTransformation

coordinate transformation containing measured leveling attitude. Only available if estimateCoordinateTransformation is true.

quaternionCovariance

covariance of estimated quaternion attitude expressed as a 4x4 matrix. Only available if estimateCovariances is true.

eulerAnglesCovariance

covariance of estimated Euler angles corresponding to current attitude in NED coordinates, as a 3x3 matrix. Only available if estimateEulerAngles and estimateCovariances are true.