mirror of https://github.com/ArduPilot/ardupilot
AntennaTracker: rename AP_AHRS::get_position to get_location
This commit is contained in:
parent
21caa8c686
commit
8461c11742
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue