|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
#include "SensorDefs.hpp"Go to the source code of this file.
Namespaces | |
| namespace | MagnetometerUtils |
Functions | |
| float | MagnetometerUtils::dmsToDecimalDegrees (int degrees, int minutes, float seconds=0.0f) |
| Convert degrees-minutes-seconds to decimal degrees. | |
| float | MagnetometerUtils::dmsToRadians (int degrees, int minutes, float seconds=0.0f) |
| Convert degrees-minutes-seconds to radians. | |
| float | MagnetometerUtils::calculateHeading (const MagnetometerData &data, float declination=0.0f) |
| Calculate heading (yaw) angle from magnetometer data in radians. | |
| float | MagnetometerUtils::calculateHeadingDegrees (const MagnetometerData &data, float declination_deg=0.0f) |
| Calculate heading (yaw) angle from magnetometer data in degrees. | |
| float | MagnetometerUtils::calculateMagneticStrength (const MagnetometerData &data) |
| Calculate total magnetic field strength. | |
| float | MagnetometerUtils::gaussToMicroTesla (float gauss) |
| Converts Gauss to microTesla. | |
| float | MagnetometerUtils::microTeslaToGauss (float ut) |
| Converts microTesla to Gauss. | |
| float | MagnetometerUtils::rangeToGauss (MagFullScaleRange range) |