summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-28 06:00:57 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-08-28 06:00:57 (GMT)
commit0fd113e228d00b6fcdce8d297dcc93510eb9ef0a (patch)
tree97e55c0f5d793a72273dfa0ced60117e346911ae
parent8250f7d575dd15f4cbad5bf41a4b0aed44d328cc (diff)
Only perform autofocus on filter change IF and only IF the frame is LIGHT
-rw-r--r--kstars/ekos/sequencejob.cpp5
-rw-r--r--kstars/ekos/sequencejob.h6
2 files changed, 4 insertions, 7 deletions
diff --git a/kstars/ekos/sequencejob.cpp b/kstars/ekos/sequencejob.cpp
index e1420f6..02ec1b4 100644
--- a/kstars/ekos/sequencejob.cpp
+++ b/kstars/ekos/sequencejob.cpp
@@ -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;
diff --git a/kstars/ekos/sequencejob.h b/kstars/ekos/sequencejob.h
index 5ccd787..c87438e 100644
--- a/kstars/ekos/sequencejob.h
+++ b/kstars/ekos/sequencejob.h
@@ -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;