Skip to content

Commit

Permalink
AP_Vehicle: base-class implementation of set_home
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Apr 8, 2024
1 parent 2b76f66 commit 44891ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_Vehicle/AP_Vehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ class AP_Vehicle : public AP_HAL::HAL::Callbacks {
virtual bool get_rate_ef_targets(Vector3f& rate_ef_targets) const { return false; }

#if AP_AHRS_ENABLED
virtual bool set_home_to_current_location(bool lock) WARN_IF_UNUSED = 0;
virtual bool set_home(const Location& loc, bool lock) WARN_IF_UNUSED = 0;
virtual bool set_home_to_current_location(bool lock) WARN_IF_UNUSED { return false; }
virtual bool set_home(const Location& loc, bool lock) WARN_IF_UNUSED { return false; }
#endif

protected:
Expand Down

0 comments on commit 44891ce

Please sign in to comment.