summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-14 00:32:57 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-09-14 00:32:57 (GMT)
commitc547d10afc7021343a0b43c6fdea47160a3c96e2 (patch)
tree61f17fc8bf0662b4b88869237a5ca973824c1fab
parent7ae00e2ebc1637bfd75e496c7b5ba0007d710a7b (diff)
Using lambda to signal alignment startup after configured delay
-rw-r--r--kstars/ekos/capture.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/kstars/ekos/capture.cpp b/kstars/ekos/capture.cpp
index cc3b0de..2bb5711 100644
--- a/kstars/ekos/capture.cpp
+++ b/kstars/ekos/capture.cpp
@@ -2911,7 +2911,8 @@ void Capture::processTelescopeNumber(INumberVectorProperty *nvp)
emit newStatus(Ekos::CAPTURE_ALIGNING);
meridianFlipStage = MF_ALIGNING;
- emit meridialFlipTracked();
+ QTimer::singleShot(Options::settlingTime(), [this]() {emit meridialFlipTracked();});
+ //emit meridialFlipTracked();
return;
}
@@ -3038,6 +3039,7 @@ void Capture::checkMeridianFlipTimeout()
else
{
appendLogText(i18n("Alignment timed out."));
+ alignmentEngaged=false;
abort();
}
@@ -3052,6 +3054,7 @@ void Capture::checkMeridianFlipTimeout()
else
{
appendLogText(i18n("Guiding timed out."));
+ guidingEngaged = false;
abort();
}
}