Slight modification to make sure that the focuser is poked less often

This commit is contained in:
2019-06-08 20:34:54 +01:00
parent 22de5679b7
commit 4c92bf13c2
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -15,8 +15,9 @@
<Property Id="REGISTRYROOT" Value="Software\Cjdawson.com Ltd\Database Patcher" /> <Property Id="REGISTRYROOT" Value="Software\Cjdawson.com Ltd\Database Patcher" />
<PropertyRef Id="NETFRAMEWORK40FULL"/>
<Condition Message="This application requires .NET Framework 4.0 or higher. Please install the .NET Framework then run this installer again."> <Condition Message="This application requires .NET Framework 4.0 or higher. Please install the .NET Framework then run this installer again.">
<![CDATA[Installed OR NETFRAMEWORK40]]> <![CDATA[Installed OR NETFRAMEWORK40FULL]]>
</Condition> </Condition>
<!--todo create a method to check if ASCOM is installed.--> <!--todo create a method to check if ASCOM is installed.-->
+3 -3
View File
@@ -352,13 +352,13 @@ namespace ASCOM.Meade.net
//A single halt command is sometimes missed by the #909 apm, so let's do it a few times to be safe. //A single halt command is sometimes missed by the #909 apm, so let's do it a few times to be safe.
Stopwatch stopwatch = Stopwatch.StartNew(); Stopwatch stopwatch = Stopwatch.StartNew();
while (stopwatch.ElapsedMilliseconds < 200) while (stopwatch.ElapsedMilliseconds < 1000)
{ {
SharedResources.SendBlind(":FQ#"); SharedResources.SendBlind(":FQ#");
//:FQ# Halt Focuser Motion //:FQ# Halt Focuser Motion
//Returns: Nothing //Returns: Nothing
utilities.WaitForMilliseconds(50); utilities.WaitForMilliseconds(250);
} }
} }
@@ -461,7 +461,7 @@ namespace ASCOM.Meade.net
//:F-# Start Focuser moving outward (away from objective) //:F-# Start Focuser moving outward (away from objective)
//Returns: None //Returns: None
utilities.WaitForMilliseconds(50); utilities.WaitForMilliseconds(250);
} }
Halt(); Halt();