From 5b050c45c6e4463d5062720fa333e4525ff27401 Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Tue, 12 Nov 2024 18:29:32 +0000 Subject: [PATCH] Removing the attmpt to get the LX200 to park --- Meade.net.Telescope/Telescope.cs | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index a52925e..988cd2f 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -1520,8 +1520,9 @@ namespace ASCOM.Meade.net { try { - LogMessage("CanPark", "Get - " + true); - return true; + var canPark = SharedResourcesWrapper.ProductName != TelescopeList.LX200CLASSIC; + LogMessage("CanPark", "Get - " + canPark); + return canPark; } catch (Exception ex) { @@ -2289,30 +2290,8 @@ namespace ASCOM.Meade.net } else { - LogMessage("Park", $"Calculating Park Alt Az"); - //var siteLatitude = SiteLatitude; - //var parkAlt = AlignmentMode == AlignmentModes.algAltAz ? 0 : 90 - siteLatitude; - //var parkAz = siteLatitude >= 0 ? 180 : 0; - var parkAlt = 0; - var parkAz = 180; - - var eq = _astroMaths.ConvertHozToEq(UTCDate, SiteLatitude, SiteLongitude, new HorizonCoordinates() - { - Altitude = parkAlt, - Azimuth = parkAz - }); - - LogMessage("Park", $"Slewing to park position az:{parkAz} alt:{parkAlt}"); - SlewToCoordinates( eq.RightAscension, eq.Declination); - LogMessage("Park", $"Arrived at park position"); - - LogMessage("Park", $"Parking LX200 Classic"); - Tracking = false; - - LogMessage("Park", $"Making sure the scope is pointed to the correct Alt Az."); - parkAlt = 0; - parkAz = 180; - SlewToAltAz( parkAz, parkAlt, false); + LogMessage("Park", $"LX200 Classic does not support parking"); + throw new NotImplementedException("Park"); } //Setting park to true before sending the park command as the Autostar and Audiostar stop serial communications once the park command has been issued.