SITL: build the whole simulator as double precision

This commit is contained in:
Andrew Tridgell 2023-08-12 19:15:09 +10:00 committed by Peter Barker
parent ba7d94d5ad
commit 3e3c086ab7
7 changed files with 1 additions and 13 deletions

View File

@ -16,8 +16,6 @@
Balance Bot simulator class
*/
#define ALLOW_DOUBLE_MATH_FUNCTIONS
#include "SIM_BalanceBot.h"
#include <stdio.h>

View File

@ -16,8 +16,6 @@
Blimp simulator class
*/
#define ALLOW_DOUBLE_MATH_FUNCTIONS
#include "SIM_Blimp.h"
#include <stdio.h>

View File

@ -12,8 +12,6 @@
#include <time.h>
#define ALLOW_DOUBLE_MATH_FUNCTIONS
#include <assert.h>
#include <AP_BoardConfig/AP_BoardConfig.h>
#include <AP_HAL/AP_HAL.h>

View File

@ -1,5 +1,3 @@
#define ALLOW_DOUBLE_MATH_FUNCTIONS
#include "SIM_MS5611.h"
#include <SITL/SITL.h>

View File

@ -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 <stdio.h>

View File

@ -17,8 +17,6 @@
SITL.cpp - software in the loop state
*/
#define ALLOW_DOUBLE_MATH_FUNCTIONS
#include "SITL.h"
#if AP_SIM_ENABLED

View File

@ -1,2 +1,2 @@
def configure(cfg):
cfg.env.DOUBLE_PRECISION_SOURCES['SITL'] = ['SIM_Aircraft.cpp']
cfg.env.DOUBLE_PRECISION_LIBRARIES['SITL'] = True