Exemplo n.º 1
0
        public void PulseGuide(INDIDirection direction, Int64 ms)
        {
            string vector = "TELESCOPE_TIMED_GUIDE_";
            string number = "TIMED_GUIDE_";

            switch (direction)
            {
            case INDIDirection.NORTH:
                vector += "NS";
                number += "N";
                break;

            case INDIDirection.SOUTH:
                vector += "NS";
                number += "S";
                break;

            case INDIDirection.WEST:
                vector += "WE";
                number += "W";
                break;

            case INDIDirection.EAST:
                vector += "WE";
                number += "E";
                break;
            }
            try
            {
                SetNumber(vector, number, ms);
            }
            catch
            {
            }
        }
Exemplo n.º 2
0
        public void Stop(INDIDirection direction)
        {
            try
            {
                string vector = "TELESCOPE_MOTION_";
                string number = "MOTION_";
                switch (direction)
                {
                case INDIDirection.NORTH:
                    vector += "NS";
                    number += "N";
                    break;

                case INDIDirection.SOUTH:
                    vector += "NS";
                    number += "S";
                    break;

                case INDIDirection.WEST:
                    vector += "WE";
                    number += "W";
                    break;

                case INDIDirection.EAST:
                    vector += "WE";
                    number += "E";
                    break;
                }
                SetSwitch(vector, number, false);
            }
            catch
            {
            }
        }