mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-02-06 17:02:01 +08:00
AP_Follow: rename AP_AHRS::get_position to get_location
This commit is contained in:
committed by
Andrew Tridgell
parent
9264a25955
commit
88afef4cdc
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user