|
Sensor Fusion Library 0.6.1
Orientation sensing for Espressif (ESP32, ESP8266) processors
|
Implements accelerometer calibration routines. More...
#include <stdint.h>

Go to the source code of this file.
Classes | |
| struct | AccelBuffer |
| accelerometer measurement buffer More... | |
| struct | AccelCalibration |
| precision accelerometer calibration structure More... | |
Macros | |
| #define | ACCEL_CAL_AVERAGING_SECS 2 |
| calibration constants | |
| #define | MAX_ACCEL_CAL_ORIENTATIONS 12 |
| number of stored precision accelerometer measurements | |
Functions | |
| void | fInitializeAccelCalibration (AccelCalibration *pthisAccelCal, AccelBuffer *pthisAccelBuffer, volatile int8_t *AccelCalPacketOn) |
| Initialize the accelerometer calibration functions. | |
| void | fUpdateAccelBuffer (AccelCalibration *pthisAccelCal, AccelBuffer *pthisAccelBuffer, struct AccelSensor *pthisAccel, volatile int8_t *AccelCalPacketOn) |
| Update the buffer used to store samples used for accelerometer calibration. | |
| void | fInvertAccelCal (struct AccelSensor *pthisAccel, AccelCalibration *pthisAccelCal) |
| function maps the accelerometer data fGs (g) onto precision calibrated and de-rotated data fGc (g), iGc (counts) | |
| void | fRunAccelCalibration (AccelCalibration *pthisAccelCal, AccelBuffer *pthisAccelBuffer, struct AccelSensor *pthisAccel) |
| function runs the precision accelerometer calibration | |
| void | fComputeAccelCalibration4 (AccelBuffer *pthisAccelBuffer, AccelCalibration *pthisAccelCal, struct AccelSensor *pthisAccel) |
| calculate the 4 element calibration from the available measurements | |
| void | fComputeAccelCalibration7 (AccelBuffer *pthisAccelBuffer, AccelCalibration *pthisAccelCal, struct AccelSensor *pthisAccel) |
| calculate the 7 element calibration from the available measurements | |
| void | fComputeAccelCalibration10 (AccelBuffer *pthisAccelBuffer, AccelCalibration *pthisAccelCal, struct AccelSensor *pthisAccel) |
| calculate the 10 element calibration from the available measurements | |
Implements accelerometer calibration routines.
Definition in file precisionAccelerometer.h.
| #define ACCEL_CAL_AVERAGING_SECS 2 |
calibration constants
calibration measurement averaging period (s)
Definition at line 23 of file precisionAccelerometer.h.
| #define MAX_ACCEL_CAL_ORIENTATIONS 12 |
number of stored precision accelerometer measurements
Definition at line 24 of file precisionAccelerometer.h.
| void fComputeAccelCalibration10 | ( | AccelBuffer * | pthisAccelBuffer, |
| AccelCalibration * | pthisAccelCal, | ||
| struct AccelSensor * | pthisAccel | ||
| ) |
calculate the 10 element calibration from the available measurements
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccel | Pointer to the accelerometer input/state structure |
Definition at line 424 of file precisionAccelerometer.c.
| void fComputeAccelCalibration4 | ( | AccelBuffer * | pthisAccelBuffer, |
| AccelCalibration * | pthisAccelCal, | ||
| struct AccelSensor * | pthisAccel | ||
| ) |
calculate the 4 element calibration from the available measurements
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccel | Pointer to the accelerometer input/state structure |
Definition at line 215 of file precisionAccelerometer.c.
| void fComputeAccelCalibration7 | ( | AccelBuffer * | pthisAccelBuffer, |
| AccelCalibration * | pthisAccelCal, | ||
| struct AccelSensor * | pthisAccel | ||
| ) |
calculate the 7 element calibration from the available measurements
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccel | Pointer to the accelerometer input/state structure |
Definition at line 330 of file precisionAccelerometer.c.
| void fInitializeAccelCalibration | ( | AccelCalibration * | pthisAccelCal, |
| AccelBuffer * | pthisAccelBuffer, | ||
| volatile int8_t * | AccelCalPacketOn | ||
| ) |
Initialize the accelerometer calibration functions.
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| AccelCalPacketOn | Used to coordinate calibration sample storage and communications |
Definition at line 18 of file precisionAccelerometer.c.
| void fInvertAccelCal | ( | struct AccelSensor * | pthisAccel, |
| AccelCalibration * | pthisAccelCal | ||
| ) |
function maps the accelerometer data fGs (g) onto precision calibrated and de-rotated data fGc (g), iGc (counts)
| pthisAccel | Pointer to the accelerometer input/state structure |
| pthisAccelCal | Accelerometer calibration parameter structure |
Definition at line 118 of file precisionAccelerometer.c.
| void fRunAccelCalibration | ( | AccelCalibration * | pthisAccelCal, |
| AccelBuffer * | pthisAccelBuffer, | ||
| struct AccelSensor * | pthisAccel | ||
| ) |
function runs the precision accelerometer calibration
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| pthisAccel | Pointer to the accelerometer input/state structure |
Definition at line 157 of file precisionAccelerometer.c.
| void fUpdateAccelBuffer | ( | AccelCalibration * | pthisAccelCal, |
| AccelBuffer * | pthisAccelBuffer, | ||
| struct AccelSensor * | pthisAccel, | ||
| volatile int8_t * | AccelCalPacketOn | ||
| ) |
Update the buffer used to store samples used for accelerometer calibration.
| pthisAccelCal | Accelerometer calibration parameter structure |
| pthisAccelBuffer | Buffer of measurements used as input to the accel calibration functions |
| pthisAccel | Pointer to the accelerometer input/state structure |
| AccelCalPacketOn | Used to coordinate calibration sample storage and communications |
Definition at line 66 of file precisionAccelerometer.c.