public SplashScreen(DroneControl droneControl)
        {
            InitializeComponent();

            this.droneControl = droneControl;
            connectionSuccessful = false;
        }
Пример #2
0
        private void InitializeDroneControl()
        {
            DroneConfig droneConfig = new DroneConfig();
            droneConfig.DefaultCameraMode = DroneCameraMode.BottomCamera;

            droneControl = new DroneControl(droneConfig);
            droneControl.Error += droneControl_Error_Async;
            droneControl.ConnectionStateChanged += droneControl_ConnectionStateChanged_Async;
        }
Пример #3
0
        private void InitializeDroneControl()
        {
            DroneConfig droneConfig = new DroneConfig();
            droneConfig.FirmwareVersion = SupportedFirmwareVersion.Firmware_164_Or_Above;
            droneConfig.DefaultCameraMode = DroneCameraMode.FrontCamera;

            droneControl = new DroneControl(droneConfig);
            droneControl.Error += droneControl_Error_Async;
            droneControl.ConnectionStateChanged += droneControl_ConnectionStateChanged_Async;
        }
Пример #4
0
        public NavDataRecorder(DroneControl droneControl, InputManager inputManager, double interval=50)
        {
            xNavData = new XElement("NavData");
            dataPoints = 0;
            navDataTimer = new Timer(interval);
            navDataTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);

            this.droneControl = droneControl;
            this.inputManager = inputManager;
        }
Пример #5
0
        public KinectControl(DroneControl droneControl)
        {
            InitializeComponent();

            controlKinect.ImagenDepth = imagen;

            controlKinect.TextoLeft = txtLeft;
            controlKinect.TextoRight = txtRight;
            controlKinect.TextoVelocidad = txtVelocidades;
            controlKinect.droneXontrol = droneControl;

            controlKinect.inicializarKinect();
        }
Пример #6
0
        public DroneControler(ref Label l)
        {
            _label = l;

            currentDroneConfig = new DroneConfig();
            currentDroneConfig.Load();

            droneControl = new DroneControl(currentDroneConfig);


            droneControl.Error += droneControl_Error_Async;
            droneControl.ConnectionStateChanged += droneControl_ConnectionStateChanged_Async;
            droneControl.NetworkConnectionStateChanged += droneControl_NetworkConnectionStateChanged_Async;
        }
 private void InitializeDroneControl(DroneConfig droneConfig)
 {
     droneControl = new DroneControl();
     droneControl.Init(droneConfig);
 }
Пример #8
0
 private void InitializeDroneControl(DroneConfig droneConfig)
 {
     droneControl = new DroneControl(droneConfig);
     //gps_start = new GPSDataRetriever();
 }
 public InstrumentsManager(DroneControl arDroneControl)
 {
     this.droneControl = arDroneControl;
     instrumentList = new List<InstrumentControl>();
 }
Пример #10
0
 public DroneCommand( DroneControl droneControl )
 {
     _droneControl = droneControl;
 }
Пример #11
0
        public DroneInitializer( DroneConfig config )
        {
            _currentDroneConfig = config;
            _droneControl = new DroneControl( _currentDroneConfig );
            _droneCommand = new DroneCommand( _droneControl );

            _droneControl.Error += droneControl_Error;
            _droneControl.ConnectionStateChanged += droneControl_ConnectionStateChanged;
            _droneControl.NetworkConnectionStateChanged += droneControl_NetworkConnectionStateChanged;

            InitializeVideoUpdate();
            InitializeHudInterface();

            _timerStatusUpdate = new DispatcherTimer();
            _timerStatusUpdate.Interval = new TimeSpan( 0, 0, 0, 0, 30 );
            _timerStatusUpdate.Tick += new EventHandler( timerStatusUpdate_Tick );
        }
Пример #12
0
        public Detection(DroneControl droneControl)
        {
            this.droneControl = droneControl;

            Task.Factory.StartNew(() => initializeThread());
        }