serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeBootUs, Endian.little);
  MavlinkMessage.setFloat32List(data_, 8, q);
  data_.setUint32(24, qEstimatedDelayUs, Endian.little);
  data_.setFloat32(28, vx, Endian.little);
  data_.setFloat32(32, vy, Endian.little);
  data_.setFloat32(36, vz, Endian.little);
  data_.setUint32(40, vEstimatedDelayUs, Endian.little);
  data_.setFloat32(44, feedForwardAngularVelocityZ, Endian.little);
  data_.setUint16(48, estimatorStatus, Endian.little);
  data_.setUint8(50, targetSystem);
  data_.setUint8(51, targetComponent);
  data_.setUint8(52, landedState);
  data_.setFloat32(53, angularVelocityZ, Endian.little);
  return data_;
}