This commit is contained in:
Thomas Gubler
2014-08-22 20:24:04 +02:00
parent c60ee686fa
commit 406a52e639
+1 -1
View File
@@ -1314,7 +1314,7 @@ int commander_thread_main(int argc, char *argv[])
if (pos_sp_triplet.geofence_violated || pos_sp_triplet.flight_termination) {
//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.fosrce_failsafe = true;
armed.force_failsafe = true;
status_changed = true;
warnx("Flight termination");
} // no reset is done here on purpose, on geofence violation we want to stay in flighttermination