serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setUint32(8, timeWeekMs, Endian.little);
  data_.setInt32(12, lat, Endian.little);
  data_.setInt32(16, lon, Endian.little);
  data_.setFloat32(20, alt, Endian.little);
  data_.setFloat32(24, hdop, Endian.little);
  data_.setFloat32(28, vdop, Endian.little);
  data_.setFloat32(32, vn, Endian.little);
  data_.setFloat32(36, ve, Endian.little);
  data_.setFloat32(40, vd, Endian.little);
  data_.setFloat32(44, speedAccuracy, Endian.little);
  data_.setFloat32(48, horizAccuracy, Endian.little);
  data_.setFloat32(52, vertAccuracy, Endian.little);
  data_.setUint16(56, ignoreFlags, Endian.little);
  data_.setUint16(58, timeWeek, Endian.little);
  data_.setUint8(60, gpsId);
  data_.setUint8(61, fixType);
  data_.setUint8(62, satellitesVisible);
  data_.setUint16(63, yaw, Endian.little);
  return data_;
}