Kstars
schedulerutils.h
45 static void setupJob(SchedulerJob &job, const QString &name, bool isLead, const QString &group, const QString &train,
47 double djd, double rotation, const QUrl &sequenceUrl, const QUrl &fitsUrl, StartupCondition startup,
48 const QDateTime &startupTime, CompletionCondition completion, const QDateTime &completionTime, int completionRepeats,
49 double minimumAltitude, double minimumMoonSeparation, double maxMoonAltitude, bool enforceTwilight,
54 * @brief Fill the map signature -> frame count so that a single iteration of the scheduled job creates as many frames as possible
59 * @param capture_map map signature -> frame count that will be handed over to the capture module to control that a single iteration
60 * of the scheduler job creates as many frames as possible, but does not exceed the expected ones.
61 * @param completedIterations How many times has the job completed its capture sequence (for repeated jobs).
62 * @return total number of captured frames, truncated to the maximal number of frames the scheduler job could produce
64 static uint16_t fillCapturedFramesMap(const CapturedFramesMap &expected, const CapturedFramesMap &capturedFramesCount,
76 static void updateLightFramesRequired(SchedulerJob *oneJob, const QList<QSharedPointer<SequenceJob> > &seqjobs,
80 * @brief processJobInfo a utility used by loadSequenceQueue() to help it read a capture sequence file
88 * @brief loadSequenceQueue Loads what's necessary to estimate job completion time from a capture sequence queue file
92 * @param hasAutoFocus a return value indicating whether autofocus can be triggered by the sequence.
96 static bool loadSequenceQueue(const QString &fileURL, SchedulerJob *schedJob, QList<QSharedPointer<SequenceJob> > &jobs,
100 * @brief estimateJobTime Estimates the time the job takes to complete based on the sequence file and what modules to utilize during the observation run.
104 * @return true if the time could be estimated, false if the corresponding sequence file is invalid
106 static bool estimateJobTime(SchedulerJob *schedJob, const CapturedFramesMap &capturedFramesCount, ModuleLogger *logger);
109 * @brief timeHeuristics Estimates the number of seconds of overhead above and beyond imaging time, used by estimateJobTime.
116 * @brief Calculate the map signature -> expected number of captures from the given list of capture sequence jobs,
122 static uint16_t calculateExpectedCapturesMap(const QList<QSharedPointer<SequenceJob> > &seqJobs,
134 static double findAltitude(const SkyPoint &target, const QDateTime &when, bool *is_setting = nullptr,
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
QMap< QString, uint16_t > CapturedFramesMap
mapping signature --> frames count
Definition capturetypes.h:16
CompletionCondition
Conditions under which a SchedulerJob may complete.
Definition schedulertypes.h:80
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 28 2025 11:57:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 28 2025 11:57:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.