serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timestamp, Endian.little);
  data_.setUint64(8, timestampmodechanged, Endian.little);
  data_.setFloat32(16, xw, Endian.little);
  data_.setFloat32(20, xr, Endian.little);
  data_.setFloat32(24, xlat, Endian.little);
  data_.setFloat32(28, xlon, Endian.little);
  data_.setFloat32(32, varw, Endian.little);
  data_.setFloat32(36, varr, Endian.little);
  data_.setFloat32(40, varlat, Endian.little);
  data_.setFloat32(44, varlon, Endian.little);
  data_.setFloat32(48, loiterradius, Endian.little);
  data_.setFloat32(52, loiterdirection, Endian.little);
  data_.setFloat32(56, disttosoarpoint, Endian.little);
  data_.setFloat32(60, vsinkexp, Endian.little);
  data_.setFloat32(64, z1Localupdraftspeed, Endian.little);
  data_.setFloat32(68, z2Deltaroll, Endian.little);
  data_.setFloat32(72, z1Exp, Endian.little);
  data_.setFloat32(76, z2Exp, Endian.little);
  data_.setFloat32(80, thermalgsnorth, Endian.little);
  data_.setFloat32(84, thermalgseast, Endian.little);
  data_.setFloat32(88, tseDot, Endian.little);
  data_.setFloat32(92, debugvar1, Endian.little);
  data_.setFloat32(96, debugvar2, Endian.little);
  data_.setUint8(100, controlmode);
  data_.setUint8(101, valid);
  return data_;
}