From 37fbd6aaa15849ed0175aa214388fec049090a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 10 May 2018 20:32:37 -0300 Subject: [PATCH] AP_Beacon: Use SITL singleton MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/AP_Beacon/AP_Beacon_SITL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Beacon/AP_Beacon_SITL.cpp b/libraries/AP_Beacon/AP_Beacon_SITL.cpp index 2cac948a2d..b4dc83e9f6 100644 --- a/libraries/AP_Beacon/AP_Beacon_SITL.cpp +++ b/libraries/AP_Beacon/AP_Beacon_SITL.cpp @@ -41,9 +41,9 @@ extern const AP_HAL::HAL& hal; // constructor AP_Beacon_SITL::AP_Beacon_SITL(AP_Beacon &frontend) : - AP_Beacon_Backend(frontend) + AP_Beacon_Backend(frontend), + sitl(AP::sitl()) { - sitl = (SITL::SITL *)AP_Param::find_object("SIM_"); } // return true if sensor is basically healthy (we are receiving data)