serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, capabilities, Endian.little);
  data_.setUint32(8, timeBootMs, Endian.little);
  data_.setUint32(12, timeManufactureS, Endian.little);
  MavlinkMessage.setInt8List(data_, 16, vendorName);
  MavlinkMessage.setInt8List(data_, 48, modelName);
  MavlinkMessage.setInt8List(data_, 80, softwareVersion);
  MavlinkMessage.setInt8List(data_, 104, hardwareVersion);
  MavlinkMessage.setInt8List(data_, 128, serialNumber);
  return data_;
}