Skip to content

Commit

Permalink
AC_Fence: change margin warning
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Feb 24, 2025
1 parent 8011415 commit f34278b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AC_Fence/AC_Fence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ void AC_Fence::record_margin_breach(uint8_t fence_type)
if (option_enabled(OPTIONS::MARGIN_BREACH)
&& AP_HAL::timeout_expired(_last_margin_breach_notify_sent_ms, now, 1000U)) {
_last_margin_breach_notify_sent_ms = now;
print_fence_message("outside margin", _breached_fence_margins | fence_type);
print_fence_message("close", _breached_fence_margins | fence_type);
}
}

Expand All @@ -930,7 +930,7 @@ void AC_Fence::clear_margin_breach(uint8_t fence_type)
if (option_enabled(OPTIONS::MARGIN_BREACH)
&& AP_HAL::timeout_expired(_last_margin_breach_notify_sent_ms, now, 1000U)) {
_last_margin_breach_notify_sent_ms = now;
print_fence_message("inside margin", fence_type);
print_fence_message("cleared margin breach", fence_type);
}
}

Expand Down

0 comments on commit f34278b

Please sign in to comment.