Beispiel #1
0
        public SkeletonAngleHandler()
        {
            view = new AngleView(this);
            view.Show();

            //naoHandler = new NaoHandler();

            angleCalculator       = new SkeletonAngleCalculator(this);
            angleCalculatorThread = new Thread(angleCalculator.DoWork);

            // Start the worker thread.
            angleCalculatorThread.Start();
            Console.WriteLine("Winkelberechnung gestartet!");

            // Loop until worker thread activates.
            //while (!angleCalculatorThread.IsAlive);
            // Put the main thread to sleep for 1 millisecond to
            // allow the worker thread to do some work:
            //Thread.Sleep(1);
        }
        public SkeletonAngleHandler()
        {
            view = new AngleView(this);
            view.Show();

            //naoHandler = new NaoHandler();

            angleCalculator = new SkeletonAngleCalculator(this);
            angleCalculatorThread = new Thread(angleCalculator.DoWork);

            // Start the worker thread.
            angleCalculatorThread.Start();
            Console.WriteLine("Winkelberechnung gestartet!");

            // Loop until worker thread activates.
            //while (!angleCalculatorThread.IsAlive);
            // Put the main thread to sleep for 1 millisecond to
            // allow the worker thread to do some work:
            //Thread.Sleep(1);
        }