serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, flags, Endian.little);
  MavlinkMessage.setFloat32List(data_, 4, q);
  data_.setFloat32(20, angularVelocityX, Endian.little);
  data_.setFloat32(24, angularVelocityY, Endian.little);
  data_.setFloat32(28, angularVelocityZ, Endian.little);
  data_.setUint8(32, targetSystem);
  data_.setUint8(33, targetComponent);
  data_.setUint8(34, gimbalDeviceId);
  return data_;
}