public interface Accelerometer extends MetaWearBoard.Module
Bmi160Accelerometer
,
Mma8452qAccelerometer
Modifier and Type | Interface and Description |
---|---|
static class |
Accelerometer.BoardOrientation
Orientation definitions for the board, providing a unified definition of board orientation amongst
the R, RG, and RPro boards.
|
static interface |
Accelerometer.SourceSelector
Generic selector for accelerometer data sources
|
Modifier and Type | Method and Description |
---|---|
void |
disableAxisSampling()
Disables sampling of the XYZ axes
|
void |
disableOrientationDetection()
Disables orientation detection
|
void |
enableAxisSampling()
Enables sampling of the XYZ axes
|
void |
enableOrientationDetection()
Enables orientation detection when the accelerometer is active
|
Accelerometer.SourceSelector |
routeData()
Initiates the creation of a route for accelerometer data
|
void |
setAxisSamplingRange(float range)
Sets the sampling range for the accelerometer.
|
void |
setOutputDataRate(float frequency)
Sets the operating frequency of the accelerometer.
|
void |
start()
Global function that starts accelerometer activity.
|
void |
stop()
Global function that stops accelerometer activity
|
void setOutputDataRate(float frequency)
frequency
- Operating frequency, in Hzvoid setAxisSamplingRange(float range)
range
- Sampling range, in G'svoid enableAxisSampling()
void disableAxisSampling()
void enableOrientationDetection()
void disableOrientationDetection()
void start()
stop()
method is calledvoid stop()
Accelerometer.SourceSelector routeData()