serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint16(0, version, Endian.little);
  data_.setUint16(2, minVersion, Endian.little);
  data_.setUint16(4, maxVersion, Endian.little);
  MavlinkMessage.setUint8List(data_, 6, specVersionHash);
  MavlinkMessage.setUint8List(data_, 14, libraryVersionHash);
  return data_;
}