Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/capture/capture.cpp
Show First 20 Lines • Show All 1465 Lines • ▼ Show 20 Line(s) | 1463 | { | |||
---|---|---|---|---|---|
1466 | secondsLabel->setText(i18n("Paused...")); | 1466 | secondsLabel->setText(i18n("Paused...")); | ||
1467 | m_State = CAPTURE_PAUSED; | 1467 | m_State = CAPTURE_PAUSED; | ||
1468 | // handle a requested meridian flip | 1468 | // handle a requested meridian flip | ||
1469 | if (meridianFlipStage != MF_NONE) | 1469 | if (meridianFlipStage != MF_NONE) | ||
1470 | setMeridianFlipStage(MF_READY); | 1470 | setMeridianFlipStage(MF_READY); | ||
1471 | return false; | 1471 | return false; | ||
1472 | } | 1472 | } | ||
1473 | 1473 | | |||
1474 | /* Increase the sequence's current capture count */ | | |||
1475 | if (! activeJob->isPreview()) | 1474 | if (! activeJob->isPreview()) | ||
1475 | { | ||||
1476 | /* Increase the sequence's current capture count */ | ||||
1476 | activeJob->setCompleted(activeJob->getCompleted() + 1); | 1477 | activeJob->setCompleted(activeJob->getCompleted() + 1); | ||
1478 | /* Decrease the counter for in-sequence focusing */ | ||||
1479 | inSequenceFocusCounter--; | ||||
1480 | } | ||||
1477 | 1481 | | |||
1478 | sendNewImage(blobFilename, blobChip); | 1482 | sendNewImage(blobFilename, blobChip); | ||
1479 | 1483 | | |||
1480 | /* If we were assigned a captured frame map, also increase the relevant counter for prepareJob */ | 1484 | /* If we were assigned a captured frame map, also increase the relevant counter for prepareJob */ | ||
1481 | SchedulerJob::CapturedFramesMap::iterator frame_item = capturedFramesMap.find(activeJob->getSignature()); | 1485 | SchedulerJob::CapturedFramesMap::iterator frame_item = capturedFramesMap.find(activeJob->getSignature()); | ||
1482 | if (capturedFramesMap.end() != frame_item) | 1486 | if (capturedFramesMap.end() != frame_item) | ||
1483 | frame_item.value()++; | 1487 | frame_item.value()++; | ||
1484 | 1488 | | |||
▲ Show 20 Lines • Show All 265 Lines • ▼ Show 20 Line(s) | 1743 | { | |||
1750 | 1754 | | |||
1751 | // force refocus | 1755 | // force refocus | ||
1752 | emit checkFocus(0.1); | 1756 | emit checkFocus(0.1); | ||
1753 | 1757 | | |||
1754 | m_State = CAPTURE_FOCUSING; | 1758 | m_State = CAPTURE_FOCUSING; | ||
1755 | emit newStatus(Ekos::CAPTURE_FOCUSING); | 1759 | emit newStatus(Ekos::CAPTURE_FOCUSING); | ||
1756 | return true; | 1760 | return true; | ||
1757 | } | 1761 | } | ||
1758 | else if (isInSequenceFocus && --inSequenceFocusCounter == 0) | 1762 | else if (isInSequenceFocus && inSequenceFocusCounter <= 0) | ||
1759 | { | 1763 | { | ||
1760 | inSequenceFocusCounter = Options::inSequenceCheckFrames(); | 1764 | inSequenceFocusCounter = Options::inSequenceCheckFrames(); | ||
1761 | 1765 | | |||
1762 | // Post meridian flip we need to reset filter _before_ running in-sequence focusing | 1766 | // Post meridian flip we need to reset filter _before_ running in-sequence focusing | ||
1763 | // as it could have changed for whatever reason (e.g. alignment used a different filter). | 1767 | // as it could have changed for whatever reason (e.g. alignment used a different filter). | ||
1764 | // Then when focus process begins with the _target_ filter in place, it should take all the necessary actions to make it | 1768 | // Then when focus process begins with the _target_ filter in place, it should take all the necessary actions to make it | ||
1765 | // work for the next set of captures. This is direct reset to the filter device, not via Filter Manager. | 1769 | // work for the next set of captures. This is direct reset to the filter device, not via Filter Manager. | ||
1766 | if (meridianFlipStage != MF_NONE && currentFilter) | 1770 | if (meridianFlipStage != MF_NONE && currentFilter) | ||
▲ Show 20 Lines • Show All 4697 Lines • Show Last 20 Lines |