px4.parameter.mpc_z_vel_max_up.set

开放平台 PX4 参数命令。PX4 参数:MPC_Z_VEL_MAX_UP 设置多旋翼最大上升速度。PX4 会将所有爬升率控制模式中的上升速度限制在该参数内;手动模式下满杆上升也会受它约束。

请求参数

vendor
string
必填
固定 px4
device_id
string
必填
目标 PX4 设备 ID
command_type
string
必填
固定 px4.parameter.mpc_z_vel_max_up.set
idempotency_key
string
必填
幂等键;重复请求返回同一命令
timeout_seconds
integer
超时秒数,范围 0~300
payload
object
必填
MpcZVelMaxUpSetRequest
payload.value
number
必填
最大上升速度,单位 m/s,范围 0.5~8.0

PX4 帧映射

  • PX4 source: docs/px4/build/px4_sitl_default/parameters.json
  • PX4 handler: docs/px4/src/modules/mavlink/mavlink_parameters.cpp
  • PX4 parameter: MPC_Z_VEL_MAX_UP
  • Category: Standard
  • Group: Multicopter Position Control
  • Parameter type: real32
  • Unit: m/s
  • Default: 3.0
  • Range: 0.5~8.0
  • Cloud write policy: guarded allowlist only
  • MAVLink frame: PARAM_SET
  • Message ID: 23
  • Guard: PX4_PARAMETER_WRITE_ALLOWLIST 必须包含 MPC_Z_VEL_MAX_UP
{
  "vendor": "px4",
  "device_id": "px4-real-1",
  "command_type": "px4.parameter.mpc_z_vel_max_up.set",
  "payload": {
    "value": 3.5
  },
  "idempotency_key": "req-set-MPC_Z_VEL_MAX_UP-001",
  "timeout_seconds": 30
}
{
  "command_id": "8cdb5bf3-8902-c5f7-f9aa-dc7fa0af1de0",
  "status": "SUCCEEDED",
  "vendor": "px4",
  "device_id": "px4-real-1",
  "command_type": "px4.parameter.mpc_z_vel_max_up.set",
  "response_code": "PARAM_VALUE",
  "response_message": "parameter value confirmed",
  "vendor_response": {
    "message": "PARAM_VALUE",
    "param_id": "MPC_Z_VEL_MAX_UP",
    "value": 3.5,
    "value_type": "real32"
  }
}