diff options
author | Ivan Ovinnikov <oivan@ethz.ch> | 2012-08-07 14:18:09 +0200 |
---|---|---|
committer | Ivan Ovinnikov <oivan@ethz.ch> | 2012-08-07 14:18:09 +0200 |
commit | 9536bfa3ca239e310be033e8d83a7cc293ebfff6 (patch) | |
tree | c4681da8a3d66f7993ae4cebb887ba3103e53029 /apps/commander | |
parent | 2b09a7914f186831e5a4fca6133355f8aadbe428 (diff) | |
download | px4-firmware-9536bfa3ca239e310be033e8d83a7cc293ebfff6.tar.gz px4-firmware-9536bfa3ca239e310be033e8d83a7cc293ebfff6.tar.bz2 px4-firmware-9536bfa3ca239e310be033e8d83a7cc293ebfff6.zip |
HIL fixed, fixedwing control fixes
Diffstat (limited to 'apps/commander')
-rw-r--r-- | apps/commander/state_machine_helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/commander/state_machine_helper.c b/apps/commander/state_machine_helper.c index 91eea2117..a71bb797d 100644 --- a/apps/commander/state_machine_helper.c +++ b/apps/commander/state_machine_helper.c @@ -475,6 +475,9 @@ uint8_t update_state_machine_mode_request(int status_pub, struct vehicle_status_ if ((current_system_state == SYSTEM_STATE_STANDBY) && (mode & MAV_MODE_FLAG_HIL_ENABLED)) { /* Enable HIL on request */ current_status->mode |= MAV_MODE_FLAG_HIL_ENABLED; + ret = OK; + state_machine_publish(status_pub, current_status); + printf("[commander] Enabling HIL\n"); } /* NEVER actually switch off HIL without reboot */ |