serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, flags, Endian.little);
  data_.setFloat32(4, pitch, Endian.little);
  data_.setFloat32(8, yaw, Endian.little);
  data_.setFloat32(12, pitchRate, Endian.little);
  data_.setFloat32(16, yawRate, Endian.little);
  data_.setUint8(20, targetSystem);
  data_.setUint8(21, targetComponent);
  data_.setUint8(22, gimbalDeviceId);
  return data_;
}