serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setInt32(8, lat, Endian.little);
  data_.setInt32(12, lon, Endian.little);
  data_.setInt32(16, alt, Endian.little);
  data_.setUint32(20, dgpsAge, Endian.little);
  data_.setUint16(24, eph, Endian.little);
  data_.setUint16(26, epv, Endian.little);
  data_.setUint16(28, vel, Endian.little);
  data_.setUint16(30, cog, Endian.little);
  data_.setUint8(32, fixType);
  data_.setUint8(33, satellitesVisible);
  data_.setUint8(34, dgpsNumch);
  data_.setUint16(35, yaw, Endian.little);
  data_.setInt32(37, altEllipsoid, Endian.little);
  data_.setUint32(41, hAcc, Endian.little);
  data_.setUint32(45, vAcc, Endian.little);
  data_.setUint32(49, velAcc, Endian.little);
  data_.setUint32(53, hdgAcc, Endian.little);
  return data_;
}