Ekos::SchedulerProcess
#include <schedulerprocess.h>
Properties | |
QString | currentJobJson |
QString | currentJobName |
QString | jsonJobs |
QStringList | logText |
QString | profile |
Ekos::SchedulerState | status |
Properties inherited from QObject | |
objectName | |
Signals | |
void | addJob (SchedulerJob *job) |
void | changeCurrentSequence (const QString &sequenceFileURL) |
void | changeSleepLabel (QString text, bool show=true) |
void | clearJobTable () |
void | interfaceReady (QDBusInterface *iface) |
void | jobEnded (const QString &jobName, const QString &endReason) |
void | jobStarted (const QString &jobName) |
void | jobsUpdated (QJsonArray jobsList) |
void | newLog (const QString &text) |
void | newStatus (SchedulerState state) |
void | newWeatherStatus (ISD::Weather::Status state) |
void | schedulerPaused () |
void | schedulerSleeping (bool shutdown, bool sleep) |
void | schedulerStopped () |
void | shutdownStarted () |
void | syncGreedyParams () |
void | syncGUIToGeneralSettings () |
void | targetDistance (double distance) |
void | updateJobTable (SchedulerJob *job=nullptr) |
void | updateSchedulerURL (const QString &fileURL) |
Public Member Functions | |
SchedulerProcess (QSharedPointer< SchedulerModuleState > state, const QString &ekosPathStr, const QString &ekosInterfaceStr) | |
QPointer< QDBusInterface > | alignInterface () const |
Q_SCRIPTABLE bool | appendEkosScheduleList (const QString &fileURL) |
Q_SCRIPTABLE Q_NOREPLY void | appendLogText (const QString &logentry) override |
void | applyConfig () |
QPointer< QDBusInterface > | capInterface () const |
QPointer< QDBusInterface > | captureInterface () const |
void | checkCapParkingStatus () |
bool | checkEkosState () |
bool | checkINDIState () |
void | checkJobStage () |
void | checkJobStageEpilogue () |
Q_SCRIPTABLE bool | checkParkWaitState () |
bool | checkShutdownState () |
bool | checkStartupState () |
bool | checkStatus () |
Q_SCRIPTABLE void | clearLog () |
Q_SCRIPTABLE bool | completeShutdown () |
bool | createJobSequence (XMLEle *root, const QString &prefix, const QString &outputDir) |
QString | currentJobJson () |
QString | currentJobName () |
Q_SCRIPTABLE Q_NOREPLY void | disconnectINDI () |
QPointer< QDBusInterface > | domeInterface () const |
QPointer< QDBusInterface > | ekosInterface () const |
Q_SCRIPTABLE Q_NOREPLY void | evaluateJobs (bool evaluateOnly) |
Q_SCRIPTABLE void | execute () |
bool | executeJob (SchedulerJob *job) |
void | findNextJob () |
QPointer< QDBusInterface > | focusInterface () const |
QPointer< GreedyScheduler > & | getGreedyScheduler () |
GuideState | getGuidingStatus () |
void | getNextAction () |
XMLEle * | getSequenceJobRoot (const QString &filename) const |
QPointer< QDBusInterface > | guideInterface () const |
QPointer< QDBusInterface > | indiInterface () const |
Q_SCRIPTABLE bool | isDomeParked () |
Q_SCRIPTABLE bool | isMountParked () |
void | iterate () |
QString | jsonJobs () |
void | loadProfiles () |
Q_SCRIPTABLE bool | loadScheduler (const QString &fileURL) |
QStringList | logText () |
bool | manageConnectionLoss () |
QSharedPointer< SchedulerModuleState > | moduleState () const |
QPointer< QDBusInterface > | mountInterface () const |
QPointer< QDBusInterface > | observatoryInterface () const |
void | processGuidingTimer () |
const QString & | profile () const |
Q_SCRIPTABLE Q_NOREPLY void | removeAllJobs () |
Q_SCRIPTABLE Q_NOREPLY void | resetAllJobs () |
Q_SCRIPTABLE Q_NOREPLY void | resetJobs () |
int | runSchedulerIteration () |
Q_SCRIPTABLE Q_NOREPLY void | runShutdownProcedure () |
Q_SCRIPTABLE Q_NOREPLY void | runStartupProcedure () |
Q_SCRIPTABLE bool | saveScheduler (const QUrl &fileURL) |
QProcess & | scriptProcess () |
void | selectActiveJob (const QList< SchedulerJob * > &jobs) |
void | setAlignInterface (QPointer< QDBusInterface > newInterface) |
void | setAlignInterfaceString (const QString &interface) |
void | setAlignPathString (const QString &interface) |
void | setCapInterface (QPointer< QDBusInterface > newInterface) |
void | setCaptureInterface (QPointer< QDBusInterface > newInterface) |
void | setCaptureInterfaceString (const QString &interface) |
void | setCapturePathString (const QString &interface) |
void | setDomeInterface (QPointer< QDBusInterface > newInterface) |
void | setDomeInterfaceString (const QString &interface) |
void | setDomePathString (const QString &interface) |
void | setDustCapInterfaceString (const QString &interface) |
void | setDustCapPathString (const QString &interface) |
void | setEkosInterface (QPointer< QDBusInterface > newInterface) |
void | setFocusInterface (QPointer< QDBusInterface > newInterface) |
void | setFocusInterfaceString (const QString &interface) |
void | setFocusPathString (const QString &interface) |
void | setGuideInterface (QPointer< QDBusInterface > newInterface) |
void | setGuideInterfaceString (const QString &interface) |
void | setGuidePathString (const QString &interface) |
void | setIndiInterface (QPointer< QDBusInterface > newInterface) |
void | setMountInterface (QPointer< QDBusInterface > newInterface) |
void | setMountInterfaceString (const QString &interface) |
void | setMountPathString (const QString &interface) |
void | setObservatoryInterface (QPointer< QDBusInterface > newInterface) |
void | setObservatoryInterfaceString (const QString &interface) |
void | setObservatoryPathString (const QString &interface) |
Q_SCRIPTABLE Q_NOREPLY void | setPaused () |
void | setProfile (const QString &newProfile) |
Q_SCRIPTABLE Q_NOREPLY void | setSequence (const QString &sequenceFileURL) |
void | setSolverAction (Align::GotoMode mode) |
void | setWeatherInterface (QPointer< QDBusInterface > newInterface) |
void | setWeatherInterfaceString (const QString &interface) |
void | setWeatherPathString (const QString &interface) |
bool | shouldSchedulerSleep (SchedulerJob *job) |
void | simClockScaleChanged (float) |
void | simClockTimeChanged () |
Q_SCRIPTABLE Q_NOREPLY void | start () |
Q_SCRIPTABLE Q_NOREPLY void | startAstrometry () |
Q_SCRIPTABLE Q_NOREPLY void | startCapture (bool restart=false) |
Q_SCRIPTABLE Q_NOREPLY void | startFocusing () |
Q_SCRIPTABLE Q_NOREPLY void | startGuiding (bool resetCalibration=false) |
Q_SCRIPTABLE Q_NOREPLY void | startJobEvaluation () |
void | startSingleCapture (SchedulerJob *job, bool restart=false) |
Q_SCRIPTABLE Q_NOREPLY void | startSlew () |
SchedulerState | status () |
Q_SCRIPTABLE Q_NOREPLY void | stop () |
Q_SCRIPTABLE void | stopCurrentJobAction () |
Q_SCRIPTABLE Q_NOREPLY void | stopGuiding () |
void | updateCompletedJobsCount (bool forced=false) |
Q_SCRIPTABLE void | wakeUpScheduler () |
QPointer< QDBusInterface > | weatherInterface () const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QBindable< QString > | bindableObjectName () |
bool | blockSignals (bool block) |
const QObjectList & | children () const const |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectInfo () const const |
void | dumpObjectTree () const const |
QList< QByteArray > | dynamicPropertyNames () const const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (Qt::FindChildOptions options) const const |
bool | inherits (const char *className) const const |
void | installEventFilter (QObject *filterObj) |
bool | isQuickItemType () const const |
bool | isWidgetType () const const |
bool | isWindowType () const const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const const |
void | moveToThread (QThread *targetThread) |
QString | objectName () const const |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
QVariant | property (const char *name) const const |
Q_CLASSINFO (Name, Value) | |
Q_EMIT Q_EMIT | |
Q_ENUM (...) | |
Q_ENUM_NS (...) | |
Q_ENUMS (...) | |
Q_FLAG (...) | |
Q_FLAG_NS (...) | |
Q_FLAGS (...) | |
Q_GADGET Q_GADGET | |
Q_GADGET_EXPORT (EXPORT_MACRO) | |
Q_INTERFACES (...) | |
Q_INVOKABLE Q_INVOKABLE | |
Q_MOC_INCLUDE Q_MOC_INCLUDE | |
Q_NAMESPACE Q_NAMESPACE | |
Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
Q_OBJECT Q_OBJECT | |
Q_PROPERTY (...) | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
Q_SIGNAL Q_SIGNAL | |
Q_SIGNALS Q_SIGNALS | |
Q_SLOT Q_SLOT | |
Q_SLOTS Q_SLOTS | |
T | qobject_cast (const QObject *object) |
T | qobject_cast (QObject *object) |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
void | removeEventFilter (QObject *obj) |
void | setObjectName (const QString &name) |
void | setObjectName (QAnyStringView name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | setProperty (const char *name, QVariant &&value) |
bool | signalsBlocked () const const |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType) |
QThread * | thread () const const |
Public Attributes | |
QString | alignInterfaceString { "org.kde.kstars.Ekos.Align" } |
QString | alignPathString { "/KStars/Ekos/Align" } |
QString | captureInterfaceString { "org.kde.kstars.Ekos.Capture" } |
QString | capturePathString { "/KStars/Ekos/Capture" } |
QString | domeInterfaceString { "org.kde.kstars.INDI.Dome" } |
QString | domePathString |
QString | dustCapInterfaceString { "org.kde.kstars.INDI.DustCap" } |
QString | dustCapPathString |
QString | focusInterfaceString { "org.kde.kstars.Ekos.Focus" } |
QString | focusPathString { "/KStars/Ekos/Focus" } |
QString | guideInterfaceString { "org.kde.kstars.Ekos.Guide" } |
QString | guidePathString { "/KStars/Ekos/Guide" } |
QPointer< Ekos::GreedyScheduler > | m_GreedyScheduler |
QSharedPointer< SchedulerModuleState > | m_moduleState |
QString | mountInterfaceString { "org.kde.kstars.Ekos.Mount" } |
QString | mountPathString { "/KStars/Ekos/Mount" } |
QString | observatoryInterfaceString { "org.kde.kstars.Ekos.Observatory" } |
QString | observatoryPathString { "/KStars/Ekos/Observatory" } |
QString | weatherInterfaceString { "org.kde.kstars.INDI.Weather" } |
QString | weatherPathString |
Additional Inherited Members | |
Public Types inherited from QObject | |
typedef | QObjectList |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Detailed Description
The SchedulerProcess class holds the entire business logic for controlling the execution of the EKOS scheduler.
Definition at line 33 of file schedulerprocess.h.
Property Documentation
◆ currentJobJson
|
read |
Definition at line 40 of file schedulerprocess.h.
◆ currentJobName
|
read |
Definition at line 39 of file schedulerprocess.h.
◆ jsonJobs
|
read |
Definition at line 41 of file schedulerprocess.h.
◆ logText
|
read |
Definition at line 42 of file schedulerprocess.h.
◆ profile
|
readwrite |
Definition at line 38 of file schedulerprocess.h.
◆ status
|
read |
Definition at line 37 of file schedulerprocess.h.
Constructor & Destructor Documentation
◆ SchedulerProcess()
Ekos::SchedulerProcess::SchedulerProcess | ( | QSharedPointer< SchedulerModuleState > | state, |
const QString & | ekosPathStr, | ||
const QString & | ekosInterfaceStr ) |
Definition at line 38 of file schedulerprocess.cpp.
Member Function Documentation
◆ alignInterface()
|
inline |
Definition at line 501 of file schedulerprocess.h.
◆ appendEkosScheduleList()
bool Ekos::SchedulerProcess::appendEkosScheduleList | ( | const QString & | fileURL | ) |
appendEkosScheduleList Append the contents of an ESL file to the queue.
- Parameters
-
fileURL File URL to load contents from.
- Returns
- True if contents were loaded successfully, else false.
Definition at line 3310 of file schedulerprocess.cpp.
◆ appendLogText()
|
override |
appendLogText Append a new line to the logging.
Definition at line 3492 of file schedulerprocess.cpp.
◆ applyConfig()
void Ekos::SchedulerProcess::applyConfig | ( | ) |
applyConfig Apply configuration changes from the global configuration dialog.
Definition at line 2909 of file schedulerprocess.cpp.
◆ capInterface()
|
inline |
Definition at line 541 of file schedulerprocess.h.
◆ captureInterface()
|
inline |
Definition at line 485 of file schedulerprocess.h.
◆ checkCapParkingStatus()
void Ekos::SchedulerProcess::checkCapParkingStatus | ( | ) |
checkDomeParkingStatus check dome parking status and updating corresponding states accordingly.
Definition at line 1561 of file schedulerprocess.cpp.
◆ checkEkosState()
bool Ekos::SchedulerProcess::checkEkosState | ( | ) |
checkEkosState Check ekos startup stages and take whatever action necessary to get Ekos up and running
Definition at line 1212 of file schedulerprocess.cpp.
◆ checkINDIState()
bool Ekos::SchedulerProcess::checkINDIState | ( | ) |
checkINDIState Check INDI startup stages and take whatever action necessary to get INDI devices connected.
- Returns
- True if INDI devices are connected, false if it is under progress.
Definition at line 1302 of file schedulerprocess.cpp.
◆ checkJobStage()
void Ekos::SchedulerProcess::checkJobStage | ( | ) |
checkJobStage Check the progress of the job states and make DBUS calls to start the next stage until the job is complete.
Definition at line 2711 of file schedulerprocess.cpp.
◆ checkJobStageEpilogue()
void Ekos::SchedulerProcess::checkJobStageEpilogue | ( | ) |
Definition at line 2736 of file schedulerprocess.cpp.
◆ checkParkWaitState()
bool Ekos::SchedulerProcess::checkParkWaitState | ( | ) |
checkParkWaitState Check park wait state.
- Returns
- If parking/unparking in progress, return false. If parking/unparking complete, return true.
Definition at line 2133 of file schedulerprocess.cpp.
◆ checkShutdownState()
bool Ekos::SchedulerProcess::checkShutdownState | ( | ) |
checkShutdownState Check shutdown procedure stages and make sure all stages are complete.
- Returns
Definition at line 1991 of file schedulerprocess.cpp.
◆ checkStartupState()
bool Ekos::SchedulerProcess::checkStartupState | ( | ) |
checkStartupState Check startup procedure stages and make sure all stages are complete.
- Returns
- True if startup is complete, false otherwise.
Definition at line 1881 of file schedulerprocess.cpp.
◆ checkStatus()
bool Ekos::SchedulerProcess::checkStatus | ( | ) |
checkJobStatus Check the overall state of the scheduler, Ekos, and INDI.
When all is OK, it calls evaluateJobs() when no job is current or executeJob() if a job is selected.
- Returns
- False if this function needs to be called again later, true if situation is stable and operations may continue.
Definition at line 2428 of file schedulerprocess.cpp.
◆ clearLog()
void Ekos::SchedulerProcess::clearLog | ( | ) |
clearLog Clear log entry
Definition at line 3507 of file schedulerprocess.cpp.
◆ completeShutdown()
bool Ekos::SchedulerProcess::completeShutdown | ( | ) |
completeShutdown Try to complete the scheduler shutdown
- Returns
- false iff some further action is required
Definition at line 1452 of file schedulerprocess.cpp.
◆ createJobSequence()
bool Ekos::SchedulerProcess::createJobSequence | ( | XMLEle * | root, |
const QString & | prefix, | ||
const QString & | outputDir ) |
createJobSequence Creates a job sequence for the mosaic tool given the prefix and output dir.
The currently selected sequence file is modified and a new version given the supplied parameters are saved to the output directory
- Parameters
-
prefix Prefix to set for the job sequence outputDir Output dir to set for the job sequence
- Returns
- True if new file is saved, false otherwise
Definition at line 4614 of file schedulerprocess.cpp.
◆ disconnectINDI()
void Ekos::SchedulerProcess::disconnectINDI | ( | ) |
disconnectINDI disconnect all INDI devices from server.
Definition at line 1488 of file schedulerprocess.cpp.
◆ domeInterface()
|
inline |
Definition at line 525 of file schedulerprocess.h.
◆ ekosInterface()
|
inline |
Definition at line 461 of file schedulerprocess.h.
◆ evaluateJobs()
void Ekos::SchedulerProcess::evaluateJobs | ( | bool | evaluateOnly | ) |
evaluateJobs evaluates the current state of each objects and gives each one a score based on the constraints.
Given that score, the scheduler will decide which is the best job that needs to be executed.
Definition at line 2399 of file schedulerprocess.cpp.
◆ execute()
void Ekos::SchedulerProcess::execute | ( | ) |
execute Execute the schedule, start if idle or paused.
Definition at line 79 of file schedulerprocess.cpp.
◆ executeJob()
bool Ekos::SchedulerProcess::executeJob | ( | SchedulerJob * | job | ) |
executeJob After the best job is selected, we call this in order to start the process that will execute the job.
checkJobStatus slot will be connected in order to figure the exact state of the current job each second
- Returns
- True if job is accepted and can be executed, false otherwise.
Definition at line 2919 of file schedulerprocess.cpp.
◆ findNextJob()
void Ekos::SchedulerProcess::findNextJob | ( | ) |
findNextJob Check if the job met the completion criteria, and if it did, then it search for next job candidate.
If no jobs are found, it starts the shutdown stage.
Definition at line 128 of file schedulerprocess.cpp.
◆ focusInterface()
|
inline |
Definition at line 477 of file schedulerprocess.h.
◆ getGreedyScheduler()
|
inline |
Definition at line 352 of file schedulerprocess.h.
◆ getGuidingStatus()
GuideState Ekos::SchedulerProcess::getGuidingStatus | ( | ) |
getGuidingStatus Retrieve the guiding status.
Definition at line 4339 of file schedulerprocess.cpp.
◆ getNextAction()
void Ekos::SchedulerProcess::getNextAction | ( | ) |
getNextAction Checking for the next appropriate action regarding the current state of the scheduler and execute it
Definition at line 2552 of file schedulerprocess.cpp.
◆ getSequenceJobRoot()
XMLEle * Ekos::SchedulerProcess::getSequenceJobRoot | ( | const QString & | filename | ) | const |
getSequenceJobRoot Read XML data from capture sequence job
- Parameters
-
filename
- Returns
Definition at line 4661 of file schedulerprocess.cpp.
◆ guideInterface()
|
inline |
Definition at line 509 of file schedulerprocess.h.
◆ indiInterface()
|
inline |
Definition at line 469 of file schedulerprocess.h.
◆ isDomeParked()
bool Ekos::SchedulerProcess::isDomeParked | ( | ) |
- Returns
- True if dome is parked
Definition at line 4386 of file schedulerprocess.cpp.
◆ isMountParked()
bool Ekos::SchedulerProcess::isMountParked | ( | ) |
- Returns
- True if mount is parked
Definition at line 4213 of file schedulerprocess.cpp.
◆ iterate()
void Ekos::SchedulerProcess::iterate | ( | ) |
Repeatedly runs a scheduler iteration and then sleeps timerInterval millisconds and run the next iteration.
This continues until the sleep time is negative.
Definition at line 2650 of file schedulerprocess.cpp.
◆ loadProfiles()
void Ekos::SchedulerProcess::loadProfiles | ( | ) |
loadProfiles Load the existing EKOS profiles
Definition at line 1187 of file schedulerprocess.cpp.
◆ loadScheduler()
bool Ekos::SchedulerProcess::loadScheduler | ( | const QString & | fileURL | ) |
DBUS interface function.
Loads the Ekos Scheduler List (.esl) file.
- Parameters
-
fileURL path to a file
- Returns
- true if loading file is successful, false otherwise.
Definition at line 620 of file schedulerprocess.cpp.
◆ manageConnectionLoss()
bool Ekos::SchedulerProcess::manageConnectionLoss | ( | ) |
manageConnectionLoss Mitigate loss of connection with the INDI server.
- Returns
- true if connection to Ekos/INDI should be attempted again, false if not mitigation is available or needed.
Definition at line 1507 of file schedulerprocess.cpp.
◆ moduleState()
|
inline |
Definition at line 346 of file schedulerprocess.h.
◆ mountInterface()
|
inline |
Definition at line 493 of file schedulerprocess.h.
◆ observatoryInterface()
|
inline |
Definition at line 517 of file schedulerprocess.h.
◆ processGuidingTimer()
void Ekos::SchedulerProcess::processGuidingTimer | ( | ) |
processGuidingTimer Check the guiding timer, and possibly restart guiding.
Definition at line 1047 of file schedulerprocess.cpp.
◆ profile()
const QString & Ekos::SchedulerProcess::profile | ( | ) | const |
Definition at line 4347 of file schedulerprocess.cpp.
◆ removeAllJobs()
void Ekos::SchedulerProcess::removeAllJobs | ( | ) |
DBUS interface function.
Remove all scheduler jobs
Definition at line 610 of file schedulerprocess.cpp.
◆ resetAllJobs()
void Ekos::SchedulerProcess::resetAllJobs | ( | ) |
DBUS interface function.
Resets all jobs to IDLE
Definition at line 631 of file schedulerprocess.cpp.
◆ resetJobs()
void Ekos::SchedulerProcess::resetJobs | ( | ) |
resetJobs Reset all jobs counters
Definition at line 2313 of file schedulerprocess.cpp.
◆ runSchedulerIteration()
int Ekos::SchedulerProcess::runSchedulerIteration | ( | ) |
Run a single scheduler iteration.
Definition at line 2662 of file schedulerprocess.cpp.
◆ runShutdownProcedure()
void Ekos::SchedulerProcess::runShutdownProcedure | ( | ) |
runShutdownProcedure Shutdown the scheduler itself and EKOS (if configured to do so).
Definition at line 2242 of file schedulerprocess.cpp.
◆ runStartupProcedure()
void Ekos::SchedulerProcess::runStartupProcedure | ( | ) |
runStartupProcedure Execute the startup of the scheduler itself to be prepared for running scheduler jobs.
Definition at line 2176 of file schedulerprocess.cpp.
◆ saveScheduler()
bool Ekos::SchedulerProcess::saveScheduler | ( | const QUrl & | fileURL | ) |
saveScheduler Save scheduler jobs to a file
- Parameters
-
path path of a file
- Returns
- true on success, false on failure.
Definition at line 2967 of file schedulerprocess.cpp.
◆ scriptProcess()
|
inline |
Definition at line 571 of file schedulerprocess.h.
◆ selectActiveJob()
void Ekos::SchedulerProcess::selectActiveJob | ( | const QList< SchedulerJob * > & | jobs | ) |
selectActiveJob Select the job that should be executed
Definition at line 2326 of file schedulerprocess.cpp.
◆ setAlignInterface()
|
inline |
Definition at line 505 of file schedulerprocess.h.
◆ setAlignInterfaceString()
|
inline |
Definition at line 395 of file schedulerprocess.h.
◆ setAlignPathString()
|
inline |
Definition at line 400 of file schedulerprocess.h.
◆ setCapInterface()
|
inline |
Definition at line 545 of file schedulerprocess.h.
◆ setCaptureInterface()
|
inline |
Definition at line 489 of file schedulerprocess.h.
◆ setCaptureInterfaceString()
|
inline |
Definition at line 384 of file schedulerprocess.h.
◆ setCapturePathString()
|
inline |
Definition at line 389 of file schedulerprocess.h.
◆ setDomeInterface()
|
inline |
Definition at line 529 of file schedulerprocess.h.
◆ setDomeInterfaceString()
|
inline |
Definition at line 428 of file schedulerprocess.h.
◆ setDomePathString()
|
inline |
Definition at line 434 of file schedulerprocess.h.
◆ setDustCapInterfaceString()
|
inline |
Definition at line 451 of file schedulerprocess.h.
◆ setDustCapPathString()
|
inline |
Definition at line 456 of file schedulerprocess.h.
◆ setEkosInterface()
|
inline |
Definition at line 465 of file schedulerprocess.h.
◆ setFocusInterface()
|
inline |
Definition at line 481 of file schedulerprocess.h.
◆ setFocusInterfaceString()
|
inline |
Definition at line 362 of file schedulerprocess.h.
◆ setFocusPathString()
|
inline |
Definition at line 367 of file schedulerprocess.h.
◆ setGuideInterface()
|
inline |
Definition at line 513 of file schedulerprocess.h.
◆ setGuideInterfaceString()
|
inline |
Definition at line 406 of file schedulerprocess.h.
◆ setGuidePathString()
|
inline |
Definition at line 411 of file schedulerprocess.h.
◆ setIndiInterface()
|
inline |
Definition at line 473 of file schedulerprocess.h.
◆ setMountInterface()
|
inline |
Definition at line 497 of file schedulerprocess.h.
◆ setMountInterfaceString()
|
inline |
Definition at line 373 of file schedulerprocess.h.
◆ setMountPathString()
|
inline |
Definition at line 378 of file schedulerprocess.h.
◆ setObservatoryInterface()
|
inline |
Definition at line 521 of file schedulerprocess.h.
◆ setObservatoryInterfaceString()
|
inline |
Definition at line 417 of file schedulerprocess.h.
◆ setObservatoryPathString()
|
inline |
Definition at line 422 of file schedulerprocess.h.
◆ setPaused()
void Ekos::SchedulerProcess::setPaused | ( | ) |
setPaused pausing the scheduler
Definition at line 2306 of file schedulerprocess.cpp.
◆ setProfile()
void Ekos::SchedulerProcess::setProfile | ( | const QString & | newProfile | ) |
Definition at line 4352 of file schedulerprocess.cpp.
◆ setSequence()
void Ekos::SchedulerProcess::setSequence | ( | const QString & | sequenceFileURL | ) |
DBUS interface function.
Set the file URL pointing to the capture sequence file
- Parameters
-
sequenceFileURL URL of the capture sequence file
Definition at line 626 of file schedulerprocess.cpp.
◆ setSolverAction()
void Ekos::SchedulerProcess::setSolverAction | ( | Align::GotoMode | mode | ) |
setSolverAction set the GOTO mode for the solver
- Parameters
-
mode 0 For Sync, 1 for SlewToTarget, 2 for Nothing
Definition at line 1181 of file schedulerprocess.cpp.
◆ setWeatherInterface()
|
inline |
Definition at line 537 of file schedulerprocess.h.
◆ setWeatherInterfaceString()
|
inline |
Definition at line 440 of file schedulerprocess.h.
◆ setWeatherPathString()
|
inline |
Definition at line 445 of file schedulerprocess.h.
◆ shouldSchedulerSleep()
bool Ekos::SchedulerProcess::shouldSchedulerSleep | ( | SchedulerJob * | job | ) |
shouldSchedulerSleep Check if the scheduler needs to sleep until the job is ready
- Parameters
-
job Job to check
- Returns
- True if we set the scheduler to sleep mode. False, if not required and we need to execute now
Definition at line 644 of file schedulerprocess.cpp.
◆ simClockScaleChanged()
void Ekos::SchedulerProcess::simClockScaleChanged | ( | float | newScale | ) |
Definition at line 4407 of file schedulerprocess.cpp.
◆ simClockTimeChanged()
void Ekos::SchedulerProcess::simClockTimeChanged | ( | ) |
Definition at line 4422 of file schedulerprocess.cpp.
◆ start()
void Ekos::SchedulerProcess::start | ( | ) |
DBUS interface function.
Setup the main loop and start.
Definition at line 510 of file schedulerprocess.cpp.
◆ startAstrometry()
void Ekos::SchedulerProcess::startAstrometry | ( | ) |
startAstrometry initiation of the capture and solve operation.
We change the job state after solver is started
Definition at line 870 of file schedulerprocess.cpp.
◆ startCapture()
void Ekos::SchedulerProcess::startCapture | ( | bool | restart = false | ) |
startCapture The current job file name is solved to an url which is fed to ekos.
We then start the capture process
- Parameters
-
restart Set to true if the goal to restart an existing sequence. The only difference is that when a sequence is restarted, sequence file is not loaded from disk again since that results in erasing all the history of the capture process.
Definition at line 1057 of file schedulerprocess.cpp.
◆ startFocusing()
void Ekos::SchedulerProcess::startFocusing | ( | ) |
startFocusing DBus call for feeding ekos the specified settings and initiating focus operation
Definition at line 764 of file schedulerprocess.cpp.
◆ startGuiding()
void Ekos::SchedulerProcess::startGuiding | ( | bool | resetCalibration = false | ) |
startGuiding After ekos is fed the calibration options, we start the guiding process
- Parameters
-
resetCalibration By default calibration is not reset until it is explicitly requested
Definition at line 990 of file schedulerprocess.cpp.
◆ startJobEvaluation()
void Ekos::SchedulerProcess::startJobEvaluation | ( | ) |
startJobEvaluation Start job evaluation only without starting the scheduler process itself.
Display the result to the user.
Definition at line 2385 of file schedulerprocess.cpp.
◆ startSingleCapture()
void Ekos::SchedulerProcess::startSingleCapture | ( | SchedulerJob * | job, |
bool | restart = false ) |
Definition at line 1096 of file schedulerprocess.cpp.
◆ startSlew()
void Ekos::SchedulerProcess::startSlew | ( | ) |
startSlew DBus call for initiating slew
Definition at line 726 of file schedulerprocess.cpp.
◆ stop()
void Ekos::SchedulerProcess::stop | ( | ) |
DBUS interface function.
stop Stop the scheduler execution. If stopping succeeded, a {
- See also
- schedulerStopped()} signal is emitted
Definition at line 522 of file schedulerprocess.cpp.
◆ stopCurrentJobAction()
void Ekos::SchedulerProcess::stopCurrentJobAction | ( | ) |
stopCurrentJobAction Stop whatever action taking place in the current job (eg.
capture, guiding...etc).
Definition at line 449 of file schedulerprocess.cpp.
◆ stopGuiding()
void Ekos::SchedulerProcess::stopGuiding | ( | ) |
stopGuiding After guiding is done we need to stop the process
Definition at line 1027 of file schedulerprocess.cpp.
◆ updateCompletedJobsCount()
void Ekos::SchedulerProcess::updateCompletedJobsCount | ( | bool | forced = false | ) |
updateCompletedJobsCount For each scheduler job, examine sequence job storage and count captures.
- Parameters
-
forced forces recounting captures unconditionally if true, else only IDLE, EVALUATION or new jobs are examined.
Definition at line 4740 of file schedulerprocess.cpp.
◆ wakeUpScheduler()
void Ekos::SchedulerProcess::wakeUpScheduler | ( | ) |
wakeUpScheduler Wake up scheduler from sleep state
Definition at line 491 of file schedulerprocess.cpp.
◆ weatherInterface()
|
inline |
Definition at line 533 of file schedulerprocess.h.
Member Data Documentation
◆ alignInterfaceString
QString Ekos::SchedulerProcess::alignInterfaceString { "org.kde.kstars.Ekos.Align" } |
Definition at line 394 of file schedulerprocess.h.
◆ alignPathString
QString Ekos::SchedulerProcess::alignPathString { "/KStars/Ekos/Align" } |
Definition at line 399 of file schedulerprocess.h.
◆ captureInterfaceString
QString Ekos::SchedulerProcess::captureInterfaceString { "org.kde.kstars.Ekos.Capture" } |
Definition at line 383 of file schedulerprocess.h.
◆ capturePathString
QString Ekos::SchedulerProcess::capturePathString { "/KStars/Ekos/Capture" } |
Definition at line 388 of file schedulerprocess.h.
◆ domeInterfaceString
QString Ekos::SchedulerProcess::domeInterfaceString { "org.kde.kstars.INDI.Dome" } |
Definition at line 427 of file schedulerprocess.h.
◆ domePathString
QString Ekos::SchedulerProcess::domePathString |
Definition at line 433 of file schedulerprocess.h.
◆ dustCapInterfaceString
QString Ekos::SchedulerProcess::dustCapInterfaceString { "org.kde.kstars.INDI.DustCap" } |
Definition at line 450 of file schedulerprocess.h.
◆ dustCapPathString
QString Ekos::SchedulerProcess::dustCapPathString |
Definition at line 455 of file schedulerprocess.h.
◆ focusInterfaceString
QString Ekos::SchedulerProcess::focusInterfaceString { "org.kde.kstars.Ekos.Focus" } |
Definition at line 361 of file schedulerprocess.h.
◆ focusPathString
QString Ekos::SchedulerProcess::focusPathString { "/KStars/Ekos/Focus" } |
Definition at line 366 of file schedulerprocess.h.
◆ guideInterfaceString
QString Ekos::SchedulerProcess::guideInterfaceString { "org.kde.kstars.Ekos.Guide" } |
Definition at line 405 of file schedulerprocess.h.
◆ guidePathString
QString Ekos::SchedulerProcess::guidePathString { "/KStars/Ekos/Guide" } |
Definition at line 410 of file schedulerprocess.h.
◆ m_GreedyScheduler
QPointer<Ekos::GreedyScheduler> Ekos::SchedulerProcess::m_GreedyScheduler |
Definition at line 351 of file schedulerprocess.h.
◆ m_moduleState
QSharedPointer<SchedulerModuleState> Ekos::SchedulerProcess::m_moduleState |
Definition at line 345 of file schedulerprocess.h.
◆ mountInterfaceString
QString Ekos::SchedulerProcess::mountInterfaceString { "org.kde.kstars.Ekos.Mount" } |
Definition at line 372 of file schedulerprocess.h.
◆ mountPathString
QString Ekos::SchedulerProcess::mountPathString { "/KStars/Ekos/Mount" } |
Definition at line 377 of file schedulerprocess.h.
◆ observatoryInterfaceString
QString Ekos::SchedulerProcess::observatoryInterfaceString { "org.kde.kstars.Ekos.Observatory" } |
Definition at line 416 of file schedulerprocess.h.
◆ observatoryPathString
QString Ekos::SchedulerProcess::observatoryPathString { "/KStars/Ekos/Observatory" } |
Definition at line 421 of file schedulerprocess.h.
◆ weatherInterfaceString
QString Ekos::SchedulerProcess::weatherInterfaceString { "org.kde.kstars.INDI.Weather" } |
Definition at line 439 of file schedulerprocess.h.
◆ weatherPathString
QString Ekos::SchedulerProcess::weatherPathString |
Definition at line 444 of file schedulerprocess.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.