serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timestamp, Endian.little);
  data_.setFloat32(8, windspeed, Endian.little);
  data_.setFloat32(12, winddir, Endian.little);
  data_.setFloat32(16, windz, Endian.little);
  data_.setFloat32(20, airspeed, Endian.little);
  data_.setFloat32(24, beta, Endian.little);
  data_.setFloat32(28, alpha, Endian.little);
  return data_;
}