serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint16(0, chan1Raw, Endian.little);
  data_.setUint16(2, chan2Raw, Endian.little);
  data_.setUint16(4, chan3Raw, Endian.little);
  data_.setUint16(6, chan4Raw, Endian.little);
  data_.setUint16(8, chan5Raw, Endian.little);
  data_.setUint16(10, chan6Raw, Endian.little);
  data_.setUint16(12, chan7Raw, Endian.little);
  data_.setUint16(14, chan8Raw, Endian.little);
  data_.setUint8(16, targetSystem);
  data_.setUint8(17, targetComponent);
  data_.setUint16(18, chan9Raw, Endian.little);
  data_.setUint16(20, chan10Raw, Endian.little);
  data_.setUint16(22, chan11Raw, Endian.little);
  data_.setUint16(24, chan12Raw, Endian.little);
  data_.setUint16(26, chan13Raw, Endian.little);
  data_.setUint16(28, chan14Raw, Endian.little);
  data_.setUint16(30, chan15Raw, Endian.little);
  data_.setUint16(32, chan16Raw, Endian.little);
  data_.setUint16(34, chan17Raw, Endian.little);
  data_.setUint16(36, chan18Raw, Endian.little);
  return data_;
}