You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Include/DataRefs.h
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -476,6 +476,13 @@ enum SimTimeCtrlTy : int {
476
476
STC_SIM_TIME_PLUS_BUFFER, ///< Send current sim time plus buffering period, so that the traffic, when it appears, matches up with current sim time
477
477
};
478
478
479
+
/// Which amount of planes to send to ForeFlight?
480
+
enum TrafficToSendTy : int {
481
+
TTS_NONE = 0, ///< Don't send any traffic
482
+
TTS_ALL, ///< Send all known planes
483
+
TTS_NONTCAS_ONLY, ///< Send only planes that don't have a TCAS slot in X-Plane
484
+
};
485
+
479
486
/// How to control weather?
480
487
enum WeatherCtrlTy : int {
481
488
WC_INIT = -1, ///< Initial value when not available in config file, then a default is determined in first flight loop depending if XP is using real weather
@@ -746,7 +753,7 @@ class DataRefs
746
753
int ffListenPort = 63093; ///< UDP Port to listen to ForeFlight announcing itself, https://www.foreflight.com/connect/spec/
747
754
int ffSendPort = 49002; ///< UDP Port to send simulator data to ForeFlight, https://www.foreflight.com/support/network-gps/
748
755
int bffUserPlane = 1; // bool Send User plane data?
749
-
int bffTraffic = 1; // bool Send traffic data?
756
+
TrafficToSendTy ffTraffic=TTS_ALL; ///< Send traffic data? And which amount of traffic?
750
757
int ffSendTrfcIntvl = 3; // [s] interval to broadcast traffic info
751
758
752
759
vecCSLPaths vCSLPaths; // list of paths to search for CSL packages
0 commit comments