Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/align/align.h
Context not available. | |||||
9 | 9 | | |||
---|---|---|---|---|---|
10 | #pragma once | 10 | #pragma once | ||
11 | 11 | | |||
12 | #include "kstarsenum.h" | ||||
12 | #include "ui_align.h" | 13 | #include "ui_align.h" | ||
13 | #include "ui_mountmodel.h" | 14 | #include "ui_mountmodel.h" | ||
14 | #include "ekos/ekos.h" | 15 | #include "ekos/ekos.h" | ||
Context not available. | |||||
158 | * Returns the solver's current status | 159 | * Returns the solver's current status | ||
159 | * @return Returns solver status (Ekos::AlignState) | 160 | * @return Returns solver status (Ekos::AlignState) | ||
160 | */ | 161 | */ | ||
161 | Q_SCRIPTABLE int getStatus() { return state; } | 162 | Q_SCRIPTABLE int getStatus() { return KStarsEnum::toType(state); } | ||
162 | 163 | | |||
163 | /** DBUS interface function. | 164 | /** DBUS interface function. | ||
164 | * @return Returns State of load slew procedure. Idle if not started. Busy if in progress. Ok if complete. Alert if procedure failed. | 165 | * @return Returns State of load slew procedure. Idle if not started. Busy if in progress. Ok if complete. Alert if procedure failed. | ||
Context not available. | |||||
669 | int retries { 0 }; | 670 | int retries { 0 }; | ||
670 | 671 | | |||
671 | // State | 672 | // State | ||
672 | AlignState state { ALIGN_IDLE }; | 673 | AlignState state { Ekos::AlignState::ALIGN_IDLE }; | ||
673 | FocusState focusState { FOCUS_IDLE }; | 674 | FocusState focusState { Ekos::FocusState::FOCUS_IDLE }; | ||
674 | 675 | | |||
675 | // Track which upload mode the CCD is set to. If set to UPLOAD_LOCAL, then we need to switch it to UPLOAD_CLIENT in order to do focusing, and then switch it back to UPLOAD_LOCAL | 676 | // Track which upload mode the CCD is set to. If set to UPLOAD_LOCAL, then we need to switch it to UPLOAD_CLIENT in order to do focusing, and then switch it back to UPLOAD_LOCAL | ||
676 | ISD::CCD::UploadMode rememberUploadMode { ISD::CCD::UPLOAD_CLIENT }; | 677 | ISD::CCD::UploadMode rememberUploadMode { ISD::CCD::UPLOAD_CLIENT }; | ||
Context not available. |