Rover: move SITL object up to AP_Vehicle

This commit is contained in:
Peter Barker 2021-10-06 15:51:08 +11:00 committed by Andrew Tridgell
parent 62bbfd60fb
commit 16498b7aee

View File

@ -76,10 +76,6 @@
#include <AP_Scripting/AP_Scripting.h> #include <AP_Scripting/AP_Scripting.h>
#endif #endif
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#include <SITL/SITL.h>
#endif
// Local modules // Local modules
#include "mode.h" #include "mode.h"
#include "AP_Arming.h" #include "AP_Arming.h"
@ -169,10 +165,6 @@ private:
AP_OSD osd; AP_OSD osd;
#endif #endif
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
SITL::SIM sitl;
#endif
// GCS handling // GCS handling
GCS_Rover _gcs; // avoid using this; use gcs() GCS_Rover _gcs; // avoid using this; use gcs()
GCS_Rover &gcs() { return _gcs; } GCS_Rover &gcs() { return _gcs; }