public static interface Accelerometer.SamplingConfig extends Accelerometer.AccelerometerConfig
Modifier and Type | Interface and Description |
---|---|
static class |
Accelerometer.SamplingConfig.FullScaleRange
Max range of the accelerometer data
|
static class |
Accelerometer.SamplingConfig.OutputDataRate
Available data rates on the metawear accelerometer
|
Modifier and Type | Method and Description |
---|---|
Accelerometer.SamplingConfig |
withFullScaleRange(Accelerometer.SamplingConfig.FullScaleRange range)
Sets the max range of the data
|
Accelerometer.SamplingConfig |
withHighPassFilter()
Enables high-pass filtering on the accelerometer axis data.
|
Accelerometer.SamplingConfig |
withHighPassFilter(byte cutoff)
Enables high-pass filtering on the accelerometer axis data
|
Accelerometer.SamplingConfig |
withoutHighPassFilter()
Disables high-pass filtering on the accelerometer axis data
|
Accelerometer.SamplingConfig |
withOutputDataRate(Accelerometer.SamplingConfig.OutputDataRate rate)
Sets the sampling data rate
|
getBytes, withSilentMode
Accelerometer.SamplingConfig withFullScaleRange(Accelerometer.SamplingConfig.FullScaleRange range)
range
- Data's max rangeAccelerometer.SamplingConfig withOutputDataRate(Accelerometer.SamplingConfig.OutputDataRate rate)
rate
- Data rate to sample atAccelerometer.SamplingConfig withHighPassFilter()
Accelerometer.SamplingConfig withHighPassFilter(byte cutoff)
cutoff
- Cutoff frequency setting between [0, 3] where
0 = highest cutoff freq and 3 = lowest cutoff freqAccelerometer.SamplingConfig withoutHighPassFilter()