serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setFloat32(0, velocityVariance, Endian.little);
  data_.setFloat32(4, posHorizVariance, Endian.little);
  data_.setFloat32(8, posVertVariance, Endian.little);
  data_.setFloat32(12, compassVariance, Endian.little);
  data_.setFloat32(16, terrainAltVariance, Endian.little);
  data_.setUint16(20, flags, Endian.little);
  data_.setFloat32(22, airspeedVariance, Endian.little);
  return data_;
}