mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AntennaTracker: eliminate AP::ahrs().get_location
This commit is contained in:
parent
3a5062c90b
commit
34ff53f158
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user