mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 15:30:08 +08:00
Added check if autopilot_motors_on do determine if you want to switch to AP_MODE_FAILSAFE
This commit is contained in:
@@ -222,6 +222,7 @@ STATIC_INLINE void failsafe_check( void ) {
|
|||||||
|
|
||||||
#if USE_GPS
|
#if USE_GPS
|
||||||
if (autopilot_mode == AP_MODE_NAV &&
|
if (autopilot_mode == AP_MODE_NAV &&
|
||||||
|
autopilot_motors_on &&
|
||||||
#if NO_GPS_LOST_WITH_RC_VALID
|
#if NO_GPS_LOST_WITH_RC_VALID
|
||||||
radio_control.status != RC_OK &&
|
radio_control.status != RC_OK &&
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user