serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, requestId, Endian.little);
  data_.setFloat32(4, minValue, Endian.little);
  data_.setFloat32(8, maxValue, Endian.little);
  data_.setFloat32(12, increment, Endian.little);
  data_.setUint8(16, targetSystem);
  data_.setUint8(17, targetComponent);
  data_.setUint8(18, osdScreen);
  data_.setUint8(19, osdIndex);
  MavlinkMessage.setInt8List(data_, 20, paramId);
  data_.setUint8(36, configType);
  return data_;
}