serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, demandedRateX, Endian.little);
  data_.setFloat32(4, demandedRateY, Endian.little);
  data_.setFloat32(8, demandedRateZ, Endian.little);
  data_.setUint8(12, targetSystem);
  data_.setUint8(13, targetComponent);
  return data_;
}