Copter: RC_Channel: remove fence
This commit is contained in:
parent
2f3c0447eb
commit
e1b982c99c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user