Browse Source

AC_Fence: clear breach if breached fence is not enabled

zr-v5.1
Rishabh 5 years ago committed by Randy Mackay
parent
commit
b3a2b360e6
  1. 3
      libraries/AC_Fence/AC_Fence.cpp

3
libraries/AC_Fence/AC_Fence.cpp

@ -323,6 +323,9 @@ uint8_t AC_Fence::check() @@ -323,6 +323,9 @@ uint8_t AC_Fence::check()
return 0;
}
// clear any breach from a non-enabled fence
clear_breach(~_enabled_fences);
// check if pilot is attempting to recover manually
if (_manual_recovery_start_ms != 0) {
// we ignore any fence breaches during the manual recovery period which is about 10 seconds

Loading…
Cancel
Save