serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timestamp, Endian.little);
  data_.setUint8(4, targetSystem);
  data_.setUint8(5, targetComponent);
  MavlinkMessage.setUint8List(data_, 6, idOrMac);
  data_.setUint8(26, authenticationType);
  data_.setUint8(27, dataPage);
  data_.setUint8(28, lastPageIndex);
  data_.setUint8(29, length);
  MavlinkMessage.setUint8List(data_, 30, authenticationData);
  return data_;
}