Only send actuator HIL commands if armed

This commit is contained in:
Lorenz Meier 2012-12-28 13:10:58 +01:00
parent 8b8330a015
commit cc582b2b44
1 changed files with 1 additions and 1 deletions

View File

@ -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;