Skip to content

Commit

Permalink
AntennaTracker: rename AP_AHRS::get_position to get_location
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Jan 24, 2022
1 parent 21caa8c commit 8461c11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AntennaTracker/Tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion AntennaTracker/tracking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8461c11

Please sign in to comment.