mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Arducopter: Added safety check for inadvertent triggering of flip code.
This commit is contained in:
parent
9f6e1347b6
commit
ca70acbf64
@ -73,7 +73,7 @@ static void read_trim_switch()
|
||||
do_simple = (g.rc_7.radio_in > CH_7_PWM_TRIGGER);
|
||||
|
||||
}else if (g.ch7_option == CH7_FLIP){
|
||||
if (g.rc_7.radio_in > CH_7_PWM_TRIGGER && g.rc_3.control_in != 0){
|
||||
if (g.rc_7.radio_in > CH_7_PWM_TRIGGER && takeoff_complete && g.rc_3.control_in != 0){
|
||||
if(do_flip == false)
|
||||
init_flip();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user