serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setFloat32(8, flowCompMX, Endian.little);
  data_.setFloat32(12, flowCompMY, Endian.little);
  data_.setFloat32(16, groundDistance, Endian.little);
  data_.setInt16(20, flowX, Endian.little);
  data_.setInt16(22, flowY, Endian.little);
  data_.setUint8(24, sensorId);
  data_.setUint8(25, quality);
  data_.setFloat32(26, flowRateX, Endian.little);
  data_.setFloat32(30, flowRateY, Endian.little);
  return data_;
}