serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timeBootMs, Endian.little);
  data_.setFloat32(4, x, Endian.little);
  data_.setFloat32(8, y, Endian.little);
  data_.setFloat32(12, z, Endian.little);
  data_.setFloat32(16, vx, Endian.little);
  data_.setFloat32(20, vy, Endian.little);
  data_.setFloat32(24, vz, Endian.little);
  data_.setFloat32(28, afx, Endian.little);
  data_.setFloat32(32, afy, Endian.little);
  data_.setFloat32(36, afz, Endian.little);
  data_.setFloat32(40, yaw, Endian.little);
  data_.setFloat32(44, yawRate, Endian.little);
  data_.setUint16(48, typeMask, Endian.little);
  data_.setUint8(50, targetSystem);
  data_.setUint8(51, targetComponent);
  data_.setUint8(52, coordinateFrame);
  return data_;
}