Skip to content

Commit 04e58a3

Browse files
committed
Fix negative Dec issue
1 parent 05bff7b commit 04e58a3

File tree

1 file changed

+1
-3
lines changed
  • Software/OpenAstroTracker ASCOM/OpenAstroTracker ASCOM

1 file changed

+1
-3
lines changed

Software/OpenAstroTracker ASCOM/OpenAstroTracker ASCOM/Driver.vb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,9 +795,7 @@ Public Class Telescope
795795
TL.LogMessage("SlewToCoordinates", "RA " + RightAscension.ToString + ", Dec " + Declination.ToString)
796796
Dim strRAcmd = ":Sr" + utilities.HoursToHMS(RightAscension, ":", ":")
797797
Dim strDeccmd = utilities.DegreesToDMS(Declination, "*", ":", "")
798-
If Declination < 0 Then
799-
strDeccmd = "-" + strDeccmd
800-
Else
798+
If Declination >= 0 Then
801799
strDeccmd = "+" + strDeccmd
802800
End If
803801
strDeccmd = ":Sd" + strDeccmd

0 commit comments

Comments
 (0)