IO does not arm in HIL mode

This commit is contained in:
Lorenz Meier 2012-11-26 17:43:07 +01:00
parent dc72d467d4
commit 4298f68fcd
1 changed files with 2 additions and 1 deletions

View File

@ -500,7 +500,8 @@ PX4IO::io_send()
// XXX relays
cmd.arm_ok = _armed.armed;
/* armed and not locked down */
cmd.arm_ok = (_armed.armed && !_armed.lockdown);
ret = hx_stream_send(_io_stream, &cmd, sizeof(cmd));
if (ret)