AntennaTracker: 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 21caa8c686
commit 8461c11742
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ void Tracker::one_second_loop()
if (!ahrs.home_is_set()) {
// set home to current location
Location temp_loc;
if (ahrs.get_position(temp_loc)) {
if (ahrs.get_location(temp_loc)) {
if (!set_home(temp_loc)){
// fail silently
}

View File

@ -34,7 +34,7 @@ void Tracker::update_tracker_position()
Location temp_loc;
// REVISIT: what if we lose lock during a mission and the antenna is moving?
if (ahrs.get_position(temp_loc)) {
if (ahrs.get_location(temp_loc)) {
stationary = false;
current_loc = temp_loc;
}