diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-01-16 08:41:11 +0100 |
---|---|---|
committer | James Goppert <james.goppert@gmail.com> | 2013-01-17 14:18:33 -0500 |
commit | dc5ddb937039fd3481009caeb2a472955986e2e4 (patch) | |
tree | 88ea55eeb2e3def62d8270f0eeb3fb442b059f44 | |
parent | 13bb814f2015154cb5cadb814e37db1b6b2e634b (diff) | |
download | px4-firmware-dc5ddb937039fd3481009caeb2a472955986e2e4.tar.gz px4-firmware-dc5ddb937039fd3481009caeb2a472955986e2e4.tar.bz2 px4-firmware-dc5ddb937039fd3481009caeb2a472955986e2e4.zip |
Defaulting to full auto in auto mode
-rw-r--r-- | apps/commander/commander.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/commander/commander.c b/apps/commander/commander.c index f3568ee8d..33f183227 100644 --- a/apps/commander/commander.c +++ b/apps/commander/commander.c @@ -1845,15 +1845,16 @@ int commander_thread_main(int argc, char *argv[]) update_state_machine_mode_manual(stat_pub, ¤t_status, mavlink_fd); } else if (sp_man.manual_override_switch < -STICK_ON_OFF_LIMIT) { - /* check auto mode switch for correct mode */ - if (sp_man.auto_mode_switch > STICK_ON_OFF_LIMIT) { - /* enable guided mode */ - update_state_machine_mode_guided(stat_pub, ¤t_status, mavlink_fd); + // /* check auto mode switch for correct mode */ + // if (sp_man.auto_mode_switch > STICK_ON_OFF_LIMIT) { + // /* enable guided mode */ + // update_state_machine_mode_guided(stat_pub, ¤t_status, mavlink_fd); - } else if (sp_man.auto_mode_switch < -STICK_ON_OFF_LIMIT) { + // } else if (sp_man.auto_mode_switch < -STICK_ON_OFF_LIMIT) { + // XXX hardcode to auto for now update_state_machine_mode_auto(stat_pub, ¤t_status, mavlink_fd); - } + // } } else { /* center stick position, set SAS for all vehicle types */ |