Browse Source

commander: mavlink output on flight termination

sbg
Thomas Gubler 11 years ago
parent
commit
ab9b234893
  1. 3
      src/modules/commander/commander.cpp

3
src/modules/commander/commander.cpp

@ -1313,9 +1313,10 @@ int commander_thread_main(int argc, char *argv[]) @@ -1313,9 +1313,10 @@ int commander_thread_main(int argc, char *argv[])
/* Check for geofence violation */
if (pos_sp_triplet.geofence_violated) {
//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 */
/* 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;
status_changed = true;
mavlink_log_emergency(mavlink_fd, "Geofence violated: terminating");
} // no reset is done here on purpose, on geofence violation we want to stay in flighttermination
}

Loading…
Cancel
Save