serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, deltaTime, Endian.little);
  data_.setFloat32(4, deltaAngleX, Endian.little);
  data_.setFloat32(8, deltaAngleY, Endian.little);
  data_.setFloat32(12, deltaAngleZ, Endian.little);
  data_.setFloat32(16, deltaVelocityX, Endian.little);
  data_.setFloat32(20, deltaVelocityY, Endian.little);
  data_.setFloat32(24, deltaVelocityZ, Endian.little);
  data_.setFloat32(28, jointRoll, Endian.little);
  data_.setFloat32(32, jointEl, Endian.little);
  data_.setFloat32(36, jointAz, Endian.little);
  data_.setUint8(40, targetSystem);
  data_.setUint8(41, targetComponent);
  return data_;
}