Accelerometer And Gyroscope Sensor Measurement Syncer
Syncs accelerometer and gyroscope sensor measurements in case they arrive with certain delay.
Typically when synchronization is needed is for correct pose estimation, for attitude estimation, not synced sensor measurements can also be used to achieve a reasonable estimation.
Constructors
Properties
capacity of accelerometer buffer.
Gets accelerometer collector current usage as a value between 0.0 and 1.0. 0.0 indicates that collector buffer is empty and no measurement has yet been received. 1.0 indicates that collector buffer is full.
interpolator for accelerometer measurements.
Gets accelerometer sensor being used to obtain measurements or null if not available. This can be used to obtain additional information about the sensor.
Indicates whether requested accelerometer sensor is available or not.
Delay of accelerometer sensor between samples.
One of the supported accelerometer sensor types.
Gets initial accelerometer offset expressed in nano seconds between first received measurement timestamp and start time expressed in the monotonically increasing system clock obtained by SystemClock.elapsedRealtimeNanos.
indicates whether accelerometer start offset will be computed when first measurement is received. True indicates that offset is computed, false assumes that offset is null.
Gets accelerometer buffer current usage as a value between 0.0 and 1.0. 0.0 indicates that buffer is empty and no measurement has yet been received. 1.0 indicates that buffer is full.
listener to notify changes in accuracy.
listener to notify that some buffer has been filled. This usually happens when consumer of measurements cannot keep up with the rate at which measurements are generated.
capacity of gyroscope buffer.
Gets gyroscope collector current usage as a value between 0.0 and 1.0. 0.0 indicates that collector buffer is empty and no measurement has yet been received. 1.0 indicates that collector buffer is full.
interpolator for gyroscope measurements.
Gets gyroscope sensor being used to obtain measurements or null if not available. This can be used to obtain additional information about the sensor.
Indicates whether requested gyroscope sensor is available or not.
Delay of gyroscope sensor between samples.
One of the supported gyroscope sensor types.
Gets initial gyroscope offset expressed in nano seconds between first received measurement timestamp and start time expressed in the monotonically increasing system clock obtained by SystemClock.elapsedRealtimeNanos.
indicates whether gyroscope start offset will be computed when first measurement is received. True indicates that offset is computed, false assumes that offset is null.
Gets gyroscope buffer current usage as a value between 0.0 and 1.0. 0.0 indicates that buffer is empty and no measurement has yet been received. 1.0 indicates that buffer is full.
Gets most recent timestamp of all measurements processed so far. Timestamp is expressed in nanoseconds by a monotonic clock based on SystemClock.elapsedRealtimeNanos.
Gets number of processed measurements since this syncer started.
Gets oldest timestamp in the buffer.
Indicates whether syncer is processing measurements.
true to skip new measurements while processing a measurement.
listener to notify when stale measurements are found. This might indicate that buffers are too small and data is not being properly synced.
true to enable stale measurement detection, false otherwise.
offset respect most recent received timestamp of a measurement to consider the measurement as stale so that it is skipped from synced measurement processing and returned back from buffer to cache of measurements.
Timestamp when collector started expressed as a monotonically increasing timestamp in nanoseconds as indicated by SystemClock.elapsedRealtimeNanos.
true to stop syncer when any buffer completely fills, false to continue processing measurements at the expense of loosing old data. This will be notified using bufferFilledListener.
listener to notify the generation of a new synced measurement.