px4.parameter.ekf2_gps_ctrl.set

Open Platform PX4 parameter command. PX4 parameter: EKF2_GPS_CTRL Sets EKF2 GNSS aiding. This is a bitmask parameter; each bit enables one GNSS fusion input.

Request Params

command_type
string
必填
Fixed px4.parameter.ekf2_gps_ctrl.set
payload.value
object
必填
Bitmask object; set bits to a value in range 0~15

Bitmask

bitvalueMeaning
01Longitude and latitude fusion
12Altitude fusion
243D velocity fusion
38Dual antenna heading fusion
The default value 7 enables bits 0, 1, and 2.

PX4 Frame Mapping

  • PX4 source: docs/px4/build/px4_sitl_default/parameters.json
  • PX4 handler: docs/px4/src/modules/mavlink/mavlink_parameters.cpp
  • PX4 parameter: EKF2_GPS_CTRL
  • Parameter type: int32
  • Default: 7
  • Range: 0~15
  • Cloud write policy: guarded allowlist only
  • MAVLink frame: PARAM_SET
  • Guard: PX4_PARAMETER_WRITE_ALLOWLIST must contain EKF2_GPS_CTRL
{
  "vendor": "px4",
  "device_id": "px4-real-1",
  "command_type": "px4.parameter.ekf2_gps_ctrl.set",
  "payload": {
    "value": {
      "bits": 7
    }
  },
  "idempotency_key": "req-set-EKF2_GPS_CTRL-001",
  "timeout_seconds": 30
}