MetaWear C# SDK
1.2.0
C# API for MbientLab's sensor platform
|
On-board algorithm that detects when low (i.e. free fall) or high g acceleration is measured. Data is represented as a LowHighG object More...
Public Member Functions | |
void | Configure (bool enableLowG=false, ushort? lowDuration=null, float? lowThreshold=null, float? lowHysteresis=null, LowGMode? mode=null, bool enableHighGx=false, bool enableHighGy=false, bool enableHighGz=false, ushort? highDuration=null, float? highThreshold=null, float? highHysteresis=null) |
Configure the low/high-g detection algorithm. More... | |
Public Member Functions inherited from MbientLab.MetaWear.IAsyncDataProducer | |
void | Start () |
Begin data collection More... | |
void | Stop () |
End data collection More... | |
Public Member Functions inherited from MbientLab.MetaWear.IDataProducer | |
Task< IRoute > | AddRouteAsync (Action< IRouteComponent > builder) |
Adds a data route to the producer More... | |
On-board algorithm that detects when low (i.e. free fall) or high g acceleration is measured. Data is represented as a LowHighG object
void MbientLab.MetaWear.Sensor.AccelerometerBosch.ILowAndHighGDataProducer.Configure | ( | bool | enableLowG = false , |
ushort? | lowDuration = null , |
||
float? | lowThreshold = null , |
||
float? | lowHysteresis = null , |
||
LowGMode? | mode = null , |
||
bool | enableHighGx = false , |
||
bool | enableHighGy = false , |
||
bool | enableHighGz = false , |
||
ushort? | highDuration = null , |
||
float? | highThreshold = null , |
||
float? | highHysteresis = null |
||
) |
Configure the low/high-g detection algorithm.
Both detection types are configured at once with this function. All parameters are optional so developers only need to set the ones they are need
enableLowG | Set to 'true' to enable low-g detection, defaults to 'false' |
lowDuration | Minimum amount of time the acceleration must stay below (ths + hys) for an interrupt, between [2.5, 640]ms |
lowThreshold | Threshold that triggers a low-g interrupt, between [0.00391, 2.0]g |
lowHysteresis | Hysteresis level for low-g interrupt, between [0, 0.375]g |
mode | Low G detection type |
enableHighGx | Set to 'true' to enable high-g detection on the x-axis, default to 'false' |
enableHighGy | Set to 'true' to enable high-g detection on the y-axis, default to 'false' |
enableHighGz | Set to 'true' to enable high-g detection on the z-axis, default to 'false' |
highDuration | Minimum amount of time the acceleration sign does not change for an interrupt |
highThreshold | Threshold for clearing high-g interrupt |
highHysteresis | Hysteresis level for clearing the high-g interrupt |