mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_IRLock: Replace find_object with SITL singleton
This commit is contained in:
parent
b66b4775bc
commit
0ee6e41f6e
@ -38,7 +38,7 @@ AP_IRLock_SITL::AP_IRLock_SITL() :
|
|||||||
|
|
||||||
void AP_IRLock_SITL::init(int8_t bus)
|
void AP_IRLock_SITL::init(int8_t bus)
|
||||||
{
|
{
|
||||||
SITL::SITL *sitl = (SITL::SITL *)AP_Param::find_object("SIM_");
|
SITL::SITL *sitl = AP::sitl();
|
||||||
// try to bind to a specific port so that if we restart ArduPilot
|
// try to bind to a specific port so that if we restart ArduPilot
|
||||||
// Gazebo keeps sending us packets. Not strictly necessary but
|
// Gazebo keeps sending us packets. Not strictly necessary but
|
||||||
// useful for debugging
|
// useful for debugging
|
||||||
|
Loading…
Reference in New Issue
Block a user