aboutsummaryrefslogtreecommitdiff
path: root/src/modules/px4iofirmware/px4io.h
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-09-10 13:22:56 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-09-10 13:22:56 +0200
commitc3b6cea77a1fe59e58b0019d1f8e5b95daf55494 (patch)
treefcee7ae14f10d19a7e0f800e13a8a932116eee14 /src/modules/px4iofirmware/px4io.h
parent465f161427767da4384bf9291f8b1ad782c04c30 (diff)
downloadpx4-firmware-c3b6cea77a1fe59e58b0019d1f8e5b95daf55494.tar.gz
px4-firmware-c3b6cea77a1fe59e58b0019d1f8e5b95daf55494.tar.bz2
px4-firmware-c3b6cea77a1fe59e58b0019d1f8e5b95daf55494.zip
Hotfix for S.Bus systems with more than 8 channels
Diffstat (limited to 'src/modules/px4iofirmware/px4io.h')
-rw-r--r--src/modules/px4iofirmware/px4io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/px4iofirmware/px4io.h b/src/modules/px4iofirmware/px4io.h
index dea67043e..11f4d053d 100644
--- a/src/modules/px4iofirmware/px4io.h
+++ b/src/modules/px4iofirmware/px4io.h
@@ -51,7 +51,7 @@
*/
#define PX4IO_SERVO_COUNT 8
#define PX4IO_CONTROL_CHANNELS 8
-#define PX4IO_INPUT_CHANNELS 12
+#define PX4IO_INPUT_CHANNELS 8 // XXX this should be 18 channels
/*
* Debug logging
@@ -200,7 +200,7 @@ extern int dsm_init(const char *device);
extern bool dsm_input(uint16_t *values, uint16_t *num_values);
extern void dsm_bind(uint16_t cmd, int pulses);
extern int sbus_init(const char *device);
-extern bool sbus_input(uint16_t *values, uint16_t *num_values);
+extern bool sbus_input(uint16_t *values, uint16_t *num_values, uint16_t max_channels);
/** global debug level for isr_debug() */
extern volatile uint8_t debug_level;