summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-07 17:15:07 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-07 17:15:07 (GMT)
commite1beafd01a2f0ead08e162e6d03473dd1c18c074 (patch)
tree8c4b3ead4aa858165272c6e97bca8c45bf139c70
parent9ca7f7c39e3ba57db9b405ff8a68b1892197732a (diff)
If loadSlew is active, we do not check targetDiff value
-rw-r--r--kstars/ekos/align/align.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/kstars/ekos/align/align.cpp b/kstars/ekos/align/align.cpp
index 2aa087c..2186bde 100644
--- a/kstars/ekos/align/align.cpp
+++ b/kstars/ekos/align/align.cpp
@@ -721,7 +721,10 @@ void Align::newFITS(IBLOB *bp)
if (darkData)
DarkLibrary::Instance()->subtract(darkData, currentImage, FITS_NONE, offsetX, offsetY);
else
- DarkLibrary::Instance()->captureAndSubtract(targetChip, currentImage, exposureIN->value(), offsetX, offsetY);
+ {
+ bool rc = DarkLibrary::Instance()->captureAndSubtract(targetChip, currentImage, exposureIN->value(), offsetX, offsetY);
+ alignDarkFrameCheck->setChecked(rc);
+ }
return;
}
@@ -911,7 +914,7 @@ void Align::solverFinished(double orientation, double ra, double dec, double pix
break;
case GOTO_SLEW:
- if (targetDiff > accuracySpin->value())
+ if (loadSlewState == IPS_BUSY || targetDiff > accuracySpin->value())
{
if (loadSlewState == IPS_IDLE && ++solverIterations == MAXIMUM_SOLVER_ITERATIONS)
{