Exemplo n.º 1
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;
        }
Exemplo n.º 2
0
        private void Window_Loaded_1(object sender, RoutedEventArgs e)
        {


            oculusVidWindow = new videoWindow(35001, videoWindow.monitors.thirdMonitor,"Oculus");
            // oculusVidWindow.setIDLabel("oculusVidWindow");
            oculusVidWindow.Show();

            noseCamVidWindow = new videoWindow(35004, videoWindow.monitors.secondMonitor,"Nose");
            // noseCamVidWindow.setIDLabel("noseCamVidWindow");
            noseCamVidWindow.Show();
        }