serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setInt16(0, magOfsX, Endian.little);
  data_.setInt16(2, magOfsY, Endian.little);
  data_.setInt16(4, magOfsZ, Endian.little);
  data_.setUint8(6, targetSystem);
  data_.setUint8(7, targetComponent);
  return data_;
}