public ReadOptimizedSocketTables(string serverIP, bool enableDebug = false, int updateRateMs = 100)
 {
     communication = new SocketTables(serverIP, enableDebug);
     loopSystem    = new Looper(updateRateMs, enableDebug);
     loopSystem.register(this);
     this.enableDebug = enableDebug;
 }
示例#2
0
    public Dictionary <string, double> refreshData(int frame)
    {
        switch (datamode)
        {
        case Mode.NetworkedUninit:
            robotTables = new SocketTables(socketTablesAddr);
            datamode    = Mode.Networked;
            goto case Mode.Networked;

        case Mode.Networked:

            break;

        case Mode.RecordingUninit:
            robotTables = new SocketTables(socketTablesAddr);
            recorder    = new DataRecorder(GameController.getInstance().SaveLocation, ".sav", recorderTimeout);
            datamode    = Mode.Recording;
            goto case Mode.Recording;

        case Mode.Recording:

            break;

        case Mode.PlaybackUninit:

            datamode = Mode.Playback;
            goto case Mode.Playback;

        case Mode.Playback:

            break;

        case Mode.Disconnected:

            break;
        }

        return(dataTable);
    }