Ejemplo n.º 1
0
        private void RotateToRPAButton_Click(object sender, EventArgs e)
        {
            NHUtil.ButtonRed(RotateToRPAButton);
            Rotator.PlateSolveIt();
            DisplayResults();
            double rotate = (double)MoveToRPANum.Value;

            Rotator.RotateToRotatorPA(rotate);
            Rotator.PlateSolveIt();
            DisplayResults();
            NHUtil.ButtonGreen(RotateToRPAButton);
            return;
        }
Ejemplo n.º 2
0
        private void PlateSolveButton_Click(object sender, EventArgs e)
        {
            //Run a plate solve (image link) to determine the current rotator PA
            //Connect to camera.
            //Set autosave.
            //Take an image
            NHUtil.ButtonRed(PlateSolveButton);
            LogEvent lg = new LogEvent();

            if (!Rotator.PlateSolveIt())
            {
                NHUtil.ButtonGreen(PlateSolveButton);
                return;
            }
            DisplayResults();
            NHUtil.ButtonGreen(PlateSolveButton);
            return;
        }