E&R S3 prime / Mbed 2 deprecated Fusion3

Dependencies:   mbed LSM6DS33_GR1

Embed: (wiki syntax)

« Back to documentation index

FusionBias.c File Reference

FusionBias.c File Reference

The gyroscope bias correction algorithm achieves run-time calibration of the gyroscope bias. The algorithm will detect when the gyroscope is stationary for a set period of time and then begin to sample gyroscope measurements to calculate the bias as an average. More...

Go to the source code of this file.

Functions

void FusionBiasInitialise (FusionBias *const fusionBias, const float threshold, const float samplePeriod)
 Initialises the gyroscope bias correction algorithm.
FusionVector3 FusionBiasUpdate (FusionBias *const fusionBias, FusionVector3 gyroscope)
 Updates the gyroscope bias correction algorithm and returns the corrected gyroscope measurement.
bool FusionBiasIsActive (FusionBias *const fusionBias)
 Returns true if the gyroscope bias correction algorithm is active.

Detailed Description

The gyroscope bias correction algorithm achieves run-time calibration of the gyroscope bias. The algorithm will detect when the gyroscope is stationary for a set period of time and then begin to sample gyroscope measurements to calculate the bias as an average.

Author:
Seb Madgwick

Definition in file FusionBias.c.


Function Documentation

void FusionBiasInitialise ( FusionBias *const   fusionBias,
const float  threshold,
const float  samplePeriod 
)

Initialises the gyroscope bias correction algorithm.

Parameters:
fusionBiasFusionBias structure.
thresholdGyroscope threshold (in degrees per second) below which the gyroscope is detected stationary.
samplePeriodNominal sample period (in seconds) corresponding the rate at which the application will update the algorithm.

Definition at line 42 of file FusionBias.c.

bool FusionBiasIsActive ( FusionBias *const   fusionBias )

Returns true if the gyroscope bias correction algorithm is active.

Parameters:
fusionBiasFusionBias structure.
Returns:
True if the gyroscope bias correction algorithm is active.

Definition at line 84 of file FusionBias.c.

FusionVector3 FusionBiasUpdate ( FusionBias *const   fusionBias,
FusionVector3  gyroscope 
)

Updates the gyroscope bias correction algorithm and returns the corrected gyroscope measurement.

Parameters:
fusionBiasFusionBias structure.
gyroscopeGyroscope measurement in degrees per second.
Returns:
Corrected gyroscope measurement in degrees per second.

Definition at line 57 of file FusionBias.c.