diff --git a/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.cpp b/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.cpp index 06d8e48f8c..8a4262fed9 100644 --- a/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.cpp +++ b/libraries/AP_GPS/examples/GPS_AUTO_test/GPS_AUTO_test.cpp @@ -23,6 +23,8 @@ #include #include #include +#include +#include void setup(); //This function is defined in most of the libraries. This function is called only once at boot up time. This function is called by main() function in HAL. void loop(); //This function is defined in most of the libraries. This function is called by main function in HAL. The main work of the sketch is typically in this function only. @@ -41,6 +43,12 @@ const AP_Param::GroupInfo GCS_MAVLINK_Parameters::var_info[] = { AP_GROUPEND }; +#if AP_SIM_ENABLED +SITL::SIM sitl; +AP_Baro baro; +AP_Scheduler scheduler; +#endif + // This example uses GPS system. Create it. static AP_GPS gps; // Serial manager is needed for UART communications