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_.setInt32(20, relativeAlt, Endian.little);
  data_.setFloat32(24, vx, Endian.little);
  data_.setFloat32(28, vy, Endian.little);
  data_.setFloat32(32, vz, Endian.little);
  MavlinkMessage.setFloat32List(data_, 36, covariance);
  data_.setUint8(180, estimatorType);
  return data_;
}