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 @@ -102,7 +102,7 @@ Public Class Telescope
102
102
astroUtilities = New AstroUtils 'Initialise new astro utiliites object
103
103
104
104
'TODO: Implement your additional construction here
105
-
105
+ mutexCommand = New Mutex( False , "CommMutex" )
106
106
TL.LogMessage( "Telescope" , "Completed initialisation" )
107
107
End Sub
108
108
@@ -160,8 +160,8 @@ Public Class Telescope
160
160
161
161
Public Sub CommandBlind( ByVal Command As String , Optional ByVal Raw As Boolean = False ) Implements ITelescopeV3.CommandBlind
162
162
CheckConnected( "CommandBlind" )
163
- mutexBlind = New Mutex( False , "CommMutex" )
164
- mutexBlind.WaitOne()
163
+ mutexCommand.WaitOne( )
164
+
165
165
If Not Raw Then
166
166
Command = Command + "#"
167
167
End If
@@ -171,7 +171,7 @@ Public Class Telescope
171
171
Catch ex As Exception
172
172
TL.LogMessage( "CommandBlind(" + Command + ")" , "Error : " + ex.Message)
173
173
Finally
174
- mutexBlind .ReleaseMutex()
174
+ mutexCommand .ReleaseMutex()
175
175
End Try
176
176
End Sub
177
177
@@ -188,7 +188,6 @@ Public Class Telescope
188
188
Implements ITelescopeV3.CommandString
189
189
Dim response As String
190
190
CheckConnected( "CommandString" )
191
- mutexCommand = New Mutex( False , "CommMutex" )
192
191
mutexCommand.WaitOne()
193
192
If Not Raw Then
194
193
Command = Command + "#"
You can’t perform that action at this time.
0 commit comments