File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Software/OpenAstroTracker ASCOM Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ Public Class frmMain
119
119
Private Sub updateValues()
120
120
txtMountDec.Text = DblToDMS(driver.Declination).ToString
121
121
txtMountRA.Text = DbltoHMS(driver.RightAscension).ToString
122
+ driver.TargetDeclination = driver.Declination
123
+ driver.TargetRightAscension = driver.RightAscension
122
124
txtTargetDec.Text = DblToDMS(driver.TargetDeclination).ToString
123
125
txtTargetRA.Text = DbltoHMS(driver.TargetRightAscension).ToString
124
126
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ Public Class Telescope
107
107
astroUtilities = New AstroUtils 'Initialise new astro utiliites object
108
108
109
109
'TODO: Implement your additional construction here
110
-
110
+ mutexCommand = New Mutex( False , "CommMutex" )
111
111
TL.LogMessage( "Telescope" , "Completed initialisation" )
112
112
End Sub
113
113
@@ -165,8 +165,8 @@ Public Class Telescope
165
165
166
166
Public Sub CommandBlind( ByVal Command As String , Optional ByVal Raw As Boolean = False ) Implements ITelescopeV3.CommandBlind
167
167
CheckConnected( "CommandBlind" )
168
- mutexBlind = New Mutex( False , "CommMutex" )
169
- mutexBlind.WaitOne()
168
+ mutexCommand.WaitOne( )
169
+
170
170
If Not Raw Then
171
171
Command = Command + "#"
172
172
End If
@@ -176,7 +176,7 @@ Public Class Telescope
176
176
Catch ex As Exception
177
177
TL.LogMessage( "CommandBlind(" + Command + ")" , "Error : " + ex.Message)
178
178
Finally
179
- mutexBlind .ReleaseMutex()
179
+ mutexCommand .ReleaseMutex()
180
180
End Try
181
181
End Sub
182
182
@@ -193,7 +193,6 @@ Public Class Telescope
193
193
Implements ITelescopeV3.CommandString
194
194
Dim response As String
195
195
CheckConnected( "CommandString" )
196
- mutexCommand = New Mutex( False , "CommMutex" )
197
196
mutexCommand.WaitOne()
198
197
If Not Raw Then
199
198
Command = Command + "#"
You can’t perform that action at this time.
0 commit comments