Ejemplo n.º 1
0
 public WatchdogWorker(NetworkWorker networkWorker,
                       NavdataAcquisitionWorker navdataAcquisitionWorker,
                       CommandQueueWorker commandQueueWorker,
                       VideoAcquisitionWorker videoAcquisitionWorker)
 {
     _networkWorker = networkWorker;
     _navdataAcquisitionWorker = navdataAcquisitionWorker;
     _commandQueueWorker = commandQueueWorker;
     _videoAcquisitionWorker = videoAcquisitionWorker;
 }
Ejemplo n.º 2
0
 public WatchdogWorker(NetworkWorker networkWorker,
                       NavdataAcquisitionWorker navdataAcquisitionWorker,
                       CommandQueueWorker commandQueueWorker,
                       VideoAcquisitionWorker videoAcquisitionWorker)
 {
     _networkWorker            = networkWorker;
     _navdataAcquisitionWorker = navdataAcquisitionWorker;
     _commandQueueWorker       = commandQueueWorker;
     _videoAcquisitionWorker   = videoAcquisitionWorker;
 }
Ejemplo n.º 3
0
        public DroneClient()
        {
            _configuration = new DroneConfiguration();
            _commandQueue = new ConcurrentQueue<ATCommand>();

            _networkWorker = new NetworkWorker(_configuration, OnConnectionChanged);
            _commandQueueWorker = new CommandQueueWorker(_configuration, _commandQueue);
            _navdataAcquisitionWorker = new NavdataAcquisitionWorker(_configuration, OnNavigationPacketAcquired);
            _videoAcquisitionWorker = new VideoAcquisitionWorker(_configuration, OnVideoPacketAcquired);
            _configurationAcquisitionWorker = new ConfigurationAcquisitionWorker(_configuration, OnConfigurationPacketAcquired);
            _watchdogWorker = new WatchdogWorker(_networkWorker, _navdataAcquisitionWorker, _commandQueueWorker, _videoAcquisitionWorker);
        }