From 2371b056960ba9b2b165cbf3ceb584c62f8fffc9 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 19 Dec 2016 12:12:34 +0900 Subject: [PATCH] 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 --- ArduCopter/switches.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduCopter/switches.cpp b/ArduCopter/switches.cpp index 06e6edcacd..f15d10a541 100644 --- a/ArduCopter/switches.cpp +++ b/ArduCopter/switches.cpp @@ -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; }