Browse Source

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
master
Randy Mackay 8 years ago
parent
commit
2371b05696
  1. 2
      ArduCopter/switches.cpp

2
ArduCopter/switches.cpp

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

Loading…
Cancel
Save