aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-03-12 21:56:07 +0100
committerLorenz Meier <lm@inf.ethz.ch>2014-03-12 21:56:07 +0100
commitb9e8690c6166d9326d17e6f62dbd6fb62d327ed9 (patch)
tree969322d98b85980f1ff88138c089bb524b0ca6df /src/modules
parent82e2619f1f9e9f17fa07873078c28106e5eb6b64 (diff)
parent5d4797b85827a7912db335a00f3e94ca659d4ceb (diff)
downloadpx4-firmware-b9e8690c6166d9326d17e6f62dbd6fb62d327ed9.tar.gz
px4-firmware-b9e8690c6166d9326d17e6f62dbd6fb62d327ed9.tar.bz2
px4-firmware-b9e8690c6166d9326d17e6f62dbd6fb62d327ed9.zip
Merge pull request #703 from PX4/act_group_hotfix
Actuator group hotfix
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/px4iofirmware/mixer.cpp2
-rw-r--r--src/modules/px4iofirmware/px4io.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/px4iofirmware/mixer.cpp b/src/modules/px4iofirmware/mixer.cpp
index 6a4429461..9558198f3 100644
--- a/src/modules/px4iofirmware/mixer.cpp
+++ b/src/modules/px4iofirmware/mixer.cpp
@@ -267,7 +267,7 @@ mixer_callback(uintptr_t handle,
uint8_t control_index,
float &control)
{
- if (control_group > 3)
+ if (control_group >= PX4IO_CONTROL_GROUPS)
return -1;
switch (source) {
diff --git a/src/modules/px4iofirmware/px4io.h b/src/modules/px4iofirmware/px4io.h
index bb224f388..54c5663a5 100644
--- a/src/modules/px4iofirmware/px4io.h
+++ b/src/modules/px4iofirmware/px4io.h
@@ -53,7 +53,7 @@
*/
#define PX4IO_SERVO_COUNT 8
#define PX4IO_CONTROL_CHANNELS 8
-#define PX4IO_CONTROL_GROUPS 2
+#define PX4IO_CONTROL_GROUPS 4
#define PX4IO_RC_INPUT_CHANNELS 18
#define PX4IO_RC_MAPPED_CONTROL_CHANNELS 8 /**< This is the maximum number of channels mapped/used */