Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/manager.cpp
Show First 20 Lines • Show All 2807 Lines • ▼ Show 20 Line(s) | 2807 | if (job->isPreview() == false) | |||
---|---|---|---|---|---|
2808 | ekosLiveClient.get()->cloud()->sendPreviewImage(filename, uuid); | 2808 | ekosLiveClient.get()->cloud()->sendPreviewImage(filename, uuid); | ||
2809 | 2809 | | |||
2810 | } | 2810 | } | ||
2811 | } | 2811 | } | ||
2812 | 2812 | | |||
2813 | void Manager::updateExposureProgress(Ekos::SequenceJob * job) | 2813 | void Manager::updateExposureProgress(Ekos::SequenceJob * job) | ||
2814 | { | 2814 | { | ||
2815 | imageCountDown.setHMS(0, 0, 0); | 2815 | imageCountDown.setHMS(0, 0, 0); | ||
2816 | imageCountDown = imageCountDown.addSecs(job->getExposeLeft()); | 2816 | imageCountDown = imageCountDown.addSecs(job->getExposureAndDownloadTimeLeft()); | ||
2817 | if (imageCountDown.hour() == 23) | 2817 | if (imageCountDown.hour() == 23) | ||
2818 | imageCountDown.setHMS(0, 0, 0); | 2818 | imageCountDown.setHMS(0, 0, 0); | ||
2819 | 2819 | | |||
2820 | imageProgress->setRange(0, job->getExposure()); | 2820 | imageProgress->setRange(0, job->getExposure() + captureProcess->getEstimatedDownloadTime()); | ||
2821 | imageProgress->setValue(job->getExposeLeft()); | 2821 | imageProgress->setValue(job->getExposureAndDownloadTimeLeft()); | ||
2822 | 2822 | | |||
2823 | imageRemainingTime->setText(imageCountDown.toString("hh:mm:ss")); | 2823 | imageRemainingTime->setText(imageCountDown.toString("hh:mm:ss")); | ||
2824 | 2824 | | |||
2825 | QJsonObject status | 2825 | QJsonObject status | ||
2826 | { | 2826 | { | ||
2827 | {"expv", job->getExposeLeft()}, | 2827 | {"expv", job->getExposureAndDownloadTimeLeft()}, | ||
2828 | {"expr", job->getExposure()} | 2828 | {"expr", job->getExposure()} | ||
2829 | }; | 2829 | }; | ||
2830 | 2830 | | |||
2831 | ekosLiveClient.get()->message()->updateCaptureStatus(status); | 2831 | ekosLiveClient.get()->message()->updateCaptureStatus(status); | ||
2832 | } | 2832 | } | ||
2833 | 2833 | | |||
2834 | void Manager::updateCaptureCountDown() | 2834 | void Manager::updateCaptureCountDown() | ||
2835 | { | 2835 | { | ||
▲ Show 20 Lines • Show All 527 Lines • Show Last 20 Lines |