serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, timeBootMs, Endian.little);
  MavlinkMessage.setFloat32List(data_, 4, q);
  data_.setFloat32(20, bodyRollRate, Endian.little);
  data_.setFloat32(24, bodyPitchRate, Endian.little);
  data_.setFloat32(28, bodyYawRate, Endian.little);
  data_.setFloat32(32, thrust, Endian.little);
  data_.setUint8(36, targetSystem);
  data_.setUint8(37, targetComponent);
  data_.setUint8(38, typeMask);
  MavlinkMessage.setFloat32List(data_, 39, thrustBody);
  return data_;
}