mirror of https://github.com/ArduPilot/ardupilot
AP_Arming: change AC_FENCE to AP_FENCE_ENABLED
This commit is contained in:
parent
4b6a0f0b4f
commit
58d244d7a3
|
@ -1099,7 +1099,7 @@ bool AP_Arming::can_checks(bool report)
|
|||
|
||||
bool AP_Arming::fence_checks(bool display_failure)
|
||||
{
|
||||
#if AC_FENCE
|
||||
#if AP_FENCE_ENABLED
|
||||
const AC_Fence *fence = AP::fence();
|
||||
if (fence == nullptr) {
|
||||
return true;
|
||||
|
@ -1388,7 +1388,7 @@ bool AP_Arming::arm_checks(AP_Arming::Method method)
|
|||
}
|
||||
}
|
||||
|
||||
#if AC_FENCE
|
||||
#if AP_FENCE_ENABLED
|
||||
AC_Fence *fence = AP::fence();
|
||||
if (fence != nullptr) {
|
||||
// If a fence is set to auto-enable, turn on the fence
|
||||
|
@ -1495,7 +1495,7 @@ bool AP_Arming::disarm(const AP_Arming::Method method, bool do_disarm_checks)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if AC_FENCE
|
||||
#if AP_FENCE_ENABLED
|
||||
AC_Fence *fence = AP::fence();
|
||||
if (fence != nullptr) {
|
||||
if(fence->auto_enabled() == AC_Fence::AutoEnable::ONLY_WHEN_ARMED) {
|
||||
|
|
Loading…
Reference in New Issue