Accelerometer Gravity Processor
Collects accelerometer measurements based on android coordinates system (ENU) and uses a low-pass filter to assume it is the gravity component of specific force and converts it 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.
an averaging filter for accelerometer samples to obtain sensed gravity component of specific force.
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 an accelerometer sensor measurement collected by a collector or a syncer.