serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setUint32(8, uptime, Endian.little);
  data_.setUint32(12, ramUsage, Endian.little);
  data_.setUint32(16, ramTotal, Endian.little);
  MavlinkMessage.setUint32List(data_, 20, storageType);
  MavlinkMessage.setUint32List(data_, 36, storageUsage);
  MavlinkMessage.setUint32List(data_, 52, storageTotal);
  MavlinkMessage.setUint32List(data_, 68, linkType);
  MavlinkMessage.setUint32List(data_, 92, linkTxRate);
  MavlinkMessage.setUint32List(data_, 116, linkRxRate);
  MavlinkMessage.setUint32List(data_, 140, linkTxMax);
  MavlinkMessage.setUint32List(data_, 164, linkRxMax);
  MavlinkMessage.setInt16List(data_, 188, fanSpeed);
  data_.setUint8(196, type);
  MavlinkMessage.setUint8List(data_, 197, cpuCores);
  MavlinkMessage.setUint8List(data_, 205, cpuCombined);
  MavlinkMessage.setUint8List(data_, 215, gpuCores);
  MavlinkMessage.setUint8List(data_, 219, gpuCombined);
  data_.setInt8(229, temperatureBoard);
  MavlinkMessage.setInt8List(data_, 230, temperatureCore);
  return data_;
}