summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-11 18:21:49 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-11 18:21:49 (GMT)
commit9ca83ff28ecfdd671924a343bb9931877f4ded5e (patch)
treef3abe4591a316a66e80487f440b0ae8622ab1ee9
parent3b922408e2058f32ca4fd893c7aa251052d3e984 (diff)
Apply capture filter for dark frames
-rw-r--r--kstars/ekos/focus/focus.cpp2
-rw-r--r--kstars/ekos/guide/guide.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/kstars/ekos/focus/focus.cpp b/kstars/ekos/focus/focus.cpp
index cd644c0..6a4d852 100644
--- a/kstars/ekos/focus/focus.cpp
+++ b/kstars/ekos/focus/focus.cpp
@@ -974,6 +974,8 @@ void Focus::newFITS(IBLOB *bp)
connect(DarkLibrary::Instance(), SIGNAL(darkFrameCompleted(bool)), this, SLOT(setCaptureComplete()));
connect(DarkLibrary::Instance(), SIGNAL(newLog(QString)), this, SLOT(appendLogText(QString)));
+ targetChip->setCaptureFilter(defaultScale);
+
if (darkData)
DarkLibrary::Instance()->subtract(darkData, focusView, defaultScale, offsetX, offsetY);
else
diff --git a/kstars/ekos/guide/guide.cpp b/kstars/ekos/guide/guide.cpp
index 4f082a3..9ab1093 100644
--- a/kstars/ekos/guide/guide.cpp
+++ b/kstars/ekos/guide/guide.cpp
@@ -2073,6 +2073,8 @@ bool Guide::executeOneOperation(GuideState operation)
actionRequired = true;
+ targetChip->setCaptureFilter((FITSScale) filterCombo->currentIndex());
+
if (darkData)
DarkLibrary::Instance()->subtract(darkData, guideView, targetChip->getCaptureFilter(), offsetX, offsetY);
else