github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_v2_extension.go (about)

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // Message implementing parts of the V2 payload specs in V1 frames for transitional support.
     6  type MessageV2Extension struct {
     7  	// Network ID (0 for broadcast)
     8  	TargetNetwork uint8
     9  	// System ID (0 for broadcast)
    10  	TargetSystem uint8
    11  	// Component ID (0 for broadcast)
    12  	TargetComponent uint8
    13  	// A code that identifies the software component that understands this message (analogous to USB device classes or mime type strings). If this code is less than 32768, it is considered a 'registered' protocol extension and the corresponding entry should be added to https://github.com/mavlink/mavlink/definition_files/extension_message_ids.xml. Software creators can register blocks of message IDs as needed (useful for GCS specific metadata, etc...). Message_types greater than 32767 are considered local experiments and should not be checked in to any widely distributed codebase.
    14  	MessageType uint16
    15  	// Variable length payload. The length must be encoded in the payload as part of the message_type protocol, e.g. by including the length as payload data, or by terminating the payload data with a non-zero marker. This is required in order to reconstruct zero-terminated payloads that are (or otherwise would be) trimmed by MAVLink 2 empty-byte truncation. The entire content of the payload block is opaque unless you understand the encoding message_type. The particular encoding used can be extension specific and might not always be documented as part of the MAVLink specification.
    16  	Payload [249]uint8
    17  }
    18  
    19  // GetID implements the message.Message interface.
    20  func (*MessageV2Extension) GetID() uint32 {
    21  	return 248
    22  }