AP_Vehicle: split AP_HAL_SITL and AP_SIM_ENABLED
This commit is contained in:
parent
57f8b7c2a8
commit
0bcda3c57e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user