From 819f08b7f75dd8a76f57d69b7b2a72ccccbcb0be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 10 May 2018 20:32:06 -0300 Subject: [PATCH] AP_AHRS: 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_AHRS/AP_AHRS_NavEKF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp index 7e90f23a65..a99e087f81 100644 --- a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp +++ b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp @@ -291,7 +291,7 @@ void AP_AHRS_NavEKF::update_EKF3(void) void AP_AHRS_NavEKF::update_SITL(void) { if (_sitl == nullptr) { - _sitl = (SITL::SITL *)AP_Param::find_object("SIM_"); + _sitl = AP::sitl(); if (_sitl == nullptr) { return; }