px4.parameter.mpc_xy_vel_max.set

Open Platform PX4 parameter command. PX4 parameter: MPC_XY_VEL_MAX Set the maximum horizontal velocity for multicopter position control. PX4 constrains all velocity-controlled modes to this horizontal speed limit.

Request Params

vendor
string
必填
Fixed value px4
device_id
string
必填
Target PX4 device ID
command_type
string
必填
Fixed value px4.parameter.mpc_xy_vel_max.set
idempotency_key
string
必填
Idempotency key; repeated requests return the same command
timeout_seconds
integer
Timeout in seconds, range 0~300
payload
object
必填
MpcXyVelMaxSetRequest
payload.value
number
必填
Maximum horizontal velocity in m/s, range 0~20

PX4 Frame Mapping

  • PX4 source: docs/px4/src/modules/mc_pos_control/multicopter_position_control_limits_params.yaml
  • PX4 parameter: MPC_XY_VEL_MAX
  • Parameter type: real32
  • Default: 12.0 m/s
  • Range: 0~20 m/s
  • MAVLink frame: PARAM_SET
  • Message ID: 23
  • Completion: MpcXyVelMaxSetResponse, carrying PARAM_VALUE / PARAM_ERROR
  • Guard: PX4_PARAMETER_WRITE_ALLOWLIST must contain MPC_XY_VEL_MAX

Create Response

command_id
string
Platform command ID, used for follow-up queries
status
string
Acceptance status: ACCEPTED
accepted_at
string(datetime)
Command acceptance time (UTC)

Query Response

status
string
Execution status: ACCEPTED / DELIVERED / SUCCEEDED / FAILED / TIMED_OUT / UNMATCHED_RESPONSE
vendor_response
object
MpcXyVelMaxSetResponse summary, including the PARAM_VALUE or PARAM_ERROR result
curl -X POST "/api/v1/open/downlink/commands" \
  -H "Content-Type: application/json" \
  -H "X-Api-Id: YOUR_API_ID" \
  -H "X-Api-Timestamp: YOUR_UNIX_SECONDS" \
  -H "X-Api-Nonce: YOUR_NONCE" \
  -H "X-Api-Signature: YOUR_SIGNATURE" \
  -d "{\"vendor\":\"px4\",\"device_id\":\"px4-real-1\",\"command_type\":\"px4.parameter.mpc_xy_vel_max.set\",\"payload\":{\"value\":12.5},\"idempotency_key\":\"req-set-MPC_XY_VEL_MAX-001\",\"timeout_seconds\":30}"
{
  "command_id": "8cdb5bf3-8902-c5f7-f9aa-dc7fa0af1de0",
  "status": "ACCEPTED",
  "accepted_at": "2026-06-15T00:00:00Z"
}