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 9, 2024
1 parent 6e1fb9a commit 2762409
Showing 1 changed file with 0 additions and 14 deletions.
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 2762409

Please sign in to comment.