serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timeBootMs, Endian.little);
  data_.setInt16(4, chan1Scaled, Endian.little);
  data_.setInt16(6, chan2Scaled, Endian.little);
  data_.setInt16(8, chan3Scaled, Endian.little);
  data_.setInt16(10, chan4Scaled, Endian.little);
  data_.setInt16(12, chan5Scaled, Endian.little);
  data_.setInt16(14, chan6Scaled, Endian.little);
  data_.setInt16(16, chan7Scaled, Endian.little);
  data_.setInt16(18, chan8Scaled, Endian.little);
  data_.setUint8(20, port);
  data_.setUint8(21, rssi);
  return data_;
}