serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setFloat32(8, windX, Endian.little);
  data_.setFloat32(12, windY, Endian.little);
  data_.setFloat32(16, windZ, Endian.little);
  data_.setFloat32(20, varHoriz, Endian.little);
  data_.setFloat32(24, varVert, Endian.little);
  data_.setFloat32(28, windAlt, Endian.little);
  data_.setFloat32(32, horizAccuracy, Endian.little);
  data_.setFloat32(36, vertAccuracy, Endian.little);
  return data_;
}