onEstimation

abstract fun onEstimation(estimator: GravityEstimator, gx: Double, gy: Double, gz: Double, timestamp: Long)

Called when a new gravity measurement is available.

Parameters

estimator

gravity estimator that raised this event.

gx

x-coordinate of sensed specific force containing gravity component expressed in NED coordinates.

gy

y-coordinate of sensed specific force containing gravity component expressed in NED coordinates.

gz

z-coordinate of sensed specific force containing gravity component 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.