Skip to content
Snippets Groups Projects
Commit 2dfe3858 authored by Jason Short's avatar Jason Short
Browse files

Arducopter: Added safety check for inadvertent triggering of flip code.

parent e585eaa2
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment