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, operatorAltitudeGeo, Endian.little);
  data_.setUint32(12, timestamp, Endian.little);
  data_.setUint8(16, targetSystem);
  data_.setUint8(17, targetComponent);
  return data_;
}