AntennaTracker: eliminate AP::ahrs().get_location

This commit is contained in:
Peter Barker 2021-08-27 13:04:59 +10:00 committed by Andrew Tridgell
parent 3a5062c90b
commit 34ff53f158
1 changed files with 1 additions and 1 deletions

View File

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