Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/auxiliary/dome.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 37 | public: | |||
---|---|---|---|---|---|
86 | * Check if the dome is in motion | 86 | * Check if the dome is in motion | ||
87 | */ | 87 | */ | ||
88 | Q_SCRIPTABLE bool isMoving(); | 88 | Q_SCRIPTABLE bool isMoving(); | ||
89 | 89 | | |||
90 | 90 | | |||
91 | Q_SCRIPTABLE double azimuthPosition(); | 91 | Q_SCRIPTABLE double azimuthPosition(); | ||
92 | Q_SCRIPTABLE void setAzimuthPosition(double position); | 92 | Q_SCRIPTABLE void setAzimuthPosition(double position); | ||
93 | 93 | | |||
94 | Q_SCRIPTABLE bool hasShutter(); | ||||
95 | Q_SCRIPTABLE bool controlShutter(bool open); | ||||
96 | | ||||
94 | /** @}*/ | 97 | /** @}*/ | ||
95 | 98 | | |||
96 | /** | 99 | /** | ||
97 | * @brief setDome set the dome device | 100 | * @brief setDome set the dome device | ||
98 | * @param newDome pointer to Dome device. | 101 | * @param newDome pointer to Dome device. | ||
99 | */ | 102 | */ | ||
100 | void setDome(ISD::GDInterface *newDome); | 103 | void setDome(ISD::GDInterface *newDome); | ||
101 | 104 | | |||
102 | /** | 105 | /** | ||
103 | * @brief setTelescope Set the telescope device. This is only used to sync ACTIVE_TELESCOPE to the current active telescope. | 106 | * @brief setTelescope Set the telescope device. This is only used to sync ACTIVE_TELESCOPE to the current active telescope. | ||
104 | * @param newTelescope pointer to telescope device. | 107 | * @param newTelescope pointer to telescope device. | ||
105 | */ | 108 | */ | ||
106 | void setTelescope(ISD::GDInterface *newTelescope); | 109 | void setTelescope(ISD::GDInterface *newTelescope); | ||
107 | 110 | | |||
108 | ISD::Dome::Status status() { return currentDome->status(); } | 111 | ISD::Dome::Status status() { return currentDome->status(); } | ||
112 | ISD::Dome::ShutterStatus shutterStatus() { return currentDome->shutterStatus(); } | ||||
109 | ISD::ParkStatus parkStatus() { return m_ParkStatus; } | 113 | ISD::ParkStatus parkStatus() { return m_ParkStatus; } | ||
110 | 114 | | |||
111 | signals: | 115 | signals: | ||
112 | void newStatus(ISD::Dome::Status status); | 116 | void newStatus(ISD::Dome::Status status); | ||
113 | void newParkStatus(ISD::ParkStatus status); | 117 | void newParkStatus(ISD::ParkStatus status); | ||
118 | void newShutterStatus(ISD::Dome::ShutterStatus status); | ||||
114 | void azimuthPositionChanged(double position); | 119 | void azimuthPositionChanged(double position); | ||
115 | void ready(); | 120 | void ready(); | ||
121 | // Signal when the underlying ISD::Dome signals a Disconnected() | ||||
122 | void disconnected(); | ||||
116 | 123 | | |||
117 | private: | 124 | private: | ||
118 | // Devices needed for Dome operation | 125 | // Devices needed for Dome operation | ||
119 | ISD::Dome *currentDome { nullptr }; | 126 | ISD::Dome *currentDome { nullptr }; | ||
120 | ISD::ParkStatus m_ParkStatus { ISD::PARK_UNKNOWN }; | 127 | ISD::ParkStatus m_ParkStatus { ISD::PARK_UNKNOWN }; | ||
128 | ISD::Dome::ShutterStatus m_ShutterStatus { ISD::Dome::SHUTTER_UNKNOWN }; | ||||
121 | }; | 129 | }; | ||
122 | 130 | | |||
123 | } | 131 | } |