From 7ed190c163717b87779eccf513647edd985441f3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 21 Oct 2022 12:25:52 +1100 Subject: [PATCH] ArduCopter: use fence singleton in afs check --- ArduCopter/failsafe.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ArduCopter/failsafe.cpp b/ArduCopter/failsafe.cpp index d2d54a3afe..9adf95db03 100644 --- a/ArduCopter/failsafe.cpp +++ b/ArduCopter/failsafe.cpp @@ -79,11 +79,6 @@ void Copter::failsafe_check() void Copter::afs_fs_check(void) { // perform AFS failsafe checks -#if AP_FENCE_ENABLED - const bool fence_breached = fence.get_breaches() != 0; -#else - const bool fence_breached = false; -#endif - g2.afs.check(fence_breached, last_radio_update_ms); + g2.afs.check(last_radio_update_ms); } #endif