mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 04:51:35 +08:00
px4iofirmware: in manual mode: ignore control indices which are not controlled by the rmeote control
This commit is contained in:
@@ -248,7 +248,7 @@ mixer_callback(uintptr_t handle,
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
case MIX_OVERRIDE:
|
case MIX_OVERRIDE:
|
||||||
if (r_page_rc_input[PX4IO_P_RC_VALID] & (1 << control_index)) {
|
if ((r_page_rc_input[PX4IO_P_RC_VALID] & (1 << control_index)) && CONTROL_PAGE_INDEX(control_group, control_index) < PX4IO_RC_INPUT_CHANNELS) {
|
||||||
control = REG_TO_FLOAT(r_page_rc_input[PX4IO_P_RC_BASE + control_index]);
|
control = REG_TO_FLOAT(r_page_rc_input[PX4IO_P_RC_BASE + control_index]);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user