AP_Vehicle: move SITL object up to AP_Vehicle

This commit is contained in:
Peter Barker 2021-10-06 15:51:07 +11:00 committed by Andrew Tridgell
parent 8459439798
commit 29088e25f9
1 changed files with 7 additions and 0 deletions

View File

@ -46,6 +46,9 @@
#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
class AP_Vehicle : public AP_HAL::HAL::Callbacks {
@ -363,6 +366,10 @@ protected:
ModeReason control_mode_reason = ModeReason::UNKNOWN;
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
SITL::SIM sitl;
#endif
private:
// delay() callback that processing MAVLink packets