Browse Source

AC_Fence: Disable fence floor when disabling the rest of the fence

zr-v5.1
James O'Shannessy 4 years ago committed by Peter Barker
parent
commit
e4f1e26b5c
  1. 1
      libraries/AC_Fence/AC_Fence.cpp

1
libraries/AC_Fence/AC_Fence.cpp

@ -134,6 +134,7 @@ void AC_Fence::enable(bool value) @@ -134,6 +134,7 @@ void AC_Fence::enable(bool value)
_enabled = value;
if (!value) {
clear_breach(AC_FENCE_TYPE_ALT_MIN | AC_FENCE_TYPE_ALT_MAX | AC_FENCE_TYPE_CIRCLE | AC_FENCE_TYPE_POLYGON);
disable_floor();
} else {
enable_floor();
}

Loading…
Cancel
Save