serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setFloat32(8, vibrationX, Endian.little);
  data_.setFloat32(12, vibrationY, Endian.little);
  data_.setFloat32(16, vibrationZ, Endian.little);
  data_.setUint32(20, clipping0, Endian.little);
  data_.setUint32(24, clipping1, Endian.little);
  data_.setUint32(28, clipping2, Endian.little);
  return data_;
}