From 9a3f6ae9c779a57c2669d16a50e28ccb0d11779d Mon Sep 17 00:00:00 2001 From: George Zogopoulos Date: Tue, 21 May 2024 19:23:01 +0200 Subject: [PATCH] AP_Math: Created CentiDegreesToRadians --- libraries/AP_Math/definitions.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_Math/definitions.h b/libraries/AP_Math/definitions.h index 7317a19906..c0280b54b9 100644 --- a/libraries/AP_Math/definitions.h +++ b/libraries/AP_Math/definitions.h @@ -42,6 +42,7 @@ static const double RAD_TO_DEG_DOUBLE = 1 / DEG_TO_RAD_DOUBLE; #endif #define RadiansToCentiDegrees(x) (static_cast(x) * RAD_TO_DEG * static_cast(100)) +#define CentiDegreesToRadians(x) (static_cast(x) * DEG_TO_RAD * 0.01f) // acceleration due to gravity in m/s/s #define GRAVITY_MSS 9.80665f