summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-09 20:47:30 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-09 20:47:30 (GMT)
commitbf3040dd58e253d5fbb7afe932e9a49c92ec21e4 (patch)
treefc5d63f17de083a2422ef4e1dd4979a421eb5727
parent390e58cc688c42e80c34f0cbb8eda393cfec5ceb (diff)
Expand profile Pixmap to cover more area. Only submit state changes once per action, GUIDE_DITHERING_SUCCESS was being emitted twice
-rw-r--r--kstars/ekos/guide/guide.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/kstars/ekos/guide/guide.cpp b/kstars/ekos/guide/guide.cpp
index 50453cd..a33bcc6 100644
--- a/kstars/ekos/guide/guide.cpp
+++ b/kstars/ekos/guide/guide.cpp
@@ -1000,7 +1000,7 @@ bool Guide::dither()
if (state != GUIDE_GUIDING)
capture();
- state = GUIDE_DITHERING;
+ setStatus(GUIDE_DITHERING);
return true;
}
@@ -1191,7 +1191,7 @@ void Guide::setStatus(Ekos::GuideState newState)
break;
case GUIDE_GUIDING:
- if (previousState == GUIDE_SUSPENDED)
+ if (previousState == GUIDE_SUSPENDED || previousState == GUIDE_DITHERING_SUCCESS)
appendLogText(i18n("Guiding resumed."));
else
{
@@ -1231,11 +1231,9 @@ void Guide::setStatus(Ekos::GuideState newState)
break;
case GUIDE_DITHERING_SUCCESS:
- appendLogText(i18n("Dithering completed successfully. Resuming guiding..."));
- emit newStatus(state);
+ appendLogText(i18n("Dithering completed successfully."));
// Go back to guiding state immediately
- state = GUIDE_GUIDING;
- emit newStatus(state);
+ setStatus(GUIDE_GUIDING);
capture();
break;
default:
@@ -1805,7 +1803,7 @@ void Guide::setAxisDelta(double ra, double de)
emit newAxisDelta(ra,de);
- profilePixmap = driftGraph->grab(QRect(QPoint(0, 50), QSize(driftGraph->width(), 101)));
+ profilePixmap = driftGraph->grab(QRect(QPoint(0, 50), QSize(driftGraph->width(), 150)));
emit newProfilePixmap(profilePixmap);
}