on Leveling Available
abstract fun onLevelingAvailable(estimator: T, attitude: Quaternion, timestamp: Long, roll: Double?, pitch: Double?, coordinateTransformation: CoordinateTransformation?)
Called when a new leveling measurement is available.
Parameters
estimator
leveling estimator that raised this event.
attitude
leveling attitude (roll and pitch angles) 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.
pitch
pitch angle expressed in radians respect to NED coordinate system. Only available if estimateEulerAngles.
coordinate Transformation
coordinate transformation containing measured leveling attitude. Only available if estimateCoordinateTransformation.