serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, pointX, Endian.little);
  data_.setFloat32(4, pointY, Endian.little);
  data_.setFloat32(8, radius, Endian.little);
  data_.setFloat32(12, recTopX, Endian.little);
  data_.setFloat32(16, recTopY, Endian.little);
  data_.setFloat32(20, recBottomX, Endian.little);
  data_.setFloat32(24, recBottomY, Endian.little);
  data_.setUint8(28, trackingStatus);
  data_.setUint8(29, trackingMode);
  data_.setUint8(30, targetData);
  return data_;
}