serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, sueTrapSource, Endian.little);
  data_.setInt16(4, sueRcon, Endian.little);
  data_.setInt16(6, sueTrapFlags, Endian.little);
  data_.setInt16(8, sueOscFailCount, Endian.little);
  data_.setUint8(10, sueWindEstimation);
  data_.setUint8(11, sueGpsType);
  data_.setUint8(12, sueDr);
  data_.setUint8(13, sueBoardType);
  data_.setUint8(14, sueAirframe);
  data_.setUint8(15, sueClockConfig);
  data_.setUint8(16, sueFlightPlanType);
  return data_;
}