aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2012-11-10 18:36:11 +0100
committerThomas Gubler <thomasgubler@gmail.com>2012-11-10 18:36:11 +0100
commit4fae74e4c1d44c3f7049d757f78bb283b36b3330 (patch)
treef2c5647ae9bf9b5e25cccda2f7b3e01b730799bd
parente1cfa102a2c18e5d9a5856214d3254334645649c (diff)
parent92fe049f6524b88861e7f3ef4f6c2344095f39ea (diff)
downloadpx4-firmware-4fae74e4c1d44c3f7049d757f78bb283b36b3330.tar.gz
px4-firmware-4fae74e4c1d44c3f7049d757f78bb283b36b3330.tar.bz2
px4-firmware-4fae74e4c1d44c3f7049d757f78bb283b36b3330.zip
Merge branch 'master' of https://github.com/PX4/Firmware into fw_control
-rw-r--r--apps/mavlink/orb_listener.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/mavlink/orb_listener.c b/apps/mavlink/orb_listener.c
index 8c38692b7..df6b1a475 100644
--- a/apps/mavlink/orb_listener.c
+++ b/apps/mavlink/orb_listener.c
@@ -444,14 +444,14 @@ l_actuator_outputs(struct listener *l)
/* HIL message as per MAVLink spec */
mavlink_msg_hil_controls_send(chan,
hrt_absolute_time(),
- act_outputs.output[0],
- act_outputs.output[1],
- act_outputs.output[2],
- act_outputs.output[3],
- act_outputs.output[4],
- act_outputs.output[5],
- act_outputs.output[6],
- act_outputs.output[7],
+ (act_outputs.output[0] - 1000.0f) / 1000.0f,
+ (act_outputs.output[1] - 1000.0f) / 1000.0f,
+ (act_outputs.output[2] - 1000.0f) / 1000.0f,
+ (act_outputs.output[3] - 1000.0f) / 1000.0f,
+ (act_outputs.output[4] - 1000.0f) / 1000.0f,
+ (act_outputs.output[5] - 1000.0f) / 1000.0f,
+ (act_outputs.output[6] - 1000.0f) / 1000.0f,
+ (act_outputs.output[7] - 1000.0f) / 1000.0f,
mavlink_mode,
0);
}