serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint8(0, targetSystem);
  data_.setUint8(1, targetComponent);
  data_.setUint8(2, instance);
  data_.setUint8(3, pattern);
  data_.setUint8(4, customLen);
  MavlinkMessage.setUint8List(data_, 5, customBytes);
  return data_;
}