示例#1
0
 public WatchdogWorker(NetworkWorker networkWorker,
                       NavdataAcquisitionWorker navdataAcquisitionWorker,
                       CommandQueueWorker commandQueueWorker,
                       VideoAcquisitionWorker videoAcquisitionWorker)
 {
     _networkWorker = networkWorker;
     _navdataAcquisitionWorker = navdataAcquisitionWorker;
     _commandQueueWorker = commandQueueWorker;
     _videoAcquisitionWorker = videoAcquisitionWorker;
 }
示例#2
0
        public ARDroneClient()
        {
            _config = new ARDroneConfig();
            _commandQueue = new ConcurrentQueue<ATCommand>();

            _networkWorker = new NetworkWorker(_config, OnConnectionChanged);
            _commandQueueWorker = new CommandQueueWorker(_config, _commandQueue);
            _navdataAcquisitionWorker = new NavdataAcquisitionWorker(_config, OnNavigationPacketAcquired);
            _videoAcquisitionWorker = new VideoAcquisitionWorker(_config, OnVideoPacketAcquired);
            _configAcquisitionWorker = new ConfigAcquisitionWorker(_config, OnConfigurationPacketAcquired);
            _watchdogWorker = new WatchdogWorker(_networkWorker, _navdataAcquisitionWorker, _commandQueueWorker, _videoAcquisitionWorker);
        }