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_.setInt32(16, x, Endian.little);
  data_.setInt32(20, y, Endian.little);
  data_.setFloat32(24, z, Endian.little);
  data_.setUint16(28, command, Endian.little);
  data_.setUint8(30, targetSystem);
  data_.setUint8(31, targetComponent);
  data_.setUint8(32, frame);
  data_.setUint8(33, current);
  data_.setUint8(34, autocontinue);
  return data_;
}