serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setUint32(8, uptimeSec, Endian.little);
  data_.setUint32(12, swVcsCommit, Endian.little);
  MavlinkMessage.setInt8List(data_, 16, name);
  data_.setUint8(96, hwVersionMajor);
  data_.setUint8(97, hwVersionMinor);
  MavlinkMessage.setUint8List(data_, 98, hwUniqueId);
  data_.setUint8(114, swVersionMajor);
  data_.setUint8(115, swVersionMinor);
  return data_;
}