Measures sources of acceleration, such as gravity or motion. This interface only provides general access to an accelerometer. If you know specifically which accelerometer is on your board, use the appropriate subclass instead.
- See also
- IAccelerometerBma255, IAccelerometerBmi160, IAccelerometerMma8452q
More...
|
void | Configure (float odr=100f, float range=2f) |
| General function to configure the accelerometer. The closest valid values will be selected based on the underlying accelerometer which may not equal the input values. More...
|
|
void | Start () |
| Switch the accelerometer into active mode More...
|
|
void | Stop () |
| Switch the accelerometer into standby mode More...
|
|
Task | PullConfigAsync () |
| Pulls the current accelerometer output data rate and data range from the sensor More...
|
|
Measures sources of acceleration, such as gravity or motion. This interface only provides general access to an accelerometer. If you know specifically which accelerometer is on your board, use the appropriate subclass instead.
- See also
- IAccelerometerBma255, IAccelerometerBmi160, IAccelerometerMma8452q
◆ Configure()
void MbientLab.MetaWear.Sensor.IAccelerometer.Configure |
( |
float |
odr = 100f , |
|
|
float |
range = 2f |
|
) |
| |
General function to configure the accelerometer. The closest valid values will be selected based on the underlying accelerometer which may not equal the input values.
- Parameters
-
odr | Output data rate, defaults to 100Hz |
range | Acceleration data range, defaults to 2g |
◆ PullConfigAsync()
Task MbientLab.MetaWear.Sensor.IAccelerometer.PullConfigAsync |
( |
| ) |
|
Pulls the current accelerometer output data rate and data range from the sensor
- Returns
- Task that is completed when the settings are received
◆ Start()
void MbientLab.MetaWear.Sensor.IAccelerometer.Start |
( |
| ) |
|
Switch the accelerometer into active mode
◆ Stop()
void MbientLab.MetaWear.Sensor.IAccelerometer.Stop |
( |
| ) |
|
Switch the accelerometer into standby mode
◆ Acceleration
Data producer representing the sensor's acceleration data
◆ Odr
float MbientLab.MetaWear.Sensor.IAccelerometer.Odr |
|
get |
◆ PackedAcceleration
Variant data producer that packs 3 acceleration samples in to 1 ble packet.
Only streaming is supported by this data producer
◆ Range
float MbientLab.MetaWear.Sensor.IAccelerometer.Range |
|
get |
The documentation for this interface was generated from the following file:
- MetaWear/Sensor/IAccelerometer.cs