Blimp: rename AP_AHRS::get_position to get_location

This commit is contained in:
Peter Barker 2022-01-21 10:42:41 +11:00 committed by Andrew Tridgell
parent 4640ef9a66
commit 89b56f38f2
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ void Blimp::set_home_to_current_location_inflight()
// get current location from EKF // get current location from EKF
Location temp_loc; Location temp_loc;
Location ekf_origin; 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; temp_loc.alt = ekf_origin.alt;
if (!set_home(temp_loc, false)) { if (!set_home(temp_loc, false)) {
return; return;
@ -38,7 +38,7 @@ bool Blimp::set_home_to_current_location(bool lock)
{ {
// get current location from EKF // get current location from EKF
Location temp_loc; Location temp_loc;
if (ahrs.get_position(temp_loc)) { if (ahrs.get_location(temp_loc)) {
if (!set_home(temp_loc, lock)) { if (!set_home(temp_loc, lock)) {
return false; return false;
} }

View File

@ -8,7 +8,7 @@ void Blimp::read_inertia()
// pull position from ahrs // pull position from ahrs
Location loc; Location loc;
ahrs.get_position(loc); ahrs.get_location(loc);
current_loc.lat = loc.lat; current_loc.lat = loc.lat;
current_loc.lng = loc.lng; current_loc.lng = loc.lng;