|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
Structure representing magnetometer data. More...
#include <SensorDefs.hpp>
Public Member Functions | |
| MagnetometerData () | |
Public Attributes | |
| SensorVector | magnetic_field |
| magnetic field strength (Gauss) | |
| RawVector | raw |
| raw data | |
| float | temperature |
| temperature (°C) | |
| float | heading |
| heading angle (radians) | |
| float | heading_degrees |
| heading angle (degrees) | |
| bool | overflow |
| data overflow flag | |
| bool | skip_data |
| skip data flag | |
Structure representing magnetometer data.
Contains magnetic field values in both raw format (LSB) and processed format (Gauss), as well as temperature if the sensor supports it.
Definition at line 347 of file SensorDefs.hpp.
|
inline |
Definition at line 356 of file SensorDefs.hpp.
| float MagnetometerData::heading |
heading angle (radians)
Definition at line 351 of file SensorDefs.hpp.
Referenced by loop(), SensorBMM150::readData(), SensorQMC5883L::readData(), SensorQMC6309::readData(), and SensorQSTMagnetic::readData().
| float MagnetometerData::heading_degrees |
heading angle (degrees)
Definition at line 352 of file SensorDefs.hpp.
Referenced by loop(), SensorBMM150::readData(), SensorQMC5883L::readData(), SensorQMC6309::readData(), and SensorQSTMagnetic::readData().
| SensorVector MagnetometerData::magnetic_field |
magnetic field strength (Gauss)
Definition at line 348 of file SensorDefs.hpp.
Referenced by MagnetometerUtils::calculateHeading(), MagnetometerUtils::calculateHeadingDegrees(), MagnetometerUtils::calculateMagneticStrength(), loop(), SensorBMM150::readData(), SensorQMC5883L::readData(), SensorQMC6309::readData(), and SensorQSTMagnetic::readData().
| bool MagnetometerData::overflow |
data overflow flag
Definition at line 353 of file SensorDefs.hpp.
Referenced by loop(), SensorBMM150::readData(), SensorQMC5883L::readData(), SensorQMC6309::readData(), and SensorQSTMagnetic::readData().
| RawVector MagnetometerData::raw |
raw data
Definition at line 349 of file SensorDefs.hpp.
Referenced by calibrate(), loop(), SensorBMM150::readData(), SensorQMC5883L::readData(), SensorQMC6309::readData(), SensorQSTMagnetic::readData(), and SensorQSTMagnetic::selfTest().
| bool MagnetometerData::skip_data |
skip data flag
Definition at line 354 of file SensorDefs.hpp.
Referenced by loop(), SensorBMM150::readData(), SensorQMC5883L::readData(), and SensorQSTMagnetic::readData().
| float MagnetometerData::temperature |
temperature (°C)
Definition at line 350 of file SensorDefs.hpp.