forked from Archive/PX4-Autopilot
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:
parent
da59e632b2
commit
483cb11157
|
@ -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) ||
|
||||||
|
|
Loading…
Reference in New Issue