mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +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 (autopilot_mode == AP_MODE_NAV &&
|
||||
autopilot_motors_on &&
|
||||
#if NO_GPS_LOST_WITH_RC_VALID
|
||||
radio_control.status != RC_OK &&
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user