Example #1
0
        public Task <Settings> GetConfigurationTask()
        {
            var configurationAcquisition = new ConfigurationAcquisition(this);
            var task = configurationAcquisition.CreateTask();

            return(task);
        }
Example #2
0
        public DroneClient()
        {
            _configuration = new DroneConfiguration();
            _commandQueue  = new ConcurrentQueue <ATCommand>();

            _commandSender            = new CommandSender(_configuration, _commandQueue);
            _navdataAcquisition       = new NavdataAcquisition(_configuration, OnNavdataPacketAcquired, OnNavdataAcquisitionStopped);
            _videoAcquisition         = new VideoAcquisition(_configuration, OnVideoPacketAcquired);
            _configurationAcquisition = new ConfigurationAcquisition(_configuration, OnConfigurationPacketAcquired);
            _watchdog = new Watchdog(_navdataAcquisition, _commandSender, _videoAcquisition);
        }
Example #3
0
        public DroneClient()
        {
            _configuration = new DroneConfiguration();
            _commandQueue = new ConcurrentQueue<ATCommand>();

            _commandSender = new CommandSender(_configuration, _commandQueue);
            _navdataAcquisition = new NavdataAcquisition(_configuration, OnNavdataPacketAcquired, OnNavdataAcquisitionStopped);
            _videoAcquisition = new VideoAcquisition(_configuration, OnVideoPacketAcquired);
            _configurationAcquisition = new ConfigurationAcquisition(_configuration, OnConfigurationPacketAcquired);
            _watchdog = new Watchdog(_navdataAcquisition, _commandSender, _videoAcquisition);
        }
Example #4
0
 public Task<DroneConfiguration> GetConfigurationTask()
 {
     var configurationAcquisition = new ConfigurationAcquisition(this);
     var task = configurationAcquisition.CreateTask();
     return task;
 }