summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-23 18:00:03 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-23 18:00:03 (GMT)
commit3ec82ddde7089b6c8df8849b5a216a8d6dab4a1a (patch)
tree0f82415e7221640c386a8e7cfcd6028259ebb304
parentb3633c3dcf767d97eeeafa0782c4a571b3410a9e (diff)
For dithering, just set initial state and let the workflow handle it
-rw-r--r--kstars/ekos/guide/guide.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/kstars/ekos/guide/guide.cpp b/kstars/ekos/guide/guide.cpp
index b392aea..d7aad06 100644
--- a/kstars/ekos/guide/guide.cpp
+++ b/kstars/ekos/guide/guide.cpp
@@ -695,7 +695,7 @@ void Guide::setBusy(bool enable)
if (guiderType != GUIDE_PHD2)
calibrateB->setEnabled(true);
- if (state == GUIDE_CALIBRATION_SUCESS || state == GUIDE_ABORTED || guiderType != GUIDE_INTERNAL)
+ if (state == GUIDE_CALIBRATION_SUCESS || state == GUIDE_GUIDING || state == GUIDE_ABORTED || guiderType != GUIDE_INTERNAL)
guideB->setEnabled(true);
stopB->setEnabled(false);
@@ -953,7 +953,9 @@ bool Guide::guide()
bool Guide::dither()
{
- return guider->dither(Options::ditherPixels());
+ //return guider->dither(Options::ditherPixels());
+ state = GUIDE_DITHERING;
+ return true;
}
bool Guide::suspend()