Gravity Processor
Collects gravity measurements based on android coordinates system (ENU), and converts them to NED coordinates system.
Constructors
Properties
Accuracy of last sensed gravity measurement.
indicates whether gravity norm must be adjusted to either Earth standard norm, or norm at provided location. If no location is provided, this should only be enabled when device is close to sea level.
Gets expected gravity norm at provided location. If No location is provided, average gravity at sea level is returned instead. This value will be used to adjust to adjust gravity norm if adjustGravityNorm is true.
Gets norm of current gravity.
listener to notify new gravity measurements.
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.
Functions
Updates provided triad to contain gravity component of specific force expressed in NED coordinates and in meters per squared second (m/s^2).
Gets NED position from provided location.
Processes a gravity sensor measurement collected by a collector or a syncer.