|
|
|
@ -98,6 +98,7 @@ static void init_aux_switches()
@@ -98,6 +98,7 @@ static void init_aux_switches()
|
|
|
|
|
case AUX_SWITCH_RESETTOARMEDYAW: |
|
|
|
|
case AUX_SWITCH_SUPERSIMPLE_MODE: |
|
|
|
|
case AUX_SWITCH_ACRO_TRAINER: |
|
|
|
|
case AUX_SWITCH_SPRAYER: |
|
|
|
|
do_aux_switch_function(g.ch7_option, ap_system.CH7_flag); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
@ -109,6 +110,7 @@ static void init_aux_switches()
@@ -109,6 +110,7 @@ static void init_aux_switches()
|
|
|
|
|
case AUX_SWITCH_RESETTOARMEDYAW: |
|
|
|
|
case AUX_SWITCH_SUPERSIMPLE_MODE: |
|
|
|
|
case AUX_SWITCH_ACRO_TRAINER: |
|
|
|
|
case AUX_SWITCH_SPRAYER: |
|
|
|
|
do_aux_switch_function(g.ch8_option, ap_system.CH8_flag); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
@ -260,6 +262,12 @@ static void do_aux_switch_function(int8_t ch_function, uint8_t ch_flag)
@@ -260,6 +262,12 @@ static void do_aux_switch_function(int8_t ch_function, uint8_t ch_flag)
|
|
|
|
|
g.acro_trainer = ACRO_TRAINER_LIMITED; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if SPRAYER == ENABLED |
|
|
|
|
case AUX_SWITCH_SPRAYER: |
|
|
|
|
sprayer.enable(ch_flag == AUX_SWITCH_HIGH); |
|
|
|
|
break; |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|