aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2012-11-30 21:52:18 -0800
committerpx4dev <px4@purgatory.org>2012-11-30 21:52:18 -0800
commit8c4e9de70a36119d0ff4b5c4369c4667bfae4383 (patch)
tree1bbac4b459a592934cc5658769c6da3056d61cd7 /apps
parent1e6e06595af51fe8449da6bd599126868601ed01 (diff)
downloadpx4-firmware-8c4e9de70a36119d0ff4b5c4369c4667bfae4383.tar.gz
px4-firmware-8c4e9de70a36119d0ff4b5c4369c4667bfae4383.tar.bz2
px4-firmware-8c4e9de70a36119d0ff4b5c4369c4667bfae4383.zip
Use the right constraint for the output mixer; we might end up wanting more virtual control channels.
Diffstat (limited to 'apps')
-rw-r--r--apps/px4io/mixer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/px4io/mixer.c b/apps/px4io/mixer.c
index 61e716474..fb553bc6e 100644
--- a/apps/px4io/mixer.c
+++ b/apps/px4io/mixer.c
@@ -49,7 +49,6 @@
#include <fcntl.h>
#include <drivers/drv_pwm_output.h>
-#include <drivers/drv_hrt.h>
#include <systemlib/ppm_decode.h>
@@ -125,12 +124,11 @@ mixer_tick(void)
/* we have no control input */
control_count = 0;
}
-
/*
* Tickle each mixer, if we have control data.
*/
if (control_count > 0) {
- for (i = 0; i < PX4IO_OUTPUT_CHANNELS; i++) {
+ for (i = 0; i < IO_SERVO_COUNT; i++) {
mixer_update(i, control_values, control_count);
/*