serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setInt16(0, x, Endian.little);
  data_.setInt16(2, y, Endian.little);
  data_.setInt16(4, z, Endian.little);
  data_.setInt16(6, r, Endian.little);
  data_.setUint16(8, buttons, Endian.little);
  data_.setUint8(10, target);
  data_.setUint16(11, buttons2, Endian.little);
  data_.setUint8(13, enabledExtensions);
  data_.setInt16(14, s, Endian.little);
  data_.setInt16(16, t, Endian.little);
  data_.setInt16(18, aux1, Endian.little);
  data_.setInt16(20, aux2, Endian.little);
  data_.setInt16(22, aux3, Endian.little);
  data_.setInt16(24, aux4, Endian.little);
  data_.setInt16(26, aux5, Endian.little);
  data_.setInt16(28, aux6, Endian.little);
  return data_;
}