diff --git a/libraries/AP_IRLock/AP_IRLock_SITL.h b/libraries/AP_IRLock/AP_IRLock_SITL.h index 1e0624b3e0..33f091ca77 100644 --- a/libraries/AP_IRLock/AP_IRLock_SITL.h +++ b/libraries/AP_IRLock/AP_IRLock_SITL.h @@ -20,7 +20,7 @@ public: bool update() override; private: - SITL::SITL *_sitl; // sitl instance pointer + SITL::SIM *_sitl; // sitl instance pointer uint32_t _last_timestamp = 0; }; #endif // CONFIG_HAL_BOARD diff --git a/libraries/AP_IRLock/AP_IRLock_SITL_Gazebo.cpp b/libraries/AP_IRLock/AP_IRLock_SITL_Gazebo.cpp index efbbc91624..cbb420ac05 100644 --- a/libraries/AP_IRLock/AP_IRLock_SITL_Gazebo.cpp +++ b/libraries/AP_IRLock/AP_IRLock_SITL_Gazebo.cpp @@ -38,7 +38,7 @@ AP_IRLock_SITL_Gazebo::AP_IRLock_SITL_Gazebo() : void AP_IRLock_SITL_Gazebo::init(int8_t bus) { - SITL::SITL *sitl = AP::sitl(); + SITL::SIM *sitl = AP::sitl(); // try to bind to a specific port so that if we restart ArduPilot // Gazebo keeps sending us packets. Not strictly necessary but // useful for debugging