diff --git a/libraries/AP_Baro/AP_Baro.cpp b/libraries/AP_Baro/AP_Baro.cpp index 29cbfad0b2..a9462331b6 100644 --- a/libraries/AP_Baro/AP_Baro.cpp +++ b/libraries/AP_Baro/AP_Baro.cpp @@ -624,7 +624,7 @@ void AP_Baro::init(void) break; } #elif CONFIG_HAL_BOARD == HAL_BOARD_SITL - SITL::SITL *sitl = AP::sitl(); + SITL::SIM *sitl = AP::sitl(); if (sitl == nullptr) { AP_HAL::panic("No SITL pointer"); } diff --git a/libraries/AP_Baro/AP_Baro_SITL.h b/libraries/AP_Baro/AP_Baro_SITL.h index b12c6da5db..2516b1d746 100644 --- a/libraries/AP_Baro/AP_Baro_SITL.h +++ b/libraries/AP_Baro/AP_Baro_SITL.h @@ -18,7 +18,7 @@ protected: private: uint8_t _instance; - SITL::SITL *_sitl; + SITL::SIM *_sitl; // barometer delay buffer variables struct readings_baro { diff --git a/libraries/AP_Baro/examples/BARO_generic/BARO_generic.cpp b/libraries/AP_Baro/examples/BARO_generic/BARO_generic.cpp index 3ee8d2d7e9..f25875ad62 100644 --- a/libraries/AP_Baro/examples/BARO_generic/BARO_generic.cpp +++ b/libraries/AP_Baro/examples/BARO_generic/BARO_generic.cpp @@ -38,7 +38,7 @@ static AP_BoardConfig board_config; #if CONFIG_HAL_BOARD == HAL_BOARD_SITL #include -SITL::SITL sitl; +SITL::SIM sitl; #endif void setup();