serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setFloat32(8, majorRadius, Endian.little);
  data_.setFloat32(12, minorRadius, Endian.little);
  data_.setFloat32(16, orientation, Endian.little);
  data_.setInt32(20, x, Endian.little);
  data_.setInt32(24, y, Endian.little);
  data_.setFloat32(28, z, Endian.little);
  data_.setUint8(32, frame);
  return data_;
}