ParamExtSet.parse constructor
ParamExtSet.parse(
- ByteData data_
Implementation
factory ParamExtSet.parse(ByteData data_) {
if (data_.lengthInBytes < ParamExtSet.mavlinkEncodedLength) {
var len = ParamExtSet.mavlinkEncodedLength - data_.lengthInBytes;
var d = data_.buffer.asUint8List() + List<int>.filled(len, 0);
data_ = Uint8List.fromList(d).buffer.asByteData();
}
var targetSystem = data_.getUint8(0);
var targetComponent = data_.getUint8(1);
var paramId = MavlinkMessage.asInt8List(data_, 2, 16);
var paramValue = MavlinkMessage.asInt8List(data_, 18, 128);
var paramType = data_.getUint8(146);
return ParamExtSet(
targetSystem: targetSystem,
targetComponent: targetComponent,
paramId: paramId,
paramValue: paramValue,
paramType: paramType);
}