Skip to content

Commit

Permalink
AC_Fence: build fix for vehicles that do not support fences
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Feb 28, 2024
1 parent ed2e91f commit 33bf049
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AC_Fence/AC_Fence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ void AC_Fence::update() {}

void AC_Fence::auto_enable_fence_after_takeoff() {}
void AC_Fence::auto_disable_fence_for_landing() {}
void AC_Fence::auto_enable_fence_on_arming() {}

uint8_t AC_Fence::present() const { return 0; }

Expand All @@ -904,6 +905,7 @@ uint8_t AC_Fence::check() { return 0; }
bool AC_Fence::check_destination_within_fence(const Location& loc) { return true; }
float AC_Fence::get_breach_distance(uint8_t fence_type) const { return 0.0; }
void AC_Fence::get_fence_names(uint8_t fences, ExpandingString& msg) { }
void AC_Fence::print_fence_message(const char* msg, uint8_t fences) const {}

void AC_Fence::manual_recovery_start() {}

Expand Down

0 comments on commit 33bf049

Please sign in to comment.