Copter: Cancel arming if throttle input above cruise_throttle.

This commit is contained in:
Jonathan Challinger 2013-06-23 10:11:25 -07:00 committed by Randy Mackay
parent 2725f219cb
commit 9f51a4a4f7

View File

@ -181,6 +181,14 @@ static void init_arm_motors()
piezo_beep_twice();
#endif
// Cancel arming if throttle is raised too high so that copter does not suddenly take off
read_radio();
if (g.rc_3.control_in > g.throttle_cruise && g.throttle_cruise > 100) {
motors.output_min();
failsafe_enable();
return;
}
// finally actually arm the motors
motors.armed(true);