public interface Accelerometer extends MetaWearBoard.Module, Configurable<Accelerometer.ConfigEditor<? extends Accelerometer.ConfigEditor>>
AccelerometerBma255
,
AccelerometerBmi160
,
AccelerometerMma8452q
Modifier and Type | Interface and Description |
---|---|
static interface |
Accelerometer.AccelerationDataProducer
Reports measured acceleration values from the accelerometer.
|
static interface |
Accelerometer.ConfigEditor<T extends Accelerometer.ConfigEditor>
Accelerometer agnostic interface for configuring the sensor
|
Modifier and Type | Method and Description |
---|---|
Accelerometer.AccelerationDataProducer |
acceleration()
Get an implementation of the
Accelerometer.AccelerationDataProducer interface |
float |
getOdr()
Get the output data rate.
|
float |
getRange()
Get the data range.
|
AsyncDataProducer |
packedAcceleration()
Variant of acceleration data that packs multiple data samples into 1 BLE packet to increase the
data throughput.
|
bolts.Task<java.lang.Void> |
pullConfigAsync()
Pulls the current accelerometer output data rate and data range from the sensor
|
void |
start()
Switch the accelerometer into active mode
|
void |
stop()
Switch the accelerometer into standby mode
|
configure
Accelerometer.AccelerationDataProducer acceleration()
Accelerometer.AccelerationDataProducer
interfaceAsyncDataProducer packedAcceleration()
void start()
void stop()
float getOdr()
float getRange()
bolts.Task<java.lang.Void> pullConfigAsync()