Пример #1
0
 public WiFiSensor(WaitHandle stopThread, WaitHandle pauseThread, WaitHandle playThread, SensorToLocalizer<SensorOutput> output)
 {
     _client = new WlanClient();
     _threadControls[0] = stopThread;
     _threadControls[1] = pauseThread;
     _play = playThread;
     _output = output;
 }
Пример #2
0
        public LocationLocalizer(WaitHandle stopThread, WaitHandle pauseThread, WaitHandle playThread,
                                 SensorToLocalizer<SensorOutput> input, LocalizationAlgorithm algorithm)
        {
            _inputQueue = input;
            _algorithm = algorithm;

            _threadControls[0] = stopThread;
            _threadControls[1] = pauseThread;
            _threadControls[2] = input.FullHandle;
            _play = playThread;
        }