MetaWear C# SDK
1.2.0
C# API for MbientLab's sensor platform
|
Bosch algorithm combining accelerometer, gyroscope, and magnetometer data for Bosch sensors.
More...
Public Member Functions | |
void | Configure (Mode mode=Mode.Ndof, AccRange ar=AccRange._16g, GyroRange gr=GyroRange._2000dps, object[] accExtra=null, object[] gyroExtra=null) |
Configure the sensor fusion algorithm More... | |
void | Start () |
Start the algorithm More... | |
void | Stop () |
Stop the algorithm More... | |
Task | PullConfigAsync () |
Pulls the current sensor fusion configuration from the sensor More... | |
Task< ImuCalibrationState > | ReadCalibrationStateAsync () |
Reads the current calibration state from the sensor fusion algorithm. This function cannot be called until the sensor fusion algorithm is running and is only available on firmware v1.4.1+ More... | |
Task< ImuCalibrationData > | Calibrate (CancellationToken ct, int pollingPeriod=1000, Action< ImuCalibrationState > progress=null) |
Convenience method to poll the calibration state until the required IMUs are in a high accuracy state More... | |
void | WriteCalibrationData (ImuCalibrationData data) |
Writes calibration data to the sensor fusion algorithm. Combine this with IMacro module to write thr data at boot time. More... | |
Properties | |
IAsyncDataProducer | CorrectedAcceleration [get] |
Data producer representing corrected acceleration data More... | |
IAsyncDataProducer | CorrectedAngularVelocity [get] |
Data producer representing corrected angular velocity data More... | |
IAsyncDataProducer | CorrectedMagneticField [get] |
Data producer representing corrected magnetic field data More... | |
IAsyncDataProducer | Quaternion [get] |
Data producer representing quaternion data More... | |
IAsyncDataProducer | EulerAngles [get] |
Data producer representing Euler angles data More... | |
IAsyncDataProducer | Gravity [get] |
Data producer representing gravity data More... | |
IAsyncDataProducer | LinearAcceleration [get] |
Data producer representing linear acceleration data More... | |
Bosch algorithm combining accelerometer, gyroscope, and magnetometer data for Bosch sensors.
When using sensor fusion, do not configure the accelerometer, gyro, and magnetometer with their respective interface; the algorithm will automatically configure those sensors based on the selected fusion mode.
Task<ImuCalibrationData> MbientLab.MetaWear.Core.ISensorFusionBosch.Calibrate | ( | CancellationToken | ct, |
int | pollingPeriod = 1000 , |
||
Action< ImuCalibrationState > | progress = null |
||
) |
Convenience method to poll the calibration state until the required IMUs are in a high accuracy state
ct | The cancellation token that will be checked before reading the calibration state |
pollingPeriod | How frequently poll the calibration state in milliseconds, defaults to 1000ms |
progress | Handler for calibration state updates |
InvalidOperationException | If device is not running firmware v1.4.3+ |
TimeoutException | Timeout limit hit before task completed |
void MbientLab.MetaWear.Core.ISensorFusionBosch.Configure | ( | Mode | mode = Mode.Ndof , |
AccRange | ar = AccRange._16g , |
||
GyroRange | gr = GyroRange._2000dps , |
||
object [] | accExtra = null , |
||
object [] | gyroExtra = null |
||
) |
Configure the sensor fusion algorithm
mode | Sensor fusion mode |
ar | Accelerometer data range |
gr | Gyro data range |
accExtra | Extra configuration settings for the accelerometer |
gyroExtra | Extra configuration settings for the gyro |
Task MbientLab.MetaWear.Core.ISensorFusionBosch.PullConfigAsync | ( | ) |
Pulls the current sensor fusion configuration from the sensor
Task<ImuCalibrationState> MbientLab.MetaWear.Core.ISensorFusionBosch.ReadCalibrationStateAsync | ( | ) |
Reads the current calibration state from the sensor fusion algorithm. This function cannot be called until the sensor fusion algorithm is running and is only available on firmware v1.4.1+
InvalidOperationException | If device is not using min required firmware |
void MbientLab.MetaWear.Core.ISensorFusionBosch.Start | ( | ) |
Start the algorithm
void MbientLab.MetaWear.Core.ISensorFusionBosch.Stop | ( | ) |
Stop the algorithm
void MbientLab.MetaWear.Core.ISensorFusionBosch.WriteCalibrationData | ( | ImuCalibrationData | data | ) |
|
get |
Data producer representing corrected acceleration data
|
get |
Data producer representing corrected angular velocity data
|
get |
Data producer representing corrected magnetic field data
|
get |
Data producer representing Euler angles data
|
get |
Data producer representing gravity data
|
get |
Data producer representing linear acceleration data
|
get |
Data producer representing quaternion data