Example #1
0
        public IRacingConnection(HostWindow window, DisplayConnection displayConnection)
        {
            this.hostWindow        = window;
            this.displayConnection = displayConnection;

            wrapper = new SdkWrapper();
            wrapper.TelemetryUpdated   += OnTelemetryUpdated;
            wrapper.SessionInfoUpdated += OnSessionInfoUpdated;
            wrapper.Connected          += OnWrapperConnected;
            wrapper.Disconnected       += OnWrapperDisconnected;
        }
Example #2
0
        public SDKManager(HostWindow hostWindow, DataParser dataParser)
        {
            this.hostWindow = hostWindow;
            this.dataParser = dataParser;

            wrapper = new SdkWrapper();
            wrapper.TelemetryUpdateFrequency = 10;
            wrapper.TelemetryUpdated        += OnTelemetryUpdated;
            wrapper.SessionInfoUpdated      += OnSessionInfoUpdated;
            wrapper.Connected    += OnWrapperConnected;
            wrapper.Disconnected += OnWrapperDisconnected;
        }
 public TelemetryCsvWriter()
 {
     wrapper = new SdkWrapper();
     wrapper.TelemetryUpdated += wrapper_TelemetryUpdated;
 }