From 05a5754452e6ad183b4e9f9928359391280fd31e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 21 Jan 2022 10:42:40 +1100 Subject: [PATCH] AC_WPNav: rename AP_AHRS::get_position to get_location --- libraries/AC_WPNav/AC_WPNav_OA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AC_WPNav/AC_WPNav_OA.cpp b/libraries/AC_WPNav/AC_WPNav_OA.cpp index 07dfb02796..10e56d51ec 100644 --- a/libraries/AC_WPNav/AC_WPNav_OA.cpp +++ b/libraries/AC_WPNav/AC_WPNav_OA.cpp @@ -70,7 +70,7 @@ bool AC_WPNav_OA::update_wpnav() // run path planning around obstacles AP_OAPathPlanner *oa_ptr = AP_OAPathPlanner::get_singleton(); Location current_loc; - if ((oa_ptr != nullptr) && AP::ahrs().get_position(current_loc)) { + if ((oa_ptr != nullptr) && AP::ahrs().get_location(current_loc)) { // backup _origin and _destination when not doing oa if (_oa_state == AP_OAPathPlanner::OA_NOT_REQUIRED) {