diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-03-11 21:46:16 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-03-11 21:46:16 +0100 |
commit | 424923271e5b8e802a3c082841eccea450326277 (patch) | |
tree | 6844c22ad06f1239713809a61fc2123ac0c102f6 | |
parent | c720a3238014e347fb84063a3fee2f9c812b3bf8 (diff) | |
download | px4-firmware-424923271e5b8e802a3c082841eccea450326277.tar.gz px4-firmware-424923271e5b8e802a3c082841eccea450326277.tar.bz2 px4-firmware-424923271e5b8e802a3c082841eccea450326277.zip |
Hotfix: Throttle scaling in HIL
-rw-r--r-- | apps/mavlink/orb_listener.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/mavlink/orb_listener.c b/apps/mavlink/orb_listener.c index 58c709aec..7c34fb474 100644 --- a/apps/mavlink/orb_listener.c +++ b/apps/mavlink/orb_listener.c @@ -513,14 +513,14 @@ l_actuator_outputs(struct listener *l) } else { mavlink_msg_hil_controls_send(chan, hrt_absolute_time(), - (act_outputs.output[0] - 1500.0f) / 600.0f, - (act_outputs.output[1] - 1500.0f) / 600.0f, - (act_outputs.output[2] - 1500.0f) / 600.0f, - (act_outputs.output[3] - 900.0f) / 1200.0f, - (act_outputs.output[4] - 1500.0f) / 600.0f, - (act_outputs.output[5] - 1500.0f) / 600.0f, - (act_outputs.output[6] - 1500.0f) / 600.0f, - (act_outputs.output[7] - 1500.0f) / 600.0f, + (act_outputs.output[0] - 1500.0f) / 500.0f, + (act_outputs.output[1] - 1500.0f) / 500.0f, + (act_outputs.output[2] - 1500.0f) / 500.0f, + (act_outputs.output[3] - 1000.0f) / 1000.0f, + (act_outputs.output[4] - 1500.0f) / 500.0f, + (act_outputs.output[5] - 1500.0f) / 500.0f, + (act_outputs.output[6] - 1500.0f) / 500.0f, + (act_outputs.output[7] - 1500.0f) / 500.0f, mavlink_mode, 0); } |