serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timeLastBaselineMs, Endian.little);
  data_.setUint32(4, tow, Endian.little);
  data_.setInt32(8, baselineAMm, Endian.little);
  data_.setInt32(12, baselineBMm, Endian.little);
  data_.setInt32(16, baselineCMm, Endian.little);
  data_.setUint32(20, accuracy, Endian.little);
  data_.setInt32(24, iarNumHypotheses, Endian.little);
  data_.setUint16(28, wn, Endian.little);
  data_.setUint8(30, rtkReceiverId);
  data_.setUint8(31, rtkHealth);
  data_.setUint8(32, rtkRate);
  data_.setUint8(33, nsats);
  data_.setUint8(34, baselineCoordsType);
  return data_;
}