github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_ping.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package common 4 5 // A ping message either requesting or responding to a ping. This allows to measure the system latencies, including serial port, radio modem and UDP connections. The ping microservice is documented at https://mavlink.io/en/services/ping.html 6 type MessagePing struct { 7 // Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. 8 TimeUsec uint64 9 // PING sequence 10 Seq uint32 11 // 0: request ping from all receiving systems. If greater than 0: message is a ping response and number is the system id of the requesting system 12 TargetSystem uint8 13 // 0: request ping from all receiving components. If greater than 0: message is a ping response and number is the component id of the requesting component. 14 TargetComponent uint8 15 } 16 17 // GetID implements the message.Message interface. 18 func (*MessagePing) GetID() uint32 { 19 return 4 20 }