From e1b982c99c9e8e2791750b6a67ea8f9b7f3e872e Mon Sep 17 00:00:00 2001 From: Peter Hall <33176108+IamPete1@users.noreply.github.com> Date: Sun, 1 Sep 2019 17:53:57 +0100 Subject: [PATCH] Copter: RC_Channel: remove fence --- ArduCopter/RC_Channel.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ArduCopter/RC_Channel.cpp b/ArduCopter/RC_Channel.cpp index bc4725223c..6bdf05b230 100644 --- a/ArduCopter/RC_Channel.cpp +++ b/ArduCopter/RC_Channel.cpp @@ -65,7 +65,6 @@ void RC_Channel_Copter::init_aux_function(const aux_func_t ch_option, const aux_ switch(ch_option) { case AUX_FUNC::SIMPLE_MODE: case AUX_FUNC::RANGEFINDER: - case AUX_FUNC::FENCE: case AUX_FUNC::SUPERSIMPLE_MODE: case AUX_FUNC::ACRO_TRAINER: case AUX_FUNC::PARACHUTE_ENABLE: @@ -245,19 +244,6 @@ void RC_Channel_Copter::do_aux_function(const aux_func_t ch_option, const aux_sw #endif break; - case AUX_FUNC::FENCE: -#if AC_FENCE == ENABLED - // enable or disable the fence - if (ch_flag == HIGH) { - copter.fence.enable(true); - copter.Log_Write_Event(DATA_FENCE_ENABLE); - } else { - copter.fence.enable(false); - copter.Log_Write_Event(DATA_FENCE_DISABLE); - } -#endif - break; - case AUX_FUNC::ACRO_TRAINER: #if MODE_ACRO_ENABLED == ENABLED switch(ch_flag) {