serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timestamp, Endian.little);
  data_.setFloat32(8, h, Endian.little);
  data_.setFloat32(12, href, Endian.little);
  data_.setFloat32(16, hrefT, Endian.little);
  data_.setFloat32(20, pitchangle, Endian.little);
  data_.setFloat32(24, pitchangleref, Endian.little);
  data_.setFloat32(28, q, Endian.little);
  data_.setFloat32(32, qref, Endian.little);
  data_.setFloat32(36, uelev, Endian.little);
  data_.setFloat32(40, uthrot, Endian.little);
  data_.setFloat32(44, uthrot2, Endian.little);
  data_.setFloat32(48, nz, Endian.little);
  data_.setFloat32(52, airspeedref, Endian.little);
  data_.setFloat32(56, yawangle, Endian.little);
  data_.setFloat32(60, yawangleref, Endian.little);
  data_.setFloat32(64, rollangle, Endian.little);
  data_.setFloat32(68, rollangleref, Endian.little);
  data_.setFloat32(72, p, Endian.little);
  data_.setFloat32(76, pref, Endian.little);
  data_.setFloat32(80, r, Endian.little);
  data_.setFloat32(84, rref, Endian.little);
  data_.setFloat32(88, uail, Endian.little);
  data_.setFloat32(92, urud, Endian.little);
  data_.setUint8(96, aslctrlMode);
  data_.setUint8(97, spoilersengaged);
  return data_;
}