From 82df167ad41d908f80e949090e6eb462f431177a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 27 Jun 2019 11:59:56 +1000 Subject: [PATCH] AP_NavEKF2: use beacon singleton --- libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp b/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp index e1bb298590..b418cdbcff 100644 --- a/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp +++ b/libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp @@ -700,7 +700,7 @@ void NavEKF2_core::readAirSpdData() void NavEKF2_core::readRngBcnData() { // get the location of the beacon data - const AP_Beacon *beacon = _ahrs->get_beacon(); + const AP_Beacon *beacon = AP::beacon(); // exit immediately if no beacon object if (beacon == nullptr) {