diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2013-12-24 15:04:11 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2013-12-24 15:04:11 +0100 |
commit | d1f35cc1107f3f07965073862150a5e4c7ea612c (patch) | |
tree | a18d29115f00727b36dfdf14bcc4368652711c7f /src/modules/mavlink | |
parent | 6c7ae211b1c0fc7c327de706255811d297eb4917 (diff) | |
download | px4-firmware-d1f35cc1107f3f07965073862150a5e4c7ea612c.tar.gz px4-firmware-d1f35cc1107f3f07965073862150a5e4c7ea612c.tar.bz2 px4-firmware-d1f35cc1107f3f07965073862150a5e4c7ea612c.zip |
HIL: only listen to first 8 actuator outputs
Diffstat (limited to 'src/modules/mavlink')
-rw-r--r-- | src/modules/mavlink/orb_listener.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/mavlink/orb_listener.c b/src/modules/mavlink/orb_listener.c index c37c35a63..9e43467cc 100644 --- a/src/modules/mavlink/orb_listener.c +++ b/src/modules/mavlink/orb_listener.c @@ -499,8 +499,8 @@ l_actuator_outputs(const struct listener *l) act_outputs.output[6], act_outputs.output[7]); - /* only send in HIL mode */ - if (mavlink_hil_enabled && armed.armed) { + /* only send in HIL mode and only send first group for HIL */ + if (mavlink_hil_enabled && armed.armed && ids[l->arg] == ORB_ID(actuator_outputs_0)) { /* translate the current syste state to mavlink state and mode */ uint8_t mavlink_state = 0; |