From 483cb1115711d252cb8e7b3bf06acf06734fce9c Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Fri, 23 Oct 2015 11:18:09 -0400 Subject: [PATCH] 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 --- src/modules/commander/commander.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 49e6459b03..851529bb54 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -2320,7 +2320,7 @@ int commander_thread_main(int argc, char *argv[]) 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_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_POSCTL) && ((status.rc_signal_lost && status.gps_failure) ||