|
|
|
@ -81,7 +81,6 @@ void RC_Channel_Copter::init_aux_function(const aux_func_t ch_option, const aux_
@@ -81,7 +81,6 @@ void RC_Channel_Copter::init_aux_function(const aux_func_t ch_option, const aux_
|
|
|
|
|
case AVOID_PROXIMITY: |
|
|
|
|
case INVERTED: |
|
|
|
|
case WINCH_ENABLE: |
|
|
|
|
case RC_OVERRIDE_ENABLE: |
|
|
|
|
do_aux_function(ch_option, ch_flag); |
|
|
|
|
break; |
|
|
|
|
// the following functions do not need to be initialised:
|
|
|
|
@ -512,23 +511,6 @@ void RC_Channel_Copter::do_aux_function(const aux_func_t ch_option, const aux_sw
@@ -512,23 +511,6 @@ void RC_Channel_Copter::do_aux_function(const aux_func_t ch_option, const aux_sw
|
|
|
|
|
#endif |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case RC_OVERRIDE_ENABLE: |
|
|
|
|
// Allow or disallow RC_Override
|
|
|
|
|
switch (ch_flag) { |
|
|
|
|
case HIGH: { |
|
|
|
|
copter.ap.rc_override_enable = true; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
case MIDDLE: |
|
|
|
|
// nothing
|
|
|
|
|
break; |
|
|
|
|
case LOW: { |
|
|
|
|
copter.ap.rc_override_enable = false; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
#ifdef USERHOOK_AUXSWITCH |
|
|
|
|
case USER_FUNC1: |
|
|
|
|
userhook_auxSwitch1(ch_flag); |
|
|
|
|