public void SlewToTarget() { //tl.LogMessage("SlewToTarget", "Not implemented"); //throw new ASCOM.MethodNotImplementedException("SlewToTarget"); CheckRange(telescope.TargetRightAscension, 0, 24, "SlewToTarget", "TargetRightAscension"); CheckRange(telescope.TargetDeclination, -90, 90, "SlewToTarget", "TargetDeclination");; //CheckParked("SlewToTarget"); //CheckTracking(true, "SlewToTarget"); telescope.TargetRightAscension = TargetRightAscension; telescope.TargetDeclination = TargetDeclination; telescope.SlewToTarget(); // Block until the slew completes while (telescope.Slewing) { Thread.Sleep(1000);// Allow time for main timer loop to update the axis state } // Refine the slew telescope.SlewToTarget(); //Block until the slew completes while (telescope.Slewing) { Thread.Sleep(1000); // Allow time for main timer loop to update the axis state } Thread.Sleep(1000); // Allow the telescope positions to update }