mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
Tools: include SITL only for SITL board
Include board-specific files only when the board is used. Since these should be exceptional cases, let the includer handle the ifdef instead of putting ifdefs in every platform-specific header. In the future we should evaluate whether the HAL for the board should instantiate this.
This commit is contained in:
parent
62d4c05a8e
commit
f27f8f2f5d
@ -33,7 +33,6 @@
|
|||||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||||
#include <AP_GPS/AP_GPS.h>
|
#include <AP_GPS/AP_GPS.h>
|
||||||
#include <AP_AHRS/AP_AHRS.h>
|
#include <AP_AHRS/AP_AHRS.h>
|
||||||
#include <SITL/SITL.h>
|
|
||||||
#include <AP_Compass/AP_Compass.h>
|
#include <AP_Compass/AP_Compass.h>
|
||||||
#include <AP_Baro/AP_Baro.h>
|
#include <AP_Baro/AP_Baro.h>
|
||||||
#include <AP_InertialSensor/AP_InertialSensor.h>
|
#include <AP_InertialSensor/AP_InertialSensor.h>
|
||||||
@ -66,6 +65,10 @@
|
|||||||
#include "LogReader.h"
|
#include "LogReader.h"
|
||||||
#include "DataFlashFileReader.h"
|
#include "DataFlashFileReader.h"
|
||||||
|
|
||||||
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
|
#include <SITL/SITL.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define streq(x, y) (!strcmp(x, y))
|
#define streq(x, y) (!strcmp(x, y))
|
||||||
|
|
||||||
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
||||||
|
Loading…
Reference in New Issue
Block a user