mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 00:43:34 +08:00
Merge pull request #73 from PX4/io_arming
Made sure IO and FMU obey the lockdown flag when arming motors
This commit is contained in:
@@ -499,7 +499,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)
|
||||
|
||||
Reference in New Issue
Block a user