Commit 0fd113e2 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Only perform autofocus on filter change IF and only IF the frame is LIGHT

parent 8250f7d5
......@@ -123,14 +123,13 @@ void SequenceJob::prepareCapture()
{
filterReady = false;
// Post Focus on Filter change
filterPostFocusReady = !Options::autoFocusOnFilterChange();
// Post Focus on Filter change. If frame is NOT light, then we do not perform autofocusing on filter change
filterPostFocusReady = (!Options::autoFocusOnFilterChange() || frameType != FRAME_LIGHT);
activeFilter->runCommand(INDI_SET_FILTER, &targetFilter);
}
}
if (enforceTemperature && fabs(targetTemperature - currentTemperature) > Options::maxTemperatureDiff())
{
temperatureReady = false;
......
......@@ -84,8 +84,7 @@ class SequenceJob : public QObject
int getXBin() { return binX; }
int getYBin() { return binY; }
void setDelay(int in_delay) { delay = in_delay; }
void setCount(int in_count) { count = in_count;}
void setImageType(int type) { imageType = type;}
void setCount(int in_count) { count = in_count;}
void setExposure(double duration) { exposure = duration;}
void setStatusCell(QTableWidgetItem *cell) { statusCell = cell; }
void setCompleted(unsigned int in_completed) { completed = in_completed;}
......@@ -155,8 +154,7 @@ private:
int targetFilter;
int currentFilter;
QString filter;
int imageType;
QString filter;
int binX, binY;
int x,y,w,h;
QString fullPrefix;
......
Supports Markdown
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