Skip to content

Commit

Permalink
AntennaTracker: provide and use base class set_home_from_current_loca…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
peterbarker committed Apr 10, 2024
1 parent 5fb4753 commit 6a3d78e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion AntennaTracker/Tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ class Tracker : public AP_Vehicle {
void init_ardupilot() override;
bool get_home_eeprom(Location &loc) const;
bool set_home_eeprom(const Location &temp) WARN_IF_UNUSED;
bool set_home_to_current_location(bool lock) override WARN_IF_UNUSED;
bool set_home(const Location &temp, bool lock) override WARN_IF_UNUSED;
void prepare_servos();
void set_mode(Mode &newmode, ModeReason reason);
Expand Down
5 changes: 0 additions & 5 deletions AntennaTracker/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ bool Tracker::set_home_eeprom(const Location &temp)
return true;
}

bool Tracker::set_home_to_current_location(bool lock)
{
return set_home(AP::gps().location(), lock);
}

bool Tracker::set_home(const Location &temp, bool lock)
{
if (!AP_Vehicle::set_home(temp, lock)) {
Expand Down

0 comments on commit 6a3d78e

Please sign in to comment.