serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timestamp, Endian.little);
  data_.setUint32(8, txRate, Endian.little);
  data_.setUint32(12, rxRate, Endian.little);
  data_.setUint32(16, messagesSent, Endian.little);
  data_.setUint32(20, messagesReceived, Endian.little);
  data_.setUint32(24, messagesLost, Endian.little);
  data_.setUint16(28, rxParseErr, Endian.little);
  data_.setUint16(30, txOverflows, Endian.little);
  data_.setUint16(32, rxOverflows, Endian.little);
  data_.setUint8(34, txBuf);
  data_.setUint8(35, rxBuf);
  return data_;
}