From 4c92bf13c21a3c97ede6612475f77c9c7aaeba3c Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 8 Jun 2019 20:34:54 +0100 Subject: [PATCH] Slight modification to make sure that the focuser is poked less often --- Meade.net.Setup/Product.wxs | 3 ++- Meade.net.focuser/Focuser.cs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Meade.net.Setup/Product.wxs b/Meade.net.Setup/Product.wxs index 7a36ccd..d9d14de 100644 --- a/Meade.net.Setup/Product.wxs +++ b/Meade.net.Setup/Product.wxs @@ -15,8 +15,9 @@ + - + diff --git a/Meade.net.focuser/Focuser.cs b/Meade.net.focuser/Focuser.cs index 2939517..75a6f18 100644 --- a/Meade.net.focuser/Focuser.cs +++ b/Meade.net.focuser/Focuser.cs @@ -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. Stopwatch stopwatch = Stopwatch.StartNew(); - while (stopwatch.ElapsedMilliseconds < 200) + while (stopwatch.ElapsedMilliseconds < 1000) { SharedResources.SendBlind(":FQ#"); //:FQ# Halt Focuser Motion //Returns: Nothing - utilities.WaitForMilliseconds(50); + utilities.WaitForMilliseconds(250); } } @@ -461,7 +461,7 @@ namespace ASCOM.Meade.net //:F-# Start Focuser moving outward (away from objective) //Returns: None - utilities.WaitForMilliseconds(50); + utilities.WaitForMilliseconds(250); } Halt();