serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint32(0, sueTime, Endian.little);
  data_.setInt32(4, sueLatitude, Endian.little);
  data_.setInt32(8, sueLongitude, Endian.little);
  data_.setInt32(12, sueAltitude, Endian.little);
  data_.setUint16(16, sueWaypointIndex, Endian.little);
  data_.setInt16(18, sueRmat0, Endian.little);
  data_.setInt16(20, sueRmat1, Endian.little);
  data_.setInt16(22, sueRmat2, Endian.little);
  data_.setInt16(24, sueRmat3, Endian.little);
  data_.setInt16(26, sueRmat4, Endian.little);
  data_.setInt16(28, sueRmat5, Endian.little);
  data_.setInt16(30, sueRmat6, Endian.little);
  data_.setInt16(32, sueRmat7, Endian.little);
  data_.setInt16(34, sueRmat8, Endian.little);
  data_.setUint16(36, sueCog, Endian.little);
  data_.setInt16(38, sueSog, Endian.little);
  data_.setUint16(40, sueCpuLoad, Endian.little);
  data_.setUint16(42, sueAirSpeed3dimu, Endian.little);
  data_.setInt16(44, sueEstimatedWind0, Endian.little);
  data_.setInt16(46, sueEstimatedWind1, Endian.little);
  data_.setInt16(48, sueEstimatedWind2, Endian.little);
  data_.setInt16(50, sueMagfieldearth0, Endian.little);
  data_.setInt16(52, sueMagfieldearth1, Endian.little);
  data_.setInt16(54, sueMagfieldearth2, Endian.little);
  data_.setInt16(56, sueSvs, Endian.little);
  data_.setInt16(58, sueHdop, Endian.little);
  data_.setUint8(60, sueStatus);
  return data_;
}