From 3f8fe9d3ef876ed6934b41ad4c4b56a8c5ea404e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 21 Jan 2022 10:42:41 +1100 Subject: [PATCH] AP_Module: rename AP_AHRS::get_position to get_location --- libraries/AP_Module/AP_Module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Module/AP_Module.cpp b/libraries/AP_Module/AP_Module.cpp index cee66946a7..6d740ecce5 100644 --- a/libraries/AP_Module/AP_Module.cpp +++ b/libraries/AP_Module/AP_Module.cpp @@ -177,7 +177,7 @@ void AP_Module::call_hook_AHRS_update(const AP_AHRS &ahrs) state.origin.altitude = loc.alt*0.01f; } - if (ahrs.get_position(loc)) { + if (ahrs.get_location(loc)) { state.position.available = true; state.position.latitude = loc.lat; state.position.longitude = loc.lng;