Added check if autopilot_motors_on do determine if you want to switch to AP_MODE_FAILSAFE

This commit is contained in:
Dino Hensen
2013-07-11 13:20:31 +02:00
committed by Felix Ruess
parent 30fb6211eb
commit 1af708f422
+1
View File
@@ -222,6 +222,7 @@ STATIC_INLINE void failsafe_check( void ) {
#if USE_GPS
if (autopilot_mode == AP_MODE_NAV &&
autopilot_motors_on &&
#if NO_GPS_LOST_WITH_RC_VALID
radio_control.status != RC_OK &&
#endif