//XXX: make this configurable to select different actions (e.g. navigation modes)
/* this will only trigger if geofence is activated via param and a geofence file is present, also there is a circuit breaker to disable the actual flight termination in the px4io driver */
armed.force_failsafe=true;
@ -1580,6 +1580,7 @@ int commander_thread_main(int argc, char *argv[])
@@ -1580,6 +1580,7 @@ int commander_thread_main(int argc, char *argv[])
}
/* Check for failure combinations which lead to flight termination */
if(armed.armed){
/* At this point the data link and the gps system have been checked
*Ifbothfailedwewanttoterminatetheflight*/
if((status.data_link_lost&&status.gps_failure)||
@ -1604,6 +1605,7 @@ int commander_thread_main(int argc, char *argv[])
@@ -1604,6 +1605,7 @@ int commander_thread_main(int argc, char *argv[])
warnx("Flight termination because of RC signal loss && gps failure");
mavlink_log_critical(mavlink_fd,"RC and GPS lost: flight termination");