ParamMapRc class

Bind a RC channel to a parameter. The parameter should change according to the RC channel value.

PARAM_MAP_RC

Implemented types

Constructors

ParamMapRc({required float paramValue0, required float scale, required float paramValueMin, required float paramValueMax, required int16_t paramIndex, required uint8_t targetSystem, required uint8_t targetComponent, required List<char> paramId, required uint8_t parameterRcChannelIndex})
ParamMapRc.parse(ByteData data_)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
parameterRcChannelIndex uint8_t
Index of parameter RC channel. Not equal to the RC channel id. Typically corresponds to a potentiometer-knob on the RC.
final
paramId List<char>
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
final
paramIndex int16_t
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.
final
paramValue0 float
Initial parameter value
final
paramValueMax float
Maximum param value. The protocol does not define if this overwrites an onboard maximum value. (Depends on implementation)
final
paramValueMin float
Minimum param value. The protocol does not define if this overwrites an onboard minimum value. (Depends on implementation)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale float
Scale, maps the RC range -1, 1 to a parameter value
final
targetComponent uint8_t
Component ID
final
targetSystem uint8_t
System ID
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() ByteData
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

mavlinkEncodedLength → const int