![]() |
ISSDK
1.7
IoT Sensing Software Development Kit
|
The MagSensor structure stores raw and processed measurements for a 3-axis magnetic sensor. More...
#include <sensor_fusion.h>

Data Fields | |
| uint8_t | iWhoAmI |
| sensor whoami More... | |
| bool | isEnabled |
| true if the device is sampling More... | |
| uint8_t | iFIFOCount |
| number of measurements read from FIFO More... | |
| uint16_t | iFIFOExceeded |
| Number of samples received in excess of software FIFO size. More... | |
| int16_t | iBsFIFO [MAG_FIFO_SIZE][3] |
| FIFO measurements (counts) More... | |
| float | fBs [3] |
| averaged un-calibrated measurement (uT) More... | |
| float | fBc [3] |
| averaged calibrated measurement (uT) More... | |
| float | fuTPerCount |
| uT per count More... | |
| float | fCountsPeruT |
| counts per uT More... | |
| int16_t | iBs [3] |
| averaged uncalibrated measurement (counts) More... | |
| int16_t | iBc [3] |
| averaged calibrated measurement (counts) More... | |
| int16_t | iCountsPeruT |
| counts per uT More... | |
The MagSensor structure stores raw and processed measurements for a 3-axis magnetic sensor.
The MagSensor structure stores raw and processed measurements, as well as metadata for a single 3-axis magnetometer. This structure is normally "fed" by the sensor driver and "consumed" by the fusion routines.
Definition at line 240 of file sensor_fusion.h.
| float fBc[3] |
averaged calibrated measurement (uT)
Definition at line 249 of file sensor_fusion.h.
Referenced by fInit_3DOF_B_BASIC(), fInit_6DOF_GB_BASIC(), fInit_9DOF_GBY_KALMAN(), fInvertMagCal(), fRun_3DOF_B_BASIC(), fRun_6DOF_GB_BASIC(), and fRun_6DOF_GY_KALMAN().
| float fBs[3] |
averaged un-calibrated measurement (uT)
Definition at line 248 of file sensor_fusion.h.
Referenced by fInvertMagCal(), and processMagData().
| float fCountsPeruT |
counts per uT
Definition at line 251 of file sensor_fusion.h.
Referenced by fInvertMagCal(), FXOS8700_Init(), and MAG3110_Init().
| float fuTPerCount |
uT per count
Definition at line 250 of file sensor_fusion.h.
Referenced by fComputeMagCalibration10(), fComputeMagCalibration4(), fComputeMagCalibration7(), fUpdateMagCalibration10Slice(), fUpdateMagCalibration4Slice(), fUpdateMagCalibration7Slice(), FXOS8700_Init(), MAG3110_Init(), and processMagData().
| int16_t iBc[3] |
averaged calibrated measurement (counts)
Definition at line 253 of file sensor_fusion.h.
Referenced by CreateAndSendPackets(), fInvertMagCal(), and iUpdateMagBuffer().
| int16_t iBs[3] |
averaged uncalibrated measurement (counts)
Definition at line 252 of file sensor_fusion.h.
Referenced by iUpdateMagBuffer(), and processMagData().
| int16_t iBsFIFO[MAG_FIFO_SIZE][3] |
FIFO measurements (counts)
Definition at line 246 of file sensor_fusion.h.
Referenced by ApplyMagHAL(), and processMagData().
| int16_t iCountsPeruT |
counts per uT
Definition at line 254 of file sensor_fusion.h.
Referenced by CreateAndSendPackets(), FXOS8700_Init(), and MAG3110_Init().
| uint8_t iFIFOCount |
number of measurements read from FIFO
Definition at line 244 of file sensor_fusion.h.
Referenced by ApplyMagHAL(), clearFIFOs(), and processMagData().
| uint16_t iFIFOExceeded |
Number of samples received in excess of software FIFO size.
Definition at line 245 of file sensor_fusion.h.
Referenced by clearFIFOs(), and processMagData().
| bool isEnabled |
true if the device is sampling
Definition at line 243 of file sensor_fusion.h.
Referenced by conditionSensorReadings(), FXOS8700_Idle(), FXOS8700_Init(), MAG3110_Idle(), and MAG3110_Init().
| uint8_t iWhoAmI |
sensor whoami
Definition at line 242 of file sensor_fusion.h.
Referenced by FXOS8700_Init(), initSensorFusionGlobals(), and MAG3110_Init().