serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setInt32(0, lat, Endian.little);
  data_.setInt32(4, lon, Endian.little);
  data_.setFloat32(8, terrainHeight, Endian.little);
  data_.setFloat32(12, currentHeight, Endian.little);
  data_.setUint16(16, spacing, Endian.little);
  data_.setUint16(18, pending, Endian.little);
  data_.setUint16(20, loaded, Endian.little);
  return data_;
}