serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, desired, Endian.little);
  data_.setFloat32(4, achieved, Endian.little);
  data_.setFloat32(8, error, Endian.little);
  data_.setFloat32(12, theta, Endian.little);
  data_.setFloat32(16, omega, Endian.little);
  data_.setFloat32(20, sigma, Endian.little);
  data_.setFloat32(24, thetaDot, Endian.little);
  data_.setFloat32(28, omegaDot, Endian.little);
  data_.setFloat32(32, sigmaDot, Endian.little);
  data_.setFloat32(36, f, Endian.little);
  data_.setFloat32(40, fDot, Endian.little);
  data_.setFloat32(44, u, Endian.little);
  data_.setUint8(48, axis);
  return data_;
}