diff options
author | Julian Oes <joes@student.ethz.ch> | 2012-12-31 16:12:55 -0800 |
---|---|---|
committer | Julian Oes <joes@student.ethz.ch> | 2012-12-31 16:12:55 -0800 |
commit | 805c08815eb5d7a2b719be7f2371a7589e224590 (patch) | |
tree | 06edd8cd2dbfc4b08d25e9be54d7981af98178b1 /apps/drivers/px4io/px4io.cpp | |
parent | 8d1b1354e1bd83242369210bcde66b00acd68a67 (diff) | |
download | px4-firmware-805c08815eb5d7a2b719be7f2371a7589e224590.tar.gz px4-firmware-805c08815eb5d7a2b719be7f2371a7589e224590.tar.bz2 px4-firmware-805c08815eb5d7a2b719be7f2371a7589e224590.zip |
The multirotor mixer return 0 instead of the number of channels, my Hex is flying now (not reliably now, random flips
Diffstat (limited to 'apps/drivers/px4io/px4io.cpp')
-rw-r--r-- | apps/drivers/px4io/px4io.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/drivers/px4io/px4io.cpp b/apps/drivers/px4io/px4io.cpp index 8001f1ff6..f24beaf53 100644 --- a/apps/drivers/px4io/px4io.cpp +++ b/apps/drivers/px4io/px4io.cpp @@ -587,9 +587,9 @@ PX4IO::io_send() cmd.f2i_magic = F2I_MAGIC; /* set outputs */ - for (unsigned i = 0; i < _max_actuators; i++) - cmd.output_control[i] = _outputs.output[i]; - + for (unsigned i = 0; i < _max_actuators; i++) { + cmd.output_control[i] = (uint16_t)_outputs.output[i]; + } /* publish as we send */ _outputs.timestamp = hrt_absolute_time(); /* XXX needs to be based off post-mix values from the IO side */ |