AP_Vehicle: split AP_HAL_SITL and AP_SIM_ENABLED

This commit is contained in:
Peter Barker 2021-10-11 12:12:20 +11:00 committed by Peter Barker
parent 57f8b7c2a8
commit 0bcda3c57e

View File

@ -48,9 +48,7 @@
#include <AP_Frsky_Telem/AP_Frsky_Parameters.h>
#include <AP_ExternalAHRS/AP_ExternalAHRS.h>
#include <AP_VideoTX/AP_SmartAudio.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#include <SITL/SITL.h>
#endif
#include <AP_CustomRotations/AP_CustomRotations.h>
class AP_Vehicle : public AP_HAL::HAL::Callbacks {
@ -393,7 +391,7 @@ protected:
ModeReason control_mode_reason = ModeReason::UNKNOWN;
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#if AP_SIM_ENABLED
SITL::SIM sitl;
#endif