From ee1975d47a68e59556fc1f25184a8aaca32ed0ef Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 1 Dec 2023 08:59:32 +1100 Subject: [PATCH] AP_Math: added tesla conversions --- libraries/AP_Math/definitions.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Math/definitions.h b/libraries/AP_Math/definitions.h index 024838a1c6..7317a19906 100644 --- a/libraries/AP_Math/definitions.h +++ b/libraries/AP_Math/definitions.h @@ -95,6 +95,9 @@ static const double WGS84_E = (sqrt(2 * WGS84_F - WGS84_F * WGS84_F)); #define INCH_OF_H2O_TO_PASCAL 248.84f +#define UTESLA_TO_MGAUSS 10.0f // uT to mGauss conversion +#define NTESLA_TO_MGAUSS 0.01f // nT to mGauss conversion + /* use AP_ prefix to prevent conflict with OS headers, such as NuttX clock.h