예제 #1
0
        static void Main(string[] args)
        {
            _controller = new AstroEQController();
            int result = _controller.Connect("COM3", 9600, 2000, 1);

            if (result == CoreConstants.MOUNT_SUCCESS)
            {
                RunTracking();

                // RunGOTO();

                // RunSlew();

                // GCodes(0x0);

                Console.WriteLine("Press any key to stop moving");
                Console.ReadKey(true);
                _controller.MCAxisStop(AxisId.Axis1_RA);
                _controller.TalkWithAxis(0, 'f', null);

                Console.WriteLine("Press any key to disconnect");
                Console.ReadKey(true);
                _controller.Disconnect();
            }
        }
예제 #2
0
 public void Initialize()
 {
     _Controller = SharedResources.Controller;
     lock (_Controller)
     {
         _Controller.Connect(COMPort, BaudRate, Timeout, Retry);
         _Controller.MCSetAxisPosition(AxisId.Axis1_RA, 0.0);
         _Controller.MCSetAxisPosition(AxisId.Axis1_RA, 0.0);
     }
 }