px4.parameter.com_rc_in_mode.set
Open Platform PX4 parameter command. PX4 parameter: COM_RC_IN_MODE
Set the PX4 manual-control input source. This parameter chooses whether PX4 uses a traditional RC receiver, a MAVLink joystick, or priority-based switching across multiple input sources.
Request Params
Fixed value
px4Target PX4 device ID
Fixed value
px4.parameter.com_rc_in_mode.setIdempotency key; repeated requests return the same command
Timeout in seconds, range
0~300ComRcInModeSetRequestManual-control input source enum
payload.value
| Value | PX4 value | Meaning |
|---|---|---|
rc_only | 0 | RC only; requires valid RC calibration |
mavlink_only | 1 | MAVLink joystick only; RC and related checks are disabled |
rc_or_mavlink_with_fallback | 2 | Switch only if the current source becomes invalid |
rc_or_mavlink_keep_first | 3 | Lock to the first valid source until reboot |
disable_manual_control | 4 | Ignore all manual-control sources |
rc_then_mavlink_lower_instance | 5 | RC first, then lower MAVLink instance, then higher MAVLink instance |
mavlink_lower_instance_then_rc | 6 | Lower MAVLink instance first, then higher MAVLink instance, then RC |
rc_then_mavlink_higher_instance | 7 | RC first, then higher MAVLink instance, then lower MAVLink instance |
mavlink_higher_instance_then_rc | 8 | Higher MAVLink instance first, then lower MAVLink instance, then RC |
PX4 Frame Mapping
- PX4 source:
docs/px4/src/modules/commander/commander_params.yaml - PX4 parameter:
COM_RC_IN_MODE - Parameter type:
int32 - MAVLink frame:
PARAM_SET - Message ID:
23 - Completion:
ComRcInModeSetResponse, carryingPARAM_VALUE/PARAM_ERROR - Guard:
PX4_PARAMETER_WRITE_ALLOWLISTmust containCOM_RC_IN_MODE
Create Response
Platform command ID, used for follow-up queries
Acceptance status:
ACCEPTEDCommand acceptance time (UTC)
Query Response
Execution status:
ACCEPTED / DELIVERED / SUCCEEDED / FAILED / TIMED_OUT / UNMATCHED_RESPONSEComRcInModeSetResponse summary, including the PARAM_VALUE or PARAM_ERROR result