Skip to content

Commit

Permalink
Blimp: provide and use base class set_home_from_current_location
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Apr 10, 2024
1 parent 868ef5e commit 553c8ba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion Blimp/Blimp.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ class Blimp : public AP_Vehicle
// commands.cpp
void update_home_from_EKF();
void set_home_to_current_location_inflight();
bool set_home_to_current_location(bool lock) override WARN_IF_UNUSED;

// ekf_check.cpp
void ekf_check();
Expand Down
14 changes: 0 additions & 14 deletions Blimp/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,3 @@ void Blimp::set_home_to_current_location_inflight()
}
}
}

// set_home_to_current_location - set home to current GPS location
bool Blimp::set_home_to_current_location(bool lock)
{
// get current location from EKF
Location temp_loc;
if (ahrs.get_location(temp_loc)) {
if (!set_home(temp_loc, lock)) {
return false;
}
return true;
}
return false;
}

0 comments on commit 553c8ba

Please sign in to comment.