public DroneConfiguration()
        {
            General = new GeneralSection();
            Control = new ControlSection();
            Network = new NetworkSection();
            Pic     = new PicSection();
            Video   = new VideoSection();
            Leds    = new LedsSection();
            Detect  = new DetectSection();
            Syslog  = new SyslogSection();
            Userbox = new UserboxSection();
            Gps     = new GpsSection();
            Custom  = new CustomSection();

            _items = GetItems(General)
                     .Concat(GetItems(Control))
                     .Concat(GetItems(Network))
                     .Concat(GetItems(Pic))
                     .Concat(GetItems(Video))
                     .Concat(GetItems(Leds))
                     .Concat(GetItems(Detect))
                     .Concat(GetItems(Syslog))
                     .Concat(GetItems(Userbox))
                     .Concat(GetItems(Gps))
                     .Concat(GetItems(Custom))
                     .ToDictionary(x => x.Key);
        }
Beispiel #2
0
        public Settings()
        {
            _items   = new Dictionary <string, string>();
            _changes = new ConcurrentQueue <KeyValuePair <string, string> >();

            General = new GeneralSection(this);
            Control = new ControlSection(this);
            Network = new NetworkSection(this);
            Pic     = new PicSection(this);
            Video   = new VideoSection(this);
            Leds    = new LedsSection(this);
            Detect  = new DetectSection(this);
            Syslog  = new SyslogSection(this);
            Userbox = new UserboxSection(this);
            Gps     = new GpsSection(this);
            Custom  = new CustomSection(this);
        }
Beispiel #3
0
        public Settings()
        {
            _items = new Dictionary<string, string>();
            _changes = new ConcurrentQueue<KeyValuePair<string,string>>();

            General = new GeneralSection(this);
            Control = new ControlSection(this);
            Network = new NetworkSection(this);
            Pic = new PicSection(this);
            Video = new VideoSection(this);
            Leds = new LedsSection(this);
            Detect = new DetectSection(this);
            Syslog = new SyslogSection(this);
            Userbox = new UserboxSection(this);
            Gps = new GpsSection(this);
            Custom = new CustomSection(this);
        }
        public DroneConfiguration()
        {
            _items = new Dictionary <string, IConfigurationItem>();
            _queue = new ConcurrentQueue <ATCommand>();

            General = new GeneralSection(this);
            Control = new ControlSection(this);
            Network = new NetworkSection(this);
            Pic     = new PicSection(this);
            Video   = new VideoSection(this);
            Leds    = new LedsSection(this);
            Detect  = new DetectSection(this);
            Syslog  = new SyslogSection(this);
            Userbox = new UserboxSection(this);
            Gps     = new GpsSection(this);
            Custom  = new CustomSection(this);
        }
        public DroneConfiguration()
        {
            _items = new Dictionary<string, IConfigurationItem>();
            _queue = new ConcurrentQueue<ATCommand>();

            General = new GeneralSection(this);
            Control = new ControlSection(this);
            Network = new NetworkSection(this);
            Pic = new PicSection(this);
            Video = new VideoSection(this);
            Leds = new LedsSection(this);
            Detect = new DetectSection(this);
            Syslog = new SyslogSection(this);
            Userbox = new UserboxSection(this);
            Gps = new GpsSection(this);
            Custom = new CustomSection(this);
        }