github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/minimal/message_protocol_version.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package minimal 4 5 // Version and capability of protocol version. This message can be requested with MAV_CMD_REQUEST_MESSAGE and is used as part of the handshaking to establish which MAVLink version should be used on the network. Every node should respond to a request for PROTOCOL_VERSION to enable the handshaking. Library implementers should consider adding this into the default decoding state machine to allow the protocol core to respond directly. 6 type MessageProtocolVersion struct { 7 // Currently active MAVLink version number * 100: v1.0 is 100, v2.0 is 200, etc. 8 Version uint16 9 // Minimum MAVLink version supported 10 MinVersion uint16 11 // Maximum MAVLink version supported (set to the same value as version by default) 12 MaxVersion uint16 13 // The first 8 bytes (not characters printed in hex!) of the git hash. 14 SpecVersionHash [8]uint8 15 // The first 8 bytes (not characters printed in hex!) of the git hash. 16 LibraryVersionHash [8]uint8 17 } 18 19 // GetID implements the message.Message interface. 20 func (*MessageProtocolVersion) GetID() uint32 { 21 return 300 22 }