forked from Archive/PX4-Autopilot
px4iofirmware: define 4 actuator control groups
This commit is contained in:
parent
529013ae1c
commit
af548db7cc
|
@ -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) {
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue