From 2b7d12fac9763fe4abe05de1c68e86e6c5bb304e Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Fri, 6 May 2022 20:09:40 +0100 Subject: [PATCH] Added some debugging messages --- Meade.net.Telescope/Telescope.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index 8d40d9d..b3e5706 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -1749,16 +1749,27 @@ namespace ASCOM.Meade.net } else { + LogMessage("Park", $"Parking LX200 Classic"); if (CanSetTracking) + { + LogMessage("Park", $"Parking LX200 Classic - Setting Tracking False"); Tracking = false; + } else + { + LogMessage("Park", $"Setting Telescope to land targets."); SharedResourcesWrapper.SendBlind("AL"); //todo need to route this to the real commands. + } + var parkAlt = AlignmentMode == AlignmentModes.algAltAz ? 0 : 90 - SiteLatitude; + LogMessage("Park", $"Slewing to park position az:0 alt:{parkAlt}"); SlewToAltAz(0, parkAlt, false); + LogMessage("Park", $"Arrived at park position"); } //Setting park to true before sending the park command as the Autostar and Audiostar stop serial communications once the park command has been issued. + LogMessage("Park", $"Setting driver to parked"); SharedResourcesWrapper.SetParked(true, parkedPosition); } @@ -1768,7 +1779,7 @@ namespace ASCOM.Meade.net { LogMessage("PulseGuide", $"pulse guide direction {direction} duration {duration}"); try - { + { CheckConnected("PulseGuide"); CheckParked(); if (IsSlewingToTarget())