summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-25 07:42:33 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-10-25 07:42:33 (GMT)
commit931a353b98211a0f253ff396b7441f99d4b7b5a2 (patch)
tree84db7220f121eb835c53e0aa5c331bdac42dfdd3
parentf9846aaebea554b4d8a2da68b20037048d128d82 (diff)
Reset the guide state on calibrate. Show detected stars when doing auto-star selection
-rw-r--r--kstars/ekos/guide/guide.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/kstars/ekos/guide/guide.cpp b/kstars/ekos/guide/guide.cpp
index 93ee5cb..efefb36 100644
--- a/kstars/ekos/guide/guide.cpp
+++ b/kstars/ekos/guide/guide.cpp
@@ -940,6 +940,10 @@ void Guide::stopRapidGuide()
bool Guide::calibrate()
{
+ // Set status to idle and let the operations change it as they get executed
+ state = GUIDE_IDLE;
+ emit newStatus(state);
+
saveSettings();
buildOperationStack(GUIDE_CALIBRATING);
@@ -1087,10 +1091,6 @@ void Guide::startAutoCalibrateGuide()
calibrationComplete = false;
autoCalibrateGuide = true;
- // Set status to idle and let the operations change it as they get executed
- state = GUIDE_IDLE;
- emit newStatus(state);
-
calibrate();
}
@@ -1439,6 +1439,9 @@ bool Guide::selectAutoStar()
if (starCenters.empty())
return false;
+ guideView->setStarsEnabled(true);
+ guideView->updateFrame();
+
qSort(starCenters.begin(), starCenters.end(), [](const Edge *a, const Edge *b){return a->width > b->width;});
int maxX = imageData->getWidth();