MetaWear C# SDK  1.2.0
C# API for MbientLab's sensor platform
Public Member Functions | List of all members
MbientLab.MetaWear.Sensor.AccelerometerBosch.IFlatDataProducer Interface Reference

On-board algorithm that detects whether or not the senor is laying flat.
More...

Inheritance diagram for MbientLab.MetaWear.Sensor.AccelerometerBosch.IFlatDataProducer:
MbientLab.MetaWear.IAsyncDataProducer MbientLab.MetaWear.IDataProducer MbientLab.MetaWear.Sensor.AccelerometerBma255.IBma255FlatDataProducer MbientLab.MetaWear.Sensor.AccelerometerBmi160.IBmi160FlatDataProducer

Public Member Functions

void Configure (ushort? hold=null, float? theta=null)
 Configure the flat 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< IRouteAddRouteAsync (Action< IRouteComponent > builder)
 Adds a data route to the producer More...
 

Detailed Description

On-board algorithm that detects whether or not the senor is laying flat.

Data is represented as a boolean.

Member Function Documentation

◆ Configure()

void MbientLab.MetaWear.Sensor.AccelerometerBosch.IFlatDataProducer.Configure ( ushort?  hold = null,
float?  theta = null 
)

Configure the flat detection algorithm.

Parameters
holdDelay for which the flat value must remain stable for an interrupt, in milliseconds.
The closest valid value will be chosen.
thetaThreshold angle defining a flat position, between [0, 44.8] degrees

The documentation for this interface was generated from the following file: