Commit 9ca83ff2 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Apply capture filter for dark frames

parent 3b922408
......@@ -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)));
if (darkData)
DarkLibrary::Instance()->subtract(darkData, focusView, defaultScale, offsetX, offsetY);
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment