github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_param_map_rc.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package common 4 5 // Bind a RC channel to a parameter. The parameter should change according to the RC channel value. 6 type MessageParamMapRc 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), send -2 to disable any existing map for this rc_channel_index. 14 ParamIndex int16 15 // Index of parameter RC channel. Not equal to the RC channel id. Typically corresponds to a potentiometer-knob on the RC. 16 ParameterRcChannelIndex uint8 17 // Initial parameter value 18 ParamValue0 float32 19 // Scale, maps the RC range [-1, 1] to a parameter value 20 Scale float32 21 // Minimum param value. The protocol does not define if this overwrites an onboard minimum value. (Depends on implementation) 22 ParamValueMin float32 23 // Maximum param value. The protocol does not define if this overwrites an onboard maximum value. (Depends on implementation) 24 ParamValueMax float32 25 } 26 27 // GetID implements the message.Message interface. 28 func (*MessageParamMapRc) GetID() uint32 { 29 return 50 30 }