px4iofirmware: define 4 actuator control groups

This commit is contained in:
Anton Babushkin 2014-03-05 00:01:27 +04:00
parent 529013ae1c
commit af548db7cc
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ mixer_callback(uintptr_t handle,
uint8_t control_index, uint8_t control_index,
float &control) float &control)
{ {
if (control_group > 3) if (control_group >= PX4IO_CONTROL_GROUPS)
return -1; return -1;
switch (source) { switch (source) {

View File

@ -53,7 +53,7 @@
*/ */
#define PX4IO_SERVO_COUNT 8 #define PX4IO_SERVO_COUNT 8
#define PX4IO_CONTROL_CHANNELS 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_INPUT_CHANNELS 18
#define PX4IO_RC_MAPPED_CONTROL_CHANNELS 8 /**< This is the maximum number of channels mapped/used */ #define PX4IO_RC_MAPPED_CONTROL_CHANNELS 8 /**< This is the maximum number of channels mapped/used */