Added failsafe check

This commit is contained in:
Jason Short 2011-12-13 21:21:35 -08:00
parent c7da9c63f1
commit 66c974a949

View File

@ -337,7 +337,7 @@ static void init_ardupilot()
//-----------------------------
init_barometer();
#endif
// initialise sonar
#if HIL_MODE != HIL_MODE_ATTITUDE && CONFIG_SONAR == ENABLED
init_sonar();
@ -436,7 +436,7 @@ static void set_mode(byte mode)
control_mode = constrain(control_mode, 0, NUM_MODES - 1);
// used to stop fly_aways
motor_auto_armed = (g.rc_3.control_in > 0);
motor_auto_armed = (g.rc_3.control_in > 0) || failsafe;
// clearing value used in interactive alt hold
manual_boost = 0;