serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, vehicleTimestamp, Endian.little);
  data_.setUint32(8, utcTime, Endian.little);
  data_.setFloat32(12, param1, Endian.little);
  data_.setFloat32(16, param2, Endian.little);
  data_.setFloat32(20, param3, Endian.little);
  data_.setFloat32(24, param4, Endian.little);
  data_.setFloat32(28, param5, Endian.little);
  data_.setFloat32(32, param6, Endian.little);
  data_.setFloat32(36, param7, Endian.little);
  data_.setUint16(40, command, Endian.little);
  data_.setUint8(42, targetSystem);
  data_.setUint8(43, targetComponent);
  data_.setUint8(44, confirmation);
  return data_;
}