From af491e2f2a54894de70b62f15795022e80e0f6c6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 22 Jun 2023 08:39:44 +1000 Subject: [PATCH] AP_Math: define M_PI to more digits for use by code that uses DOUBLE_PRECISION_SOURCES --- libraries/AP_Math/definitions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Math/definitions.h b/libraries/AP_Math/definitions.h index 446c92fd78b..3194dc607d7 100644 --- a/libraries/AP_Math/definitions.h +++ b/libraries/AP_Math/definitions.h @@ -7,7 +7,7 @@ #ifdef M_PI # undef M_PI #endif -#define M_PI (3.141592653589793) +#define M_PI (3.141592653589793238462643383279502884) #ifdef M_PI_2 # undef M_PI_2