Browse Source

Copter: RC_Channel: remove fence

master
Peter Hall 6 years ago committed by Randy Mackay
parent
commit
e1b982c99c
  1. 14
      ArduCopter/RC_Channel.cpp

14
ArduCopter/RC_Channel.cpp

@ -65,7 +65,6 @@ void RC_Channel_Copter::init_aux_function(const aux_func_t ch_option, const aux_ @@ -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 @@ -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) {

Loading…
Cancel
Save