public NoisyCartesianCoordinateSpotter(AudioPlayer audioPlayer, Boolean initialEnabledState, float carLength, float carWidth, float trackWidth, float maxClosingSpeed)
 {
     this.audioPlayer = audioPlayer;
     this.carLength = carLength;
     this.longCarLength = carLength + gapNeededForClear;
     this.carWidth = carWidth;
     this.trackWidth = trackWidth;
     this.maxClosingSpeed = maxClosingSpeed;
 }
Пример #2
0
 public CrewChief()
 {
     speechRecogniser = new SpeechRecogniser(this);
     audioPlayer = new AudioPlayer(this);
     audioPlayer.initialise();
     eventsList.Add("Timings", new Timings(audioPlayer));
     eventsList.Add("Position", new Position(audioPlayer));
     eventsList.Add("LapCounter", new LapCounter(audioPlayer));
     eventsList.Add("LapTimes", new LapTimes(audioPlayer));
     eventsList.Add("Penalties", new Penalties(audioPlayer));
     eventsList.Add("MandatoryPitStops", new MandatoryPitStops(audioPlayer));
     eventsList.Add("Fuel", new Fuel(audioPlayer));
     eventsList.Add("Opponents", new Opponents(audioPlayer));
     eventsList.Add("RaceTime", new RaceTime(audioPlayer));
     eventsList.Add("TyreMonitor", new TyreMonitor(audioPlayer));
     eventsList.Add("EngineMonitor", new EngineMonitor(audioPlayer));
     eventsList.Add("DamageReporting", new DamageReporting(audioPlayer));
     eventsList.Add("PushNow", new PushNow(audioPlayer));
     eventsList.Add("FlagsMonitor", new FlagsMonitor(audioPlayer));
     eventsList.Add("ConditionsMonitor", new ConditionsMonitor(audioPlayer));
     eventsList.Add("OvertakingAidsMonitor", new OvertakingAidsMonitor(audioPlayer));
     sessionEndMessages = new SessionEndMessages(audioPlayer);
 }