From ed54487a8841a94c06b34b5fcb68f3b34e0673f9 Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Thu, 5 May 2022 18:55:38 +0100 Subject: [PATCH] New Park routine for the LX-200 Classic, uses the same technique as the 5.0.4 driver. --- Meade.net.Telescope/Telescope.cs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index af929af..05dde95 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -1398,7 +1398,6 @@ namespace ASCOM.Meade.net { CheckConnected("CanUnpark"); - //todo make this return false for non LX-200 GPS telescopes LogMessage("CanUnpark", "Get - " + true); return SharedResourcesWrapper.ProductName == TelescopeList.LX200GPS; } @@ -1740,11 +1739,20 @@ namespace ASCOM.Meade.net break; } + if (SharedResourcesWrapper.ProductName != TelescopeList.LX200CLASSIC) + { + SharedResourcesWrapper.SendBlind("hP"); + //:hP# Autostar, Autostar II and LX 16" Slew to Park Position + //Returns: Nothing + } + else + { + Tracking = false; + SlewToCoordinates(parkedPosition.RightAscension, parkedPosition.Declination); + } + //Setting park to true before sending the park command as the Autostar and Audiostar stop serial communications once the park command has been issued. SharedResourcesWrapper.SetParked(true, parkedPosition); - SharedResourcesWrapper.SendBlind("hP"); - //:hP# Autostar, Autostar II and LX 16" Slew to Park Position - //Returns: Nothing } private bool _userNewerPulseGuiding = true;