diff --git a/kstars/ekos/auxiliary/filtermanager.cpp b/kstars/ekos/auxiliary/filtermanager.cpp old mode 100644 new mode 100755 --- a/kstars/ekos/auxiliary/filtermanager.cpp +++ b/kstars/ekos/auxiliary/filtermanager.cpp @@ -8,6 +8,7 @@ */ #include "filtermanager.h" +#include #include "indi_debug.h" #include "kstarsdata.h" @@ -537,6 +538,7 @@ case FILTER_AUTOFOCUS: state = FILTER_AUTOFOCUS; + qCDebug(KSTARS) << "FilterManager.cpp is triggering autofocus."; emit newStatus(state); emit checkFocus(0.01); break; diff --git a/kstars/ekos/capture/capture.cpp b/kstars/ekos/capture/capture.cpp old mode 100644 new mode 100755 --- a/kstars/ekos/capture/capture.cpp +++ b/kstars/ekos/capture/capture.cpp @@ -1809,6 +1809,7 @@ emit resetFocus(); // force refocus + qCDebug(KSTARS_EKOS_CAPTURE) << "Capture is triggering autofocus on line 1812."; emit checkFocus(0.1); m_State = CAPTURE_FOCUSING; @@ -1836,9 +1837,15 @@ targetChip->abortExposure(); if (HFRPixels->value() == 0) + { + qCDebug(KSTARS_EKOS_CAPTURE) << "Capture is triggering autofocus on line 1841."; emit checkFocus(0.1); + } else + { + qCDebug(KSTARS_EKOS_CAPTURE) << "Capture is triggering autofocus on line 1846."; emit checkFocus(HFRPixels->value()); + } qCDebug(KSTARS_EKOS_CAPTURE) << "In-sequence focusing started..."; @@ -1894,6 +1901,7 @@ emit resetFocus(); // force refocus + qCDebug(KSTARS_EKOS_CAPTURE) << "Capture is triggering autofocus on line 1904."; emit checkFocus(0.1); m_State = CAPTURE_FOCUSING; @@ -1922,9 +1930,15 @@ targetChip->abortExposure(); if (HFRPixels->value() == 0) + { + qCDebug(KSTARS_EKOS_CAPTURE) << "Capture is triggering autofocus on line 1934."; emit checkFocus(0.1); + } else + { + qCDebug(KSTARS_EKOS_CAPTURE) << "Capture is triggering autofocus on line 1939."; emit checkFocus(HFRPixels->value()); + } qCDebug(KSTARS_EKOS_CAPTURE) << "In-sequence focusing started..."; @@ -2169,6 +2183,7 @@ requiredAutoFocusStarted = true; secondsLabel->setText(i18n("Focusing...")); qCDebug(KSTARS_EKOS_CAPTURE) << "Requesting focusing if HFR >" << HFRPixels->value(); + qCDebug(KSTARS_EKOS_CAPTURE) << "Capture is triggering autofocus on line 2186."; emit checkFocus(HFRPixels->value()); m_State = CAPTURE_FOCUSING; emit newStatus(Ekos::CAPTURE_FOCUSING); @@ -2179,6 +2194,7 @@ appendLogText(i18n("Scheduled refocus started...")); secondsLabel->setText(i18n("Focusing...")); + qCDebug(KSTARS_EKOS_CAPTURE) << "Capture is triggering autofocus on line 2197."; emit checkFocus(0.1); m_State = CAPTURE_FOCUSING; emit newStatus(Ekos::CAPTURE_FOCUSING); diff --git a/kstars/ekos/scheduler/scheduler.cpp b/kstars/ekos/scheduler/scheduler.cpp old mode 100644 new mode 100755 --- a/kstars/ekos/scheduler/scheduler.cpp +++ b/kstars/ekos/scheduler/scheduler.cpp @@ -3481,7 +3481,10 @@ if (currentJob->getStepPipeline() & SchedulerJob::USE_TRACK) startSlew(); else if (currentJob->getStepPipeline() & SchedulerJob::USE_FOCUS && autofocusCompleted == false) + { + qCDebug(KSTARS_EKOS_SCHEDULER) << "startFocusing on 3485"; startFocusing(); + } else if (currentJob->getStepPipeline() & SchedulerJob::USE_ALIGN) startAstrometry(); else if (currentJob->getStepPipeline() & SchedulerJob::USE_GUIDE) @@ -3507,7 +3510,10 @@ case SchedulerJob::STAGE_SLEW_COMPLETE: if (currentJob->getStepPipeline() & SchedulerJob::USE_FOCUS && autofocusCompleted == false) + { + qCDebug(KSTARS_EKOS_SCHEDULER) << "startFocusing on 3514"; startFocusing(); + } else if (currentJob->getStepPipeline() & SchedulerJob::USE_ALIGN) startAstrometry(); else if (currentJob->getStepPipeline() & SchedulerJob::USE_GUIDE) @@ -3534,7 +3540,10 @@ // frame is ready for the capture module in-sequence-focus procedure. if ((currentJob->getStepPipeline() & SchedulerJob::USE_FOCUS) && currentJob->getInSequenceFocus()) // Post alignment re-focusing + { + qCDebug(KSTARS_EKOS_SCHEDULER) << "startFocusing on 3544"; startFocusing(); + } else if (currentJob->getStepPipeline() & SchedulerJob::USE_GUIDE) startGuiding(); else @@ -6871,6 +6880,7 @@ // Reset frame to original size. focusInterface->call(QDBus::AutoDetect, "resetFrame"); // Restart focusing + qCDebug(KSTARS_EKOS_SCHEDULER) << "startFocusing on 6883"; startFocusing(); } else diff --git a/kstars/indi/indiccd.cpp b/kstars/indi/indiccd.cpp --- a/kstars/indi/indiccd.cpp +++ b/kstars/indi/indiccd.cpp @@ -1554,9 +1554,10 @@ if (!strcmp(bp->name, "CCD2")) targetChip = guideChip.get(); else + { targetChip = primaryChip.get(); - - //qCDebug(KSTARS_INDI) << "processBLOB() mode " << targetChip->getCaptureMode(); + qCDebug(KSTARS_INDI) << "processBLOB() mode " << targetChip->getCaptureMode(); + } // Create temporary name if ANY of the following conditions are met: // 1. file is preview or batch mode is not enabled