AP_Math: Created CentiDegreesToRadians

This commit is contained in:
George Zogopoulos 2024-05-21 19:23:01 +02:00 committed by Peter Barker
parent f89923fcbe
commit 9a3f6ae9c7
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ static const double RAD_TO_DEG_DOUBLE = 1 / DEG_TO_RAD_DOUBLE;
#endif
#define RadiansToCentiDegrees(x) (static_cast<float>(x) * RAD_TO_DEG * static_cast<float>(100))
#define CentiDegreesToRadians(x) (static_cast<float>(x) * DEG_TO_RAD * 0.01f)
// acceleration due to gravity in m/s/s
#define GRAVITY_MSS 9.80665f