forked from Archive/PX4-Autopilot
Only send actuator HIL commands if armed
This commit is contained in:
parent
8b8330a015
commit
cc582b2b44
|
@ -455,7 +455,7 @@ l_actuator_outputs(struct listener *l)
|
|||
act_outputs.output[7]);
|
||||
|
||||
/* only send in HIL mode */
|
||||
if (mavlink_hil_enabled) {
|
||||
if (mavlink_hil_enabled && armed.armed) {
|
||||
|
||||
/* translate the current syste state to mavlink state and mode */
|
||||
uint8_t mavlink_state = 0;
|
||||
|
|
Loading…
Reference in New Issue