Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SITL: follow standard pattern for including ENABLED guards #28871

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_Airspeed_DLVR.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_Airspeed_DLVR.h"
#include "SIM_config.h"

#if AP_SIM_AIRSPEED_DLVR_ENABLED

#include "SIM_Airspeed_DLVR.h"

#include "SITL.h"

int SITL::Airspeed_DLVR::rdwr(I2C::i2c_rdwr_ioctl_data *&data)
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_BattMonitor_SMBus_Maxell.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_BattMonitor_SMBus_Maxell.h"
#include "SIM_config.h"

#if AP_SIM_BATT_MONITOR_SMBUS_MAXELL_ENABLED

#include "SIM_BattMonitor_SMBus_Maxell.h"

SITL::Maxell::Maxell() :
SIM_BattMonitor_SMBus_Generic()
{
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_BattMonitor_SMBus_Rotoye.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_BattMonitor_SMBus_Rotoye.h"
#include "SIM_config.h"

#if AP_SIM_BATT_MONITOR_SMBUS_ROTOYE_ENABLED

#include "SIM_BattMonitor_SMBus_Rotoye.h"

#include <AP_HAL/utility/sparse-endian.h>

SITL::Rotoye::Rotoye() :
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_MS5525.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_MS5525.h"
#include "SIM_config.h"

#if AP_SIM_MS5525_ENABLED

#include "SIM_MS5525.h"

#include <SITL/SITL.h>

using namespace SITL;
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_MS5611.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_MS5611.h"
#include "SIM_config.h"

#if AP_SIM_MS5611_ENABLED

#include "SIM_MS5611.h"

#include <SITL/SITL.h>

#include <stdio.h>
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_Temperature_MCP9600.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_Temperature_MCP9600.h"
#include "SIM_config.h"

#if AP_SIM_TEMPERATURE_MCP9600_ENABLED

#include "SIM_Temperature_MCP9600.h"

using namespace SITL;

#include <GCS_MAVLink/GCS.h>
Expand Down
4 changes: 3 additions & 1 deletion libraries/SITL/SIM_Temperature_TSYS01.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include "SIM_Temperature_TSYS01.h"
#include "SIM_config.h"

#if AP_SIM_TEMPERATURE_TSYS01_ENABLED

#include "SIM_Temperature_TSYS01.h"

#include <stdio.h>

constexpr const int32_t SITL::TSYS01::_k[5];
Expand Down
Loading