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) ...@@ -974,6 +974,8 @@ void Focus::newFITS(IBLOB *bp)
connect(DarkLibrary::Instance(), SIGNAL(darkFrameCompleted(bool)), this, SLOT(setCaptureComplete())); connect(DarkLibrary::Instance(), SIGNAL(darkFrameCompleted(bool)), this, SLOT(setCaptureComplete()));
connect(DarkLibrary::Instance(), SIGNAL(newLog(QString)), this, SLOT(appendLogText(QString))); connect(DarkLibrary::Instance(), SIGNAL(newLog(QString)), this, SLOT(appendLogText(QString)));
targetChip->setCaptureFilter(defaultScale);
if (darkData) if (darkData)
DarkLibrary::Instance()->subtract(darkData, focusView, defaultScale, offsetX, offsetY); DarkLibrary::Instance()->subtract(darkData, focusView, defaultScale, offsetX, offsetY);
else else
......
...@@ -2073,6 +2073,8 @@ bool Guide::executeOneOperation(GuideState operation) ...@@ -2073,6 +2073,8 @@ bool Guide::executeOneOperation(GuideState operation)
actionRequired = true; actionRequired = true;
targetChip->setCaptureFilter((FITSScale) filterCombo->currentIndex());
if (darkData) if (darkData)
DarkLibrary::Instance()->subtract(darkData, guideView, targetChip->getCaptureFilter(), offsetX, offsetY); DarkLibrary::Instance()->subtract(darkData, guideView, targetChip->getCaptureFilter(), offsetX, offsetY);
else else
......
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