serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint8(0, flags);
  data_.setUint8(1, rxLq);
  data_.setUint8(2, rxRssi1);
  data_.setInt8(3, rxSnr1);
  data_.setUint8(4, rxRssi2);
  data_.setInt8(5, rxSnr2);
  data_.setUint8(6, rxReceiveAntenna);
  data_.setUint8(7, rxTransmitAntenna);
  data_.setUint8(8, txLq);
  data_.setUint8(9, txRssi1);
  data_.setInt8(10, txSnr1);
  data_.setUint8(11, txRssi2);
  data_.setInt8(12, txSnr2);
  data_.setUint8(13, txReceiveAntenna);
  data_.setUint8(14, txTransmitAntenna);
  return data_;
}