serialize method

  1. @override
ByteData serialize()
override

Implementation

@override
ByteData serialize() {
  var data_ = ByteData(mavlinkEncodedLength);
  data_.setInt32(0, operatorLatitude, Endian.little);
  data_.setInt32(4, operatorLongitude, Endian.little);
  data_.setFloat32(8, areaCeiling, Endian.little);
  data_.setFloat32(12, areaFloor, Endian.little);
  data_.setFloat32(16, operatorAltitudeGeo, Endian.little);
  data_.setUint32(20, timestamp, Endian.little);
  data_.setUint16(24, areaCount, Endian.little);
  data_.setUint16(26, areaRadius, Endian.little);
  data_.setUint8(28, targetSystem);
  data_.setUint8(29, targetComponent);
  MavlinkMessage.setUint8List(data_, 30, idOrMac);
  data_.setUint8(50, operatorLocationType);
  data_.setUint8(51, classificationType);
  data_.setUint8(52, categoryEu);
  data_.setUint8(53, classEu);
  return data_;
}