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