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, param5, Endian.little);
  data_.setFloat32(20, param6, Endian.little);
  data_.setFloat32(24, param7, Endian.little);
  data_.setUint16(28, command, Endian.little);
  data_.setUint8(30, targetSystem);
  data_.setUint8(31, targetComponent);
  data_.setUint8(32, confirmation);
  return data_;
}