Kstars
schedulerutils.h
43 static void setupJob(SchedulerJob &job, const QString &name, bool isLead, const QString &group, const QString &train, const dms &ra, const dms &dec,
44 double djd, double rotation, const QUrl &sequenceUrl, const QUrl &fitsUrl, StartupCondition startup,
45 const QDateTime &startupTime, CompletionCondition completion, const QDateTime &completionTime, int completionRepeats,
51 * @brief Fill the map signature -> frame count so that a single iteration of the scheduled job creates as many frames as possible
56 * @param capture_map map signature -> frame count that will be handed over to the capture module to control that a single iteration
57 * of the scheduler job creates as many frames as possible, but does not exceed the expected ones.
58 * @param completedIterations How many times has the job completed its capture sequence (for repeated jobs).
59 * @return total number of captured frames, truncated to the maximal number of frames the scheduler job could produce
61 static uint16_t fillCapturedFramesMap(const CapturedFramesMap &expected, const CapturedFramesMap &capturedFramesCount, SchedulerJob &schedJob,
72 static void updateLightFramesRequired(SchedulerJob *oneJob, const QList<SequenceJob *> &seqjobs, const CapturedFramesMap &framesCount);
75 * @brief processJobInfo a utility used by loadSequenceQueue() to help it read a capture sequence file
83 * @brief loadSequenceQueue Loads what's necessary to estimate job completion time from a capture sequence queue file
87 * @param hasAutoFocus a return value indicating whether autofocus can be triggered by the sequence.
91 static bool loadSequenceQueue(const QString &fileURL, SchedulerJob *schedJob, QList<SequenceJob *> &jobs, bool &hasAutoFocus, ModuleLogger *logger);
94 * @brief estimateJobTime Estimates the time the job takes to complete based on the sequence file and what modules to utilize during the observation run.
98 * @return true if the time could be estimated, false if the corresponding sequence file is invalid
100 static bool estimateJobTime(SchedulerJob *schedJob, const CapturedFramesMap &capturedFramesCount, ModuleLogger *logger);
103 * @brief timeHeuristics Estimates the number of seconds of overhead above and beyond imaging time, used by estimateJobTime.
110 * @brief Calculate the map signature -> expected number of captures from the given list of capture sequence jobs,
116 static uint16_t calculateExpectedCapturesMap(const QList<SequenceJob *> &seqJobs, CapturedFramesMap &expected);
127 static double findAltitude(const SkyPoint &target, const QDateTime &when, bool *is_setting = nullptr, bool debug = false);
Sequence Job is a container for the details required to capture a series of images.
QMap< QString, uint16_t > CapturedFramesMap
mapping signature --> frames count
Definition capturetypes.h:15
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.