serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setUint64(0, timeUsec, Endian.little);
  data_.setFloat32(8, velRatio, Endian.little);
  data_.setFloat32(12, posHorizRatio, Endian.little);
  data_.setFloat32(16, posVertRatio, Endian.little);
  data_.setFloat32(20, magRatio, Endian.little);
  data_.setFloat32(24, haglRatio, Endian.little);
  data_.setFloat32(28, tasRatio, Endian.little);
  data_.setFloat32(32, posHorizAccuracy, Endian.little);
  data_.setFloat32(36, posVertAccuracy, Endian.little);
  data_.setUint16(40, flags, Endian.little);
  return data_;
}