Copter: init avoid-adsb and prec-loiter enabled from switch positions

Without this there could be a mismatch between the switch position and whether the feature is enabled/disabled
This commit is contained in:
Randy Mackay 2016-12-19 12:12:34 +09:00
parent 2365036e5c
commit 2371b05696
1 changed files with 2 additions and 0 deletions

View File

@ -192,6 +192,8 @@ void Copter::init_aux_switch_function(int8_t ch_option, uint8_t ch_flag)
case AUXSW_LANDING_GEAR: case AUXSW_LANDING_GEAR:
case AUXSW_MOTOR_ESTOP: case AUXSW_MOTOR_ESTOP:
case AUXSW_MOTOR_INTERLOCK: case AUXSW_MOTOR_INTERLOCK:
case AUXSW_AVOID_ADSB:
case AUXSW_PRECISION_LOITER:
do_aux_switch_function(ch_option, ch_flag); do_aux_switch_function(ch_option, ch_flag);
break; break;
} }