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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // Emit the value of a parameter. The inclusion of param_count and param_index in the message allows the recipient to keep track of received parameters and allows them to re-request missing parameters after a loss or timeout.
     6  type MessageParamExtValue struct {
     7  	// Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
     8  	ParamId string `mavlen:"16"`
     9  	// Parameter value
    10  	ParamValue string `mavlen:"128"`
    11  	// Parameter type.
    12  	ParamType MAV_PARAM_EXT_TYPE `mavenum:"uint8"`
    13  	// Total number of parameters
    14  	ParamCount uint16
    15  	// Index of this parameter
    16  	ParamIndex uint16
    17  }
    18  
    19  // GetID implements the message.Message interface.
    20  func (*MessageParamExtValue) GetID() uint32 {
    21  	return 322
    22  }