Open TwinFan opened 4 years ago
The TCAS Concentrator functionality has been made available in the XPMP2 Remote Client (see issue #22). The architecture used is quite different from what has been considered here. All communication is via UDP Multicast, ie. the network, instead of local dataRefs. While this might be a little slower it has the advantage that less activity is going on during the flight loop and local network transfer (via the loopback interface) is actually quite fast, too.
So for the moment, the enhancement is considered implemented and available. Will see how it is received in the public after publishing the XPMP2 Remote Client.
Current Situation / Problem Only one X-Plane plugin can take control of TCAS targets at a time. This is a X-Plane design limitation. See Overriding TCAS and XPLMAcquirePlanes.
Suggested Solution A separate plugin, a TCAS concentrator, acts as kind of a proxy in that it is the plugin to actually have control of X-Plane's TCAS targets, receives plane positions from collaborating plugins which draw planes (like LiveTraffic, xPilot and the like), orders these planes by distance and forwards the first 63 to X-Plane's TCAS target system.
Design Approach
Collaborating Plugin
TCAS Concentrator
size
fieldXPMP2
XPMPMultiplayerEnable
shouldBenefits The planes of more than one multiplayer plugin can appear on TCAS systems and can be made available to 3rd party plugins reading this data (like map or camera tools).
Additional context The idea has also been formulated by Kuroneko.