diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index 5d1bc68..a364626 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -428,7 +428,15 @@ namespace ASCOM.Meade.net // https://bitbucket.org/cjdskunkworks/meadeautostar497/issues/24/get-set-tracking#comment-60586901 if (command == (raw ? ":GW#" : "GW")) { - result = SharedResourcesWrapper.SendChars(Tl, command, raw, count: 3); + switch (SharedResourcesWrapper.ProductName) + { + case TelescopeList.LX800: + result = SharedResourcesWrapper.SendString(Tl, command, raw); + break; + default: + result = SharedResourcesWrapper.SendChars(Tl, command, raw, count: 3); + break; + } } else { @@ -1236,6 +1244,12 @@ namespace ASCOM.Meade.net case 'P': alignmentStatus.Status = Alignment.ScopeWasParked; break; + case '4': // 4 - Aligned on Home *** Starlock mounts + alignmentStatus.Status = Alignment.AlignedOnHome; + break; + case '5':// 5 - Scope was parked *** Starlock mounts + alignmentStatus.Status = Alignment.ScopeWasParked; + break; } LogMessage("GetScopeAlignmentStatus", $"Result {alignmentStatus}"); @@ -1889,6 +1903,8 @@ namespace ASCOM.Meade.net var destinationSOP = hourAngle > 0 ? PierSide.pierEast : PierSide.pierWest; + + LogMessage("CalculateSideOfPier", $"destination side of pier: {destinationSOP} ha: {hourAngle}"); return destinationSOP; } diff --git a/Meade.net/SharedResources.cs b/Meade.net/SharedResources.cs index dbf74cd..03fcf3d 100644 --- a/Meade.net/SharedResources.cs +++ b/Meade.net/SharedResources.cs @@ -111,9 +111,9 @@ namespace ASCOM.Meade.net try { - var result = SharedSerial.ReceiveTerminated("#").TrimEnd('#'); + var result = SharedSerial.ReceiveTerminated("#"); traceLogger.LogMessage("SendString", $"Received {result}", false); - return result; + return result.TrimEnd('#'); } catch (COMException ex) {