From 29088e25f94ad790363ec2566bc5d7988bea701f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 6 Oct 2021 15:51:07 +1100 Subject: [PATCH] AP_Vehicle: move SITL object up to AP_Vehicle --- libraries/AP_Vehicle/AP_Vehicle.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index e1d2b951e7..017a6b5cba 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -46,6 +46,9 @@ #include #include #include +#if CONFIG_HAL_BOARD == HAL_BOARD_SITL +#include +#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