serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint16(0, seq, Endian.little);
  data_.setUint16(2, total, Endian.little);
  data_.setUint8(4, missionState);
  data_.setUint8(5, missionMode);
  data_.setUint32(6, missionId, Endian.little);
  data_.setUint32(10, fenceId, Endian.little);
  data_.setUint32(14, rallyPointsId, Endian.little);
  return data_;
}