From 89b56f38f2d929d6e5548e19f0c8bce91b9f0dd4 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 21 Jan 2022 10:42:41 +1100 Subject: [PATCH] Blimp: rename AP_AHRS::get_position to get_location --- Blimp/commands.cpp | 4 ++-- Blimp/inertia.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Blimp/commands.cpp b/Blimp/commands.cpp index eb8f74b4e4..65a3ba886a 100644 --- a/Blimp/commands.cpp +++ b/Blimp/commands.cpp @@ -25,7 +25,7 @@ void Blimp::set_home_to_current_location_inflight() // get current location from EKF Location temp_loc; Location ekf_origin; - if (ahrs.get_position(temp_loc) && ahrs.get_origin(ekf_origin)) { + if (ahrs.get_location(temp_loc) && ahrs.get_origin(ekf_origin)) { temp_loc.alt = ekf_origin.alt; if (!set_home(temp_loc, false)) { return; @@ -38,7 +38,7 @@ bool Blimp::set_home_to_current_location(bool lock) { // get current location from EKF Location temp_loc; - if (ahrs.get_position(temp_loc)) { + if (ahrs.get_location(temp_loc)) { if (!set_home(temp_loc, lock)) { return false; } diff --git a/Blimp/inertia.cpp b/Blimp/inertia.cpp index 046468e992..b46e03978d 100644 --- a/Blimp/inertia.cpp +++ b/Blimp/inertia.cpp @@ -8,7 +8,7 @@ void Blimp::read_inertia() // pull position from ahrs Location loc; - ahrs.get_position(loc); + ahrs.get_location(loc); current_loc.lat = loc.lat; current_loc.lng = loc.lng;