serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  MavlinkMessage.setFloat32List(data_, 0, q);
  data_.setFloat32(16, angularVelocityX, Endian.little);
  data_.setFloat32(20, angularVelocityY, Endian.little);
  data_.setFloat32(24, angularVelocityZ, Endian.little);
  data_.setUint16(28, flags, Endian.little);
  data_.setUint8(30, targetSystem);
  data_.setUint8(31, targetComponent);
  return data_;
}