Compare commits

...

4 Commits

Author SHA1 Message Date
ColinD 99b3bce71a Merged in develop (pull request #49)
Develop
2023-06-10 21:41:29 +00:00
ColinD 4c7a40a8e4 Added extra values to GW translation.
Also added extra log message that includes the hour angle when calculating the destination side of pier.
2023-02-22 22:14:38 +00:00
ColinD 003dbe059a . doing the trim of the trailing # after writing the log message.
. for LX800 scopes, trying to use a send string instead of send chars for GW command.
2023-02-18 22:50:57 +00:00
ColinD c673e0c7d6 . doing the trim of the trailing # after writing the log message.
. for LX800 scopes, trying to use a send string instead of send chars for GW command.
2023-02-18 22:37:47 +00:00
2 changed files with 19 additions and 3 deletions
+17 -1
View File
@@ -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;
}
+2 -2
View File
@@ -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)
{