From 4298f68fcd39aa9820f9b522c38869ff0eb8bb0a Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 26 Nov 2012 17:43:07 +0100 Subject: [PATCH] IO does not arm in HIL mode --- apps/drivers/px4io/px4io.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/drivers/px4io/px4io.cpp b/apps/drivers/px4io/px4io.cpp index f2c87473c4..bf23c3937c 100644 --- a/apps/drivers/px4io/px4io.cpp +++ b/apps/drivers/px4io/px4io.cpp @@ -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)