mirror of https://github.com/ArduPilot/ardupilot
ArduCopter: 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
bad68829ae
commit
bf6d1afd59
|
@ -84,7 +84,6 @@
|
|||
#include <AC_WPNav/AC_Circle.h> // circle navigation library
|
||||
#include <AP_Declination/AP_Declination.h> // ArduPilot Mega Declination Helper Library
|
||||
#include <AC_Fence/AC_Fence.h> // Arducopter Fence library
|
||||
#include <SITL/SITL.h> // software in the loop support
|
||||
#include <AP_Scheduler/AP_Scheduler.h> // main loop scheduler
|
||||
#include <AP_RCMapper/AP_RCMapper.h> // RC input mapping library
|
||||
#include <AP_Notify/AP_Notify.h> // Notify library
|
||||
|
@ -117,6 +116,10 @@
|
|||
// Local modules
|
||||
#include "Parameters.h"
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
#include <SITL/SITL.h>
|
||||
#endif
|
||||
|
||||
class Copter : public AP_HAL::HAL::Callbacks {
|
||||
public:
|
||||
friend class GCS_MAVLINK;
|
||||
|
|
Loading…
Reference in New Issue