Beispiel #1
0
        public MainWindow() {
            InitializeComponent();

            xboxController = new XboxController.XboxController();
            pilotPreferences.xboxController = xboxController;
            comSock = new commSockReceiver(35000);
            comSock.IncomingLine += comSock_IncomingLine;
            comSock.newConnection += comSock_newConnection;
            comSock.connectionLost += comSock_connectionLost;
            comSock.beginAccept();

            driveInputMan = new driveInputManager(xboxController);
            driveTransmit = new driveTransmitter(driveInputMan, comSock);

            try
            {
                orientation = OculusOrientation.getInstance();
                ptTransmitter = new OculusTransmitter(comSock, orientation);
            }
            catch (Exception e)
            {
                MessageBox.Show("WARNING! Oculus offline (probably not plugged in). ERROR: " + e.Message);
            }

            pilotPreferences.topSpeedChanged += pilotPreferences_topSpeedChanged;
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

            palmVidWindow = new videoWindow(35003, videoWindow.monitors.secondMonitor,"Palm Cam Window");
            palmVidWindow.Show();

            humerusVidWindow = new videoWindow(35005, videoWindow.monitors.thirdMonitor, "Humerus Cam Window");
            humerusVidWindow.Show();

            inputOnlineInd.setIndicatorState(toggleIndicator.indicatorState.Red);

            xboxController = new XboxController.XboxController();

            comSock = new commSockReceiver(35002);
            comSock.IncomingLine += comSock_IncomingLine;
            comSock.newConnection += comSock_newConnection;
            comSock.connectionLost += comSock_connectionLost;
            comSock.beginAccept();

            armInputMan = armInputManager.getInstance(xboxController,comSock);
            armInputMan.InputUnlockedEvent += inputUnlocked;

            macros.newMacroData += macros_newMacroData;
            

            armTransmit = new armCommandTransmitter(armInputMan, comSock);

            xboxControlMonitor.xboxController = xboxController;
            armSideView.armInputManager = armInputMan;
            armTopView.armInputManager = armInputMan;
            wristVisualizer.armInput = armInputMan;
        }
Beispiel #3
0
        public MainWindow()
        {
            InitializeComponent();

            comSock = new commSockReceiver(35006);
            comSock.IncomingLine += comSock_IncomingLine;
            comSock.newConnection += comSock_newConnection;
            comSock.connectionLost += comSock_connectionLost;
            comSock.beginAccept();

            frontSSR = new snapShotReceiver(35007);
            frontSSR.newSnapShotReceived += frontSSR_newSnapShotReceived;

            rightSSR = new snapShotReceiver(35009);
            rightSSR.newSnapShotReceived += rightSSR_newSnapShotReceived;

            backSSR = new snapShotReceiver(35008);
            backSSR.newSnapShotReceived += backSSR_newSnapShotReceived;

            leftSSR = new snapShotReceiver(35011);
            leftSSR.newSnapShotReceived += leftSSR_newSnapShotReceived;

            this.WindowState = System.Windows.WindowState.Maximized;
            mapPalette.newPaletteItemSelected += mapPalette_newPaletteItemSelected;
            mapWin = new mapWindow();
            mapWin.Show();
            leftMagWin = new magnificationWindow(1, "Left Magnification");
            leftMagWin.Show();
            rightMagWin = new magnificationWindow(2, "Right Magnification");
            rightMagWin.Show();
        }
Beispiel #4
0
 public MainWindow()
 {
     InitializeComponent();
     CSR = new commSockReceiver(35000);
     CSR.beginAccept();
     CSR.IncomingLine += CSR_IncomingLine;
     CSR.newConnection += CSR_newConnection;
 }
Beispiel #5
0
        public MainWindow()
        {
            InitializeComponent();

            comSock = new commSockReceiver(35010);
            comSock.IncomingLine += comSock_IncomingLine;
            comSock.newConnection += comSock_newConnection;
            comSock.connectionLost += comSock_connectionLost;
            comSock.beginAccept();

            videoManager.intendedCameraStatusChanged+=videoManager_intendedCameraStatusChanged;
            videoQualityControl.userUpdatedVideoTraits += videoQualityControl_userUpdatedVideoTraits;

            rareHeartbeatTimer = new Timer(rareHeartbeatTimerCallback, null, 2000, 25000);
        }