Fix comparison error in RC+GPS triggered FTS failsafe check

This bug would cause loss of RC + loss of GPS to trigger a FTS when flying in non-manual modes with a good data link
This commit is contained in:
Nate Weibley 2015-10-23 11:18:09 -04:00 committed by Lorenz Meier
parent da59e632b2
commit 483cb11157
1 changed files with 1 additions and 1 deletions

View File

@ -2320,7 +2320,7 @@ int commander_thread_main(int argc, char *argv[])
if ((status.main_state ==vehicle_status_s::MAIN_STATE_ACRO || if ((status.main_state ==vehicle_status_s::MAIN_STATE_ACRO ||
status.main_state ==vehicle_status_s::MAIN_STATE_RATTITUDE || status.main_state ==vehicle_status_s::MAIN_STATE_RATTITUDE ||
status.main_state ==vehicle_status_s::MAIN_STATE_MANUAL || status.main_state ==vehicle_status_s::MAIN_STATE_MANUAL ||
status.main_state !=vehicle_status_s::MAIN_STATE_STAB || status.main_state ==vehicle_status_s::MAIN_STATE_STAB ||
status.main_state ==vehicle_status_s::MAIN_STATE_ALTCTL || status.main_state ==vehicle_status_s::MAIN_STATE_ALTCTL ||
status.main_state ==vehicle_status_s::MAIN_STATE_POSCTL) && status.main_state ==vehicle_status_s::MAIN_STATE_POSCTL) &&
((status.rc_signal_lost && status.gps_failure) || ((status.rc_signal_lost && status.gps_failure) ||