github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_serial_control.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package common 4 5 // Control a serial port. This can be used for raw access to an onboard serial peripheral such as a GPS or telemetry radio. It is designed to make it possible to update the devices firmware via MAVLink messages or change the devices settings. A message with zero bytes can be used to change just the baudrate. 6 type MessageSerialControl struct { 7 // Serial control device type. 8 Device SERIAL_CONTROL_DEV `mavenum:"uint8"` 9 // Bitmap of serial control flags. 10 Flags SERIAL_CONTROL_FLAG `mavenum:"uint8"` 11 // Timeout for reply data 12 Timeout uint16 13 // Baudrate of transfer. Zero means no change. 14 Baudrate uint32 15 // how many bytes in this transfer 16 Count uint8 17 // serial data 18 Data [70]uint8 19 // System ID 20 TargetSystem uint8 `mavext:"true"` 21 // Component ID 22 TargetComponent uint8 `mavext:"true"` 23 } 24 25 // GetID implements the message.Message interface. 26 func (*MessageSerialControl) GetID() uint32 { 27 return 126 28 }