SITL: follow standard pattern for including ENABLED guards

Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
This commit is contained in:
Rhys Mainwaring 2024-12-15 11:46:11 +00:00 committed by Thomas Watson
parent 5b935a3838
commit ee7376afb1
7 changed files with 21 additions and 7 deletions

View File

@ -1,7 +1,9 @@
#include "SIM_Airspeed_DLVR.h" #include "SIM_config.h"
#if AP_SIM_AIRSPEED_DLVR_ENABLED #if AP_SIM_AIRSPEED_DLVR_ENABLED
#include "SIM_Airspeed_DLVR.h"
#include "SITL.h" #include "SITL.h"
int SITL::Airspeed_DLVR::rdwr(I2C::i2c_rdwr_ioctl_data *&data) int SITL::Airspeed_DLVR::rdwr(I2C::i2c_rdwr_ioctl_data *&data)

View File

@ -1,7 +1,9 @@
#include "SIM_BattMonitor_SMBus_Maxell.h" #include "SIM_config.h"
#if AP_SIM_BATT_MONITOR_SMBUS_MAXELL_ENABLED #if AP_SIM_BATT_MONITOR_SMBUS_MAXELL_ENABLED
#include "SIM_BattMonitor_SMBus_Maxell.h"
SITL::Maxell::Maxell() : SITL::Maxell::Maxell() :
SIM_BattMonitor_SMBus_Generic() SIM_BattMonitor_SMBus_Generic()
{ {

View File

@ -1,7 +1,9 @@
#include "SIM_BattMonitor_SMBus_Rotoye.h" #include "SIM_config.h"
#if AP_SIM_BATT_MONITOR_SMBUS_ROTOYE_ENABLED #if AP_SIM_BATT_MONITOR_SMBUS_ROTOYE_ENABLED
#include "SIM_BattMonitor_SMBus_Rotoye.h"
#include <AP_HAL/utility/sparse-endian.h> #include <AP_HAL/utility/sparse-endian.h>
SITL::Rotoye::Rotoye() : SITL::Rotoye::Rotoye() :

View File

@ -1,7 +1,9 @@
#include "SIM_MS5525.h" #include "SIM_config.h"
#if AP_SIM_MS5525_ENABLED #if AP_SIM_MS5525_ENABLED
#include "SIM_MS5525.h"
#include <SITL/SITL.h> #include <SITL/SITL.h>
using namespace SITL; using namespace SITL;

View File

@ -1,7 +1,9 @@
#include "SIM_MS5611.h" #include "SIM_config.h"
#if AP_SIM_MS5611_ENABLED #if AP_SIM_MS5611_ENABLED
#include "SIM_MS5611.h"
#include <SITL/SITL.h> #include <SITL/SITL.h>
#include <stdio.h> #include <stdio.h>

View File

@ -1,7 +1,9 @@
#include "SIM_Temperature_MCP9600.h" #include "SIM_config.h"
#if AP_SIM_TEMPERATURE_MCP9600_ENABLED #if AP_SIM_TEMPERATURE_MCP9600_ENABLED
#include "SIM_Temperature_MCP9600.h"
using namespace SITL; using namespace SITL;
#include <GCS_MAVLink/GCS.h> #include <GCS_MAVLink/GCS.h>

View File

@ -1,7 +1,9 @@
#include "SIM_Temperature_TSYS01.h" #include "SIM_config.h"
#if AP_SIM_TEMPERATURE_TSYS01_ENABLED #if AP_SIM_TEMPERATURE_TSYS01_ENABLED
#include "SIM_Temperature_TSYS01.h"
#include <stdio.h> #include <stdio.h>
constexpr const int32_t SITL::TSYS01::_k[5]; constexpr const int32_t SITL::TSYS01::_k[5];