Skip to content

Commit

Permalink
Blimp: 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 4640ef9 commit 89b56f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Blimp/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void Blimp::set_home_to_current_location_inflight()
// get current location from EKF
Location temp_loc;
Location ekf_origin;
if (ahrs.get_position(temp_loc) && ahrs.get_origin(ekf_origin)) {
if (ahrs.get_location(temp_loc) && ahrs.get_origin(ekf_origin)) {
temp_loc.alt = ekf_origin.alt;
if (!set_home(temp_loc, false)) {
return;
Expand All @@ -38,7 +38,7 @@ bool Blimp::set_home_to_current_location(bool lock)
{
// get current location from EKF
Location temp_loc;
if (ahrs.get_position(temp_loc)) {
if (ahrs.get_location(temp_loc)) {
if (!set_home(temp_loc, lock)) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion Blimp/inertia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void Blimp::read_inertia()

// pull position from ahrs
Location loc;
ahrs.get_position(loc);
ahrs.get_location(loc);
current_loc.lat = loc.lat;
current_loc.lng = loc.lng;

Expand Down

0 comments on commit 89b56f3

Please sign in to comment.