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']