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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // The interval between messages for a particular MAVLink message ID.
     6  // This message is sent in response to the MAV_CMD_REQUEST_MESSAGE command with param1=244 (this message) and param2=message_id (the id of the message for which the interval is required).
     7  // It may also be sent in response to MAV_CMD_GET_MESSAGE_INTERVAL.
     8  // This interface replaces DATA_STREAM.
     9  type MessageMessageInterval struct {
    10  	// The ID of the requested MAVLink message. v1.0 is limited to 254 messages.
    11  	MessageId uint16
    12  	// The interval between two messages. A value of -1 indicates this stream is disabled, 0 indicates it is not available, > 0 indicates the interval at which it is sent.
    13  	IntervalUs int32
    14  }
    15  
    16  // GetID implements the message.Message interface.
    17  func (*MessageMessageInterval) GetID() uint32 {
    18  	return 244
    19  }