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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // Request to read the onboard parameter with the param_id string id. Onboard parameters are stored as key[const char*] -> value[float]. This allows to send a parameter to any other component (such as the GCS) without the need of previous knowledge of possible parameter names. Thus the same GCS can store different parameters for different autopilots. See also https://mavlink.io/en/services/parameter.html for a full documentation of QGroundControl and IMU code.
     6  type MessageParamRequestRead struct {
     7  	// System ID
     8  	TargetSystem uint8
     9  	// Component ID
    10  	TargetComponent uint8
    11  	// Onboard 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
    12  	ParamId string `mavlen:"16"`
    13  	// Parameter index. Send -1 to use the param ID field as identifier (else the param id will be ignored)
    14  	ParamIndex int16
    15  }
    16  
    17  // GetID implements the message.Message interface.
    18  func (*MessageParamRequestRead) GetID() uint32 {
    19  	return 20
    20  }