serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timestamp, Endian.little);
  data_.setUint16(8, freeSpace, Endian.little);
  data_.setUint8(10, visensorRate1);
  data_.setUint8(11, visensorRate2);
  data_.setUint8(12, visensorRate3);
  data_.setUint8(13, visensorRate4);
  data_.setUint8(14, recordingNodesCount);
  data_.setUint8(15, cpuTemp);
  return data_;
}