From 56b743dfca41db6d2d7cddd3c7a8e01799745a47 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 27 Aug 2020 13:06:53 +1000 Subject: [PATCH] AP_GPS: build SBF driver with double precision --- libraries/AP_GPS/AP_GPS_SBF.cpp | 2 -- libraries/AP_GPS/wscript | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 libraries/AP_GPS/wscript diff --git a/libraries/AP_GPS/AP_GPS_SBF.cpp b/libraries/AP_GPS/AP_GPS_SBF.cpp index 5a620c4917..5e52f8e49d 100644 --- a/libraries/AP_GPS/AP_GPS_SBF.cpp +++ b/libraries/AP_GPS/AP_GPS_SBF.cpp @@ -18,8 +18,6 @@ // Code by Michael Oborne // -#define ALLOW_DOUBLE_MATH_FUNCTIONS - #include "AP_GPS.h" #include "AP_GPS_SBF.h" #include diff --git a/libraries/AP_GPS/wscript b/libraries/AP_GPS/wscript new file mode 100644 index 0000000000..942014b1c8 --- /dev/null +++ b/libraries/AP_GPS/wscript @@ -0,0 +1,4 @@ + +# SBF driver needs double precision +def configure(cfg): + cfg.env.DOUBLE_PRECISION_SOURCES['AP_GPS'] = ['AP_GPS_SBF.cpp']