serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint16(0, funcIndex, Endian.little);
  data_.setUint16(2, funcCount, Endian.little);
  data_.setUint16(4, dataAddress, Endian.little);
  data_.setUint16(6, dataSize, Endian.little);
  data_.setUint8(8, targetSystem);
  data_.setUint8(9, targetComponent);
  MavlinkMessage.setInt8List(data_, 10, data);
  return data_;
}