PX4-Autopilot/docs/zh/msg_docs/MessageFormatRequest.md
PX4 Build Bot 47d5971f42
New Crowdin translations - zh-CN (#26488)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2026-02-18 16:44:34 +11:00

2.8 KiB

pageClass
pageClass
is-wide-page

MessageFormatRequest (UORB message)

TOPICS: message_formatrequest

Fields

参数名 类型 Unit [Frame] Range/Enum 描述
timestamp uint64 time since system start (microseconds)
protocol_version uint16 Must be set to LATEST_PROTOCOL_VERSION. Do not change this field, it must be the first field after the timestamp
topic_name char[50] E.g. /fmu/in/vehicle_command

Constants

参数名 类型 描述
LATEST_PROTOCOL_VERSION uint16 1 Current version of this protocol. Increase this whenever the MessageFormatRequest or MessageFormatResponse changes.

Source Message

Source file (GitHub)

:::details Click here to see original file

uint64 timestamp # time since system start (microseconds)

# Request to PX4 to get the hash of a message, to check for message compatibility

uint16 LATEST_PROTOCOL_VERSION = 1 # Current version of this protocol. Increase this whenever the MessageFormatRequest or MessageFormatResponse changes.

uint16 protocol_version           # Must be set to LATEST_PROTOCOL_VERSION. Do not change this field, it must be the first field after the timestamp

char[50] topic_name  # E.g. /fmu/in/vehicle_command

:::