Kstars
schedulerutils.h
44 static void setupJob(SchedulerJob &job, const QString &name, bool isLead, const QString &group, const QString &train, const dms &ra, const dms &dec,
45 double djd, double rotation, const QUrl &sequenceUrl, const QUrl &fitsUrl, StartupCondition startup,
46 const QDateTime &startupTime, CompletionCondition completion, const QDateTime &completionTime, int completionRepeats,
52 * @brief Fill the map signature -> frame count so that a single iteration of the scheduled job creates as many frames as possible
57 * @param capture_map map signature -> frame count that will be handed over to the capture module to control that a single iteration
58 * of the scheduler job creates as many frames as possible, but does not exceed the expected ones.
59 * @param completedIterations How many times has the job completed its capture sequence (for repeated jobs).
60 * @return total number of captured frames, truncated to the maximal number of frames the scheduler job could produce
62 static uint16_t fillCapturedFramesMap(const CapturedFramesMap &expected, const CapturedFramesMap &capturedFramesCount, SchedulerJob &schedJob,
73 static void updateLightFramesRequired(SchedulerJob *oneJob, const QList<SequenceJob *> &seqjobs, const CapturedFramesMap &framesCount);
76 * @brief processJobInfo a utility used by loadSequenceQueue() to help it read a capture sequence file
84 * @brief loadSequenceQueue Loads what's necessary to estimate job completion time from a capture sequence queue file
88 * @param hasAutoFocus a return value indicating whether autofocus can be triggered by the sequence.
92 static bool loadSequenceQueue(const QString &fileURL, SchedulerJob *schedJob, QList<SequenceJob *> &jobs, bool &hasAutoFocus, ModuleLogger *logger);
95 * @brief estimateJobTime Estimates the time the job takes to complete based on the sequence file and what modules to utilize during the observation run.
99 * @return true if the time could be estimated, false if the corresponding sequence file is invalid
101 static bool estimateJobTime(SchedulerJob *schedJob, const CapturedFramesMap &capturedFramesCount, ModuleLogger *logger);
104 * @brief timeHeuristics Estimates the number of seconds of overhead above and beyond imaging time, used by estimateJobTime.
111 * @brief Calculate the map signature -> expected number of captures from the given list of capture sequence jobs,
117 static uint16_t calculateExpectedCapturesMap(const QList<SequenceJob *> &seqJobs, CapturedFramesMap &expected);
128 static double findAltitude(const SkyPoint &target, const QDateTime &when, bool *is_setting = nullptr, GeoLocation *geo = nullptr, bool debug = false);
Contains all relevant information for specifying a location on Earth: City Name, State/Province name,...
Definition geolocation.h:28
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:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.