@@ -40,7 +40,7 @@ Public Class Telescope
4040 '
4141 ' Driver ID and descriptive string that shows in the Chooser
4242 '
43- Private Version As String = "0.1.3.1 RC1 "
43+ Private Version As String = "0.1.4b "
4444 Friend Shared driverID As String = "ASCOM.OpenAstroTracker.Telescope"
4545 Private Shared driverDescription As String = "OpenAstroTracker Telescope"
4646
@@ -435,10 +435,9 @@ Public Class Telescope
435435 End Property
436436
437437 Public ReadOnly Property CanPulseGuide() As Boolean Implements ITelescopeV3.CanPulseGuide
438- ' This will be true as we get around to pulse guiding
439438 Get
440- TL.LogMessage( "CanPulseGuide" , "Get - " & False .ToString())
441- Return False
439+ TL.LogMessage( "CanPulseGuide" , "Get - " & True .ToString())
440+ Return True
442441 End Get
443442 End Property
444443
@@ -618,8 +617,9 @@ Public Class Telescope
618617
619618 Public ReadOnly Property IsPulseGuiding() As Boolean Implements ITelescopeV3.IsPulseGuiding
620619 Get
621- TL.LogMessage( "IsPulseGuiding Get" , "Not implemented" )
622- Throw New ASCOM.PropertyNotImplementedException( "IsPulseGuiding" , False )
620+ Dim retVal As Boolean = Convert.ToBoolean( CInt (CommandString( ":GIG" )))
621+ TL.LogMessage( "isPulseGuiding Get" , retVal.ToString)
622+ Return retVal
623623 End Get
624624 End Property
625625
@@ -643,8 +643,17 @@ Public Class Telescope
643643 End Sub
644644
645645 Public Sub PulseGuide(Direction As GuideDirections, Duration As Integer ) Implements ITelescopeV3.PulseGuide
646- TL.LogMessage( "PulseGuide" , "Not implemented" )
647- Throw New ASCOM.MethodNotImplementedException( "PulseGuide" )
646+ If Not AtPark Then
647+ TL.LogMessage( "PulseGuide" , Direction.ToString + " " + Duration.ToString)
648+ Dim dir As String , length As String , pgCmd As String = ":MG"
649+ dir = Direction.ToString.Substring( 5 , 1 )
650+ length = Right( "0000" + Duration.ToString, 4 )
651+ pgCmd = pgCmd + dir + length
652+ CommandBlind(pgCmd, False )
653+ Else
654+ TL.LogMessage( "PulseGuide" , "Parked" )
655+ Throw New ASCOM.ParkedException( "PulseGuide" )
656+ End If
648657 End Sub
649658
650659 Public ReadOnly Property RightAscension() As Double Implements ITelescopeV3.RightAscension
0 commit comments