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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // RTCM message for injecting into the onboard GPS (used for DGPS)
     6  type MessageGpsRtcmData struct {
     7  	// LSB: 1 means message is fragmented, next 2 bits are the fragment ID, the remaining 5 bits are used for the sequence ID. Messages are only to be flushed to the GPS when the entire message has been reconstructed on the autopilot. The fragment ID specifies which order the fragments should be assembled into a buffer, while the sequence ID is used to detect a mismatch between different buffers. The buffer is considered fully reconstructed when either all 4 fragments are present, or all the fragments before the first fragment with a non full payload is received. This management is used to ensure that normal GPS operation doesn't corrupt RTCM data, and to recover from a unreliable transport delivery order.
     8  	Flags uint8
     9  	// data length
    10  	Len uint8
    11  	// RTCM message (may be fragmented)
    12  	Data [180]uint8
    13  }
    14  
    15  // GetID implements the message.Message interface.
    16  func (*MessageGpsRtcmData) GetID() uint32 {
    17  	return 233
    18  }