diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-20 16:50:55 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-11-20 16:50:55 +0100 |
commit | 7820024d905396fd8d2bf7b29093cddfd0e9a0d5 (patch) | |
tree | f1a044bd21b89b39247890788c23e1f1cd97f0e7 /apps | |
parent | 3bfc309856c620786c53e8fffc82b76e96103d20 (diff) | |
download | px4-firmware-7820024d905396fd8d2bf7b29093cddfd0e9a0d5.tar.gz px4-firmware-7820024d905396fd8d2bf7b29093cddfd0e9a0d5.tar.bz2 px4-firmware-7820024d905396fd8d2bf7b29093cddfd0e9a0d5.zip |
Disabling commander black magic
Diffstat (limited to 'apps')
-rw-r--r-- | apps/commander/state_machine_helper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/commander/state_machine_helper.c b/apps/commander/state_machine_helper.c index bf50ebad2..46793c89b 100644 --- a/apps/commander/state_machine_helper.c +++ b/apps/commander/state_machine_helper.c @@ -257,7 +257,9 @@ void state_machine_emergency_always_critical(int status_pub, struct vehicle_stat do_state_update(status_pub, current_status, mavlink_fd, (commander_state_machine_t)SYSTEM_STATE_GROUND_ERROR); } else if (current_status->state_machine == SYSTEM_STATE_AUTO || current_status->state_machine == SYSTEM_STATE_MANUAL) { - do_state_update(status_pub, current_status, mavlink_fd, (commander_state_machine_t)SYSTEM_STATE_MISSION_ABORT); + + // DO NOT abort mission + //do_state_update(status_pub, current_status, mavlink_fd, (commander_state_machine_t)SYSTEM_STATE_MISSION_ABORT); } else { fprintf(stderr, "[commander] Unknown system state: #%d\n", current_status->state_machine); |