serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, rfFreq, Endian.little);
  data_.setUint32(4, linkBw, Endian.little);
  data_.setUint32(8, linkRate, Endian.little);
  data_.setInt16(12, snr, Endian.little);
  data_.setInt16(14, cpuTemp, Endian.little);
  data_.setInt16(16, boardTemp, Endian.little);
  data_.setUint8(18, rssi);
  return data_;
}