From 3e3c086ab7779202164d4dcc353cd4eba528592d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 12 Aug 2023 19:15:09 +1000 Subject: [PATCH] SITL: build the whole simulator as double precision --- libraries/SITL/SIM_BalanceBot.cpp | 2 -- libraries/SITL/SIM_Blimp.cpp | 2 -- libraries/SITL/SIM_GPS.cpp | 2 -- libraries/SITL/SIM_MS5611.cpp | 2 -- libraries/SITL/SIM_Plane.cpp | 2 -- libraries/SITL/SITL.cpp | 2 -- libraries/SITL/wscript | 2 +- 7 files changed, 1 insertion(+), 13 deletions(-) diff --git a/libraries/SITL/SIM_BalanceBot.cpp b/libraries/SITL/SIM_BalanceBot.cpp index f3b11d0c90..384be77f67 100644 --- a/libraries/SITL/SIM_BalanceBot.cpp +++ b/libraries/SITL/SIM_BalanceBot.cpp @@ -16,8 +16,6 @@ Balance Bot simulator class */ -#define ALLOW_DOUBLE_MATH_FUNCTIONS - #include "SIM_BalanceBot.h" #include diff --git a/libraries/SITL/SIM_Blimp.cpp b/libraries/SITL/SIM_Blimp.cpp index 73e41d0eae..ea129152b9 100644 --- a/libraries/SITL/SIM_Blimp.cpp +++ b/libraries/SITL/SIM_Blimp.cpp @@ -16,8 +16,6 @@ Blimp simulator class */ -#define ALLOW_DOUBLE_MATH_FUNCTIONS - #include "SIM_Blimp.h" #include diff --git a/libraries/SITL/SIM_GPS.cpp b/libraries/SITL/SIM_GPS.cpp index 8b28d30920..43ec4e8e31 100644 --- a/libraries/SITL/SIM_GPS.cpp +++ b/libraries/SITL/SIM_GPS.cpp @@ -12,8 +12,6 @@ #include -#define ALLOW_DOUBLE_MATH_FUNCTIONS - #include #include #include diff --git a/libraries/SITL/SIM_MS5611.cpp b/libraries/SITL/SIM_MS5611.cpp index d269272598..a1957df17d 100644 --- a/libraries/SITL/SIM_MS5611.cpp +++ b/libraries/SITL/SIM_MS5611.cpp @@ -1,5 +1,3 @@ -#define ALLOW_DOUBLE_MATH_FUNCTIONS - #include "SIM_MS5611.h" #include diff --git a/libraries/SITL/SIM_Plane.cpp b/libraries/SITL/SIM_Plane.cpp index 043c249f65..4b32c10406 100644 --- a/libraries/SITL/SIM_Plane.cpp +++ b/libraries/SITL/SIM_Plane.cpp @@ -17,8 +17,6 @@ just enough to be able to debug control logic for new frame types */ -#define ALLOW_DOUBLE_MATH_FUNCTIONS - #include "SIM_Plane.h" #include diff --git a/libraries/SITL/SITL.cpp b/libraries/SITL/SITL.cpp index b195d8eb93..c63e2d2ac5 100644 --- a/libraries/SITL/SITL.cpp +++ b/libraries/SITL/SITL.cpp @@ -17,8 +17,6 @@ SITL.cpp - software in the loop state */ -#define ALLOW_DOUBLE_MATH_FUNCTIONS - #include "SITL.h" #if AP_SIM_ENABLED diff --git a/libraries/SITL/wscript b/libraries/SITL/wscript index 297f386a31..da49246578 100644 --- a/libraries/SITL/wscript +++ b/libraries/SITL/wscript @@ -1,2 +1,2 @@ def configure(cfg): - cfg.env.DOUBLE_PRECISION_SOURCES['SITL'] = ['SIM_Aircraft.cpp'] + cfg.env.DOUBLE_PRECISION_LIBRARIES['SITL'] = True