serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, capabilities, Endian.little);
  data_.setUint64(8, uid, Endian.little);
  data_.setUint32(16, flightSwVersion, Endian.little);
  data_.setUint32(20, middlewareSwVersion, Endian.little);
  data_.setUint32(24, osSwVersion, Endian.little);
  data_.setUint32(28, boardVersion, Endian.little);
  data_.setUint16(32, vendorId, Endian.little);
  data_.setUint16(34, productId, Endian.little);
  MavlinkMessage.setUint8List(data_, 36, flightCustomVersion);
  MavlinkMessage.setUint8List(data_, 44, middlewareCustomVersion);
  MavlinkMessage.setUint8List(data_, 52, osCustomVersion);
  MavlinkMessage.setUint8List(data_, 60, uid2);
  return data_;
}