From 1c63aa1e4d40da1afabfcbd2a8f4bd769f95178e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 21 Jan 2022 10:42:41 +1100 Subject: [PATCH] AP_MSP: rename AP_AHRS::get_position to get_location --- libraries/AP_MSP/AP_MSP_Telem_Backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp b/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp index bd94ccbdb4..cda9fc86ec 100644 --- a/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp +++ b/libraries/AP_MSP/AP_MSP_Telem_Backend.cpp @@ -180,7 +180,7 @@ void AP_MSP_Telem_Backend::update_home_pos(home_state_t &home_state) WITH_SEMAPHORE(_ahrs.get_semaphore()); Location loc; float alt; - if (_ahrs.get_position(loc) && _ahrs.home_is_set()) { + if (_ahrs.get_location(loc) && _ahrs.home_is_set()) { const Location &home_loc = _ahrs.get_home(); home_state.home_distance_m = home_loc.get_distance(loc); home_state.home_bearing_cd = loc.get_bearing_to(home_loc);