AP_Follow: rename AP_AHRS::get_position to get_location

This commit is contained in:
Peter Barker 2022-01-21 10:42:40 +11:00 committed by Andrew Tridgell
parent 9264a25955
commit 88afef4cdc
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ bool AP_Follow::get_target_dist_and_vel_ned(Vector3f &dist_ned, Vector3f &dist_w
{
// get our location
Location current_loc;
if (!AP::ahrs().get_position(current_loc)) {
if (!AP::ahrs().get_location(current_loc)) {
clear_dist_and_bearing_to_target();
return false;
}