serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, param1, Endian.little);
  data_.setFloat32(4, param2, Endian.little);
  data_.setFloat32(8, param3, Endian.little);
  data_.setFloat32(12, param4, Endian.little);
  data_.setFloat32(16, x, Endian.little);
  data_.setFloat32(20, y, Endian.little);
  data_.setFloat32(24, z, Endian.little);
  data_.setUint16(28, seq, Endian.little);
  data_.setUint16(30, command, Endian.little);
  data_.setUint8(32, targetSystem);
  data_.setUint8(33, targetComponent);
  data_.setUint8(34, frame);
  data_.setUint8(35, current);
  data_.setUint8(36, autocontinue);
  data_.setUint8(37, missionType);
  return data_;
}