mirror of https://github.com/ArduPilot/ardupilot
SITL: build the whole simulator as double precision
This commit is contained in:
parent
ba7d94d5ad
commit
3e3c086ab7
|
@ -16,8 +16,6 @@
|
||||||
Balance Bot simulator class
|
Balance Bot simulator class
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ALLOW_DOUBLE_MATH_FUNCTIONS
|
|
||||||
|
|
||||||
#include "SIM_BalanceBot.h"
|
#include "SIM_BalanceBot.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
Blimp simulator class
|
Blimp simulator class
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ALLOW_DOUBLE_MATH_FUNCTIONS
|
|
||||||
|
|
||||||
#include "SIM_Blimp.h"
|
#include "SIM_Blimp.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#define ALLOW_DOUBLE_MATH_FUNCTIONS
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <AP_BoardConfig/AP_BoardConfig.h>
|
#include <AP_BoardConfig/AP_BoardConfig.h>
|
||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#define ALLOW_DOUBLE_MATH_FUNCTIONS
|
|
||||||
|
|
||||||
#include "SIM_MS5611.h"
|
#include "SIM_MS5611.h"
|
||||||
|
|
||||||
#include <SITL/SITL.h>
|
#include <SITL/SITL.h>
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
just enough to be able to debug control logic for new frame types
|
just enough to be able to debug control logic for new frame types
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ALLOW_DOUBLE_MATH_FUNCTIONS
|
|
||||||
|
|
||||||
#include "SIM_Plane.h"
|
#include "SIM_Plane.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
SITL.cpp - software in the loop state
|
SITL.cpp - software in the loop state
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ALLOW_DOUBLE_MATH_FUNCTIONS
|
|
||||||
|
|
||||||
#include "SITL.h"
|
#include "SITL.h"
|
||||||
|
|
||||||
#if AP_SIM_ENABLED
|
#if AP_SIM_ENABLED
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
def configure(cfg):
|
def configure(cfg):
|
||||||
cfg.env.DOUBLE_PRECISION_SOURCES['SITL'] = ['SIM_Aircraft.cpp']
|
cfg.env.DOUBLE_PRECISION_LIBRARIES['SITL'] = True
|
||||||
|
|
Loading…
Reference in New Issue