Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/capture/capture.cpp
Show First 20 Lines • Show All 4775 Lines • ▼ Show 20 Line(s) | 4775 | { | |||
---|---|---|---|---|---|
4776 | appendLogText(i18n("Post meridian flip calibration error. Restarting...")); | 4776 | appendLogText(i18n("Post meridian flip calibration error. Restarting...")); | ||
4777 | checkGuidingAfterFlip(); | 4777 | checkGuidingAfterFlip(); | ||
4778 | } | 4778 | } | ||
4779 | } | 4779 | } | ||
4780 | autoGuideReady = false; | 4780 | autoGuideReady = false; | ||
4781 | break; | 4781 | break; | ||
4782 | 4782 | | |||
4783 | case GUIDE_DITHERING_SUCCESS: | 4783 | case GUIDE_DITHERING_SUCCESS: | ||
4784 | qCInfo(KSTARS_EKOS_CAPTURE) << "Dithering succeeded, capture state" << getCaptureStatusString(m_State); | ||||
4785 | // do nothing if something happened during dithering | ||||
4786 | if (m_State != CAPTURE_DITHERING) | ||||
4787 | break; | ||||
4788 | | ||||
4784 | if (Options::guidingSettle() > 0) | 4789 | if (Options::guidingSettle() > 0) | ||
4785 | { | 4790 | { | ||
4786 | // N.B. Do NOT convert to i18np since guidingRate is DOUBLE value (e.g. 1.36) so we always use plural with that. | 4791 | // N.B. Do NOT convert to i18np since guidingRate is DOUBLE value (e.g. 1.36) so we always use plural with that. | ||
4787 | appendLogText(i18n("Dither complete. Resuming capture in %1 seconds...", Options::guidingSettle())); | 4792 | appendLogText(i18n("Dither complete. Resuming capture in %1 seconds...", Options::guidingSettle())); | ||
4788 | QTimer::singleShot(Options::guidingSettle() * 1000, this, &Ekos::Capture::resumeCapture); | 4793 | QTimer::singleShot(Options::guidingSettle() * 1000, this, &Ekos::Capture::resumeCapture); | ||
4789 | } | 4794 | } | ||
4790 | else | 4795 | else | ||
4791 | { | 4796 | { | ||
4792 | appendLogText(i18n("Dither complete.")); | 4797 | appendLogText(i18n("Dither complete.")); | ||
4793 | qCInfo(KSTARS_EKOS_CAPTURE) << "Dither complete, capture state" << getCaptureStatusString(m_State); | | |||
4794 | // resume only if nothing happened during dithering | | |||
4795 | if (m_State == CAPTURE_DITHERING) | | |||
4796 | resumeCapture(); | 4798 | resumeCapture(); | ||
4797 | } | 4799 | } | ||
4798 | break; | 4800 | break; | ||
4799 | 4801 | | |||
4800 | case GUIDE_DITHERING_ERROR: | 4802 | case GUIDE_DITHERING_ERROR: | ||
4803 | qCInfo(KSTARS_EKOS_CAPTURE) << "Dithering failed, capture state" << getCaptureStatusString(m_State); | ||||
4804 | if (m_State != CAPTURE_DITHERING) | ||||
4805 | break; | ||||
4806 | | ||||
4801 | if (Options::guidingSettle() > 0) | 4807 | if (Options::guidingSettle() > 0) | ||
4802 | { | 4808 | { | ||
4803 | // N.B. Do NOT convert to i18np since guidingRate is DOUBLE value (e.g. 1.36) so we always use plural with that. | 4809 | // N.B. Do NOT convert to i18np since guidingRate is DOUBLE value (e.g. 1.36) so we always use plural with that. | ||
4804 | appendLogText(i18n("Warning: Dithering failed. Resuming capture in %1 seconds...", Options::guidingSettle())); | 4810 | appendLogText(i18n("Warning: Dithering failed. Resuming capture in %1 seconds...", Options::guidingSettle())); | ||
4805 | QTimer::singleShot(Options::guidingSettle() * 1000, this, &Ekos::Capture::resumeCapture); | 4811 | QTimer::singleShot(Options::guidingSettle() * 1000, this, &Ekos::Capture::resumeCapture); | ||
4806 | } | 4812 | } | ||
4807 | else | 4813 | else | ||
4808 | { | 4814 | { | ||
▲ Show 20 Lines • Show All 1720 Lines • Show Last 20 Lines |