serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, p1x, Endian.little);
  data_.setFloat32(4, p1y, Endian.little);
  data_.setFloat32(8, p1z, Endian.little);
  data_.setFloat32(12, p2x, Endian.little);
  data_.setFloat32(16, p2y, Endian.little);
  data_.setFloat32(20, p2z, Endian.little);
  data_.setUint8(24, frame);
  return data_;
}