public PhysicalSimulator(string typeTerrain)
        {
            switch (typeTerrain)
            {
            case "Cachan":
                LengthAireDeJeu = 8;
                WidthAireDeJeu  = 4;
                break;

            case "RoboCup":
                LengthAireDeJeu = 24;
                WidthAireDeJeu  = 16;
                break;

            default:
                break;
            }

            ballSimulatedList.TryAdd(0, new PhysicalBallSimulator(0, 0));
            //ballSimulatedList.Add(1, new PhysicalBallSimulator(3, 0));
            //ballSimulatedList.Add(2, new PhysicalBallSimulator(6, 0));


            highFrequencyTimer       = new HighFreqTimerV2(fSampling, "PhysicalSimulator");
            highFrequencyTimer.Tick += HighFrequencyTimer_Tick;
            highFrequencyTimer.Start();
        }
Example #2
0
 public LogReplay()
 {
     timerReplayV2.Tick += TimerReplay_Tick;
     timerReplayV2.Start();
     initialDateTime = DateTime.Now;
     sw = new Stopwatch();
     sw.Start();
 }
Example #3
0
 public LogRecorder()
 {
     timerLogging.Tick += TimerLogging_Tick;
     timerLogging.Start();
 }