diff options
author | James Goppert <james.goppert@gmail.com> | 2013-01-13 17:43:30 -0500 |
---|---|---|
committer | James Goppert <james.goppert@gmail.com> | 2013-01-13 17:43:30 -0500 |
commit | 6d8983e908b40c1b74d5c937df559c580fc92e3c (patch) | |
tree | 68931c3220687f116eba5a41468ad99acbafb72d /apps | |
parent | a40f41d216fc40afe32e0a69bdddb13bdde5d393 (diff) | |
download | px4-firmware-6d8983e908b40c1b74d5c937df559c580fc92e3c.tar.gz px4-firmware-6d8983e908b40c1b74d5c937df559c580fc92e3c.tar.bz2 px4-firmware-6d8983e908b40c1b74d5c937df559c580fc92e3c.zip |
Fixed HIL state machine issue with reboot.
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 d4e88b146..99e0f2d64 100644 --- a/apps/commander/state_machine_helper.c +++ b/apps/commander/state_machine_helper.c @@ -708,7 +708,9 @@ uint8_t update_state_machine_custom_mode_request(int status_pub, struct vehicle_ case SYSTEM_STATE_REBOOT: printf("try to reboot\n"); - if (current_system_state == SYSTEM_STATE_STANDBY || current_system_state == SYSTEM_STATE_PREFLIGHT) { + if (current_system_state == SYSTEM_STATE_STANDBY + || current_system_state == SYSTEM_STATE_PREFLIGHT + || current_status->flag_hil_enabled) { printf("system will reboot\n"); mavlink_log_critical(mavlink_fd, "Rebooting.."); usleep(200000); |