mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
Copter: ignore aux switch during radio failsafe
This commit is contained in:
parent
fd2e87b710
commit
5cac1b3c92
@ -62,6 +62,11 @@ static void read_aux_switches()
|
||||
{
|
||||
uint8_t switch_position;
|
||||
|
||||
// exit immediately during radio failsafe
|
||||
if (failsafe.radio || failsafe.radio_counter != 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// check if ch7 switch has changed position
|
||||
switch_position = read_3pos_switch(g.rc_7.radio_in);
|
||||
if (ap_system.CH7_flag != switch_position) {
|
||||
|
Loading…
Reference in New Issue
Block a user