summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-06 10:50:12 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-06 10:50:12 (GMT)
commita3baa10339d9b927805b7ed00f7518214961bbe9 (patch)
treec02504659d273147d6d67eab4d6a2a3d541791b9
parentfcc87c1b3c8fa672af7f9ef4a7845200d1e7827d (diff)
Update slots
-rw-r--r--kstars/ekos/ekosmanager.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/kstars/ekos/ekosmanager.cpp b/kstars/ekos/ekosmanager.cpp
index ba2040b..6367c54 100644
--- a/kstars/ekos/ekosmanager.cpp
+++ b/kstars/ekos/ekosmanager.cpp
@@ -1538,10 +1538,12 @@ void EkosManager::initGuide()
//connect(guideProcess, SIGNAL(autoGuidingToggled(bool)), captureProcess, SLOT(setAutoguiding(bool)));
//connect(guideProcess, SIGNAL(ditherComplete()), captureProcess, SLOT(resumeCapture()));
//connect(guideProcess, SIGNAL(ditherFailed()), captureProcess, SLOT(abort()));
- connect(guideProcess, SIGNAL(ditherToggled(bool)), captureProcess, SLOT(setGuideDither(bool)));
+ //connect(guideProcess, SIGNAL(ditherToggled(bool)), captureProcess, SLOT(setGuideDither(bool)));
+ //connect(captureProcess, SIGNAL(exposureComplete()), guideProcess, SLOT(dither()));
//connect(captureProcess, SIGNAL(exposureComplete()), guideProcess, SLOT(dither()));
- connect(captureProcess, SIGNAL(exposureComplete()), guideProcess, SLOT(dither()));
+ connect(captureProcess, &Ekos::Capture::newStatus, this, [&](Ekos::CaptureState state){if (state == Ekos::CAPTURE_DITHERING)
+ {guideProcess->dither();}}, Qt::UniqueConnection);
// Guide Head
@@ -1549,7 +1551,7 @@ void EkosManager::initGuide()
connect(guideProcess, SIGNAL(guideChipUpdated(ISD::CCDChip*)), captureProcess, SLOT(setGuideChip(ISD::CCDChip*)));
// Meridian Flip
- connect(captureProcess, SIGNAL(meridianFlipStarted()), guideProcess, SLOT(stopGuiding()), Qt::UniqueConnection);
+ connect(captureProcess, SIGNAL(meridianFlipStarted()), guideProcess, SLOT(abort()), Qt::UniqueConnection);
connect(captureProcess, SIGNAL(meridianFlipCompleted()), guideProcess, SLOT(startAutoCalibrateGuiding()), Qt::UniqueConnection);
}