mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 22:33:33 +08:00
px4iofirmware: define 4 actuator control groups
This commit is contained in:
@@ -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 */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user