diff --git a/libraries/AP_HAL_SITL/SITL_State.cpp b/libraries/AP_HAL_SITL/SITL_State.cpp index 9b65d5dc4b..2039371ecd 100644 --- a/libraries/AP_HAL_SITL/SITL_State.cpp +++ b/libraries/AP_HAL_SITL/SITL_State.cpp @@ -74,8 +74,8 @@ void SITL_State::_sitl_setup(const char *home_str) // find the barometer object if it exists _sitl = AP::sitl(); - _barometer = AP_Baro::get_instance(); - _ins = AP_InertialSensor::get_instance(); + _barometer = AP_Baro::get_singleton(); + _ins = AP_InertialSensor::get_singleton(); _compass = Compass::get_singleton(); #if AP_TERRAIN_AVAILABLE _terrain = reinterpret_cast(AP_Param::find_object("TERRAIN_"));