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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // Handshake message to initiate, control and stop image streaming when using the Image Transmission Protocol: https://mavlink.io/en/services/image_transmission.html.
     6  type MessageDataTransmissionHandshake struct {
     7  	// Type of requested/acknowledged data.
     8  	Type MAVLINK_DATA_STREAM_TYPE `mavenum:"uint8"`
     9  	// total data size (set on ACK only).
    10  	Size uint32
    11  	// Width of a matrix or image.
    12  	Width uint16
    13  	// Height of a matrix or image.
    14  	Height uint16
    15  	// Number of packets being sent (set on ACK only).
    16  	Packets uint16
    17  	// Payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only).
    18  	Payload uint8
    19  	// JPEG quality. Values: [1-100].
    20  	JpgQuality uint8
    21  }
    22  
    23  // GetID implements the message.Message interface.
    24  func (*MessageDataTransmissionHandshake) GetID() uint32 {
    25  	return 130
    26  }