Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/guide/externalguide/phd2.h
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | 92 | { | |||
---|---|---|---|---|---|
93 | NO_RESULT, | 93 | NO_RESULT, | ||
94 | CAPTURE_SINGLE_FRAME, //capture_single_frame | 94 | CAPTURE_SINGLE_FRAME, //capture_single_frame | ||
95 | CLEAR_CALIBRATION_COMMAND_RECEIVED, //clear_calibration | 95 | CLEAR_CALIBRATION_COMMAND_RECEIVED, //clear_calibration | ||
96 | DITHER_COMMAND_RECEIVED, //dither | 96 | DITHER_COMMAND_RECEIVED, //dither | ||
97 | //find_star | 97 | //find_star | ||
98 | //flip_calibration | 98 | //flip_calibration | ||
99 | //get_algo_param_names | 99 | //get_algo_param_names | ||
100 | //get_algo_param | 100 | //get_algo_param | ||
101 | //get_app_state | 101 | APP_STATE_RECEIVED, //get_app_state | ||
102 | //get_calibrated | 102 | //get_calibrated | ||
103 | //get_calibration_data | 103 | //get_calibration_data | ||
104 | IS_EQUIPMENT_CONNECTED, //get_connected | 104 | IS_EQUIPMENT_CONNECTED, //get_connected | ||
105 | //get_cooler_status | 105 | //get_cooler_status | ||
106 | GET_CURRENT_EQUIPMENT, //get_current_equipment | 106 | GET_CURRENT_EQUIPMENT, //get_current_equipment | ||
107 | DEC_GUIDE_MODE, //get_dec_guide_mode | 107 | DEC_GUIDE_MODE, //get_dec_guide_mode | ||
108 | EXPOSURE_TIME, //get_exposure | 108 | EXPOSURE_TIME, //get_exposure | ||
109 | EXPOSURE_DURATIONS, //get_exposure_durations | 109 | EXPOSURE_DURATIONS, //get_exposure_durations | ||
Show All 40 Lines | |||||
150 | 150 | | |||
151 | void captureSingleFrame(); //capture_single_frame | 151 | void captureSingleFrame(); //capture_single_frame | ||
152 | bool clearCalibration() override; //clear_calibration | 152 | bool clearCalibration() override; //clear_calibration | ||
153 | bool dither(double pixels) override; //dither | 153 | bool dither(double pixels) override; //dither | ||
154 | //find_star | 154 | //find_star | ||
155 | //flip_calibration | 155 | //flip_calibration | ||
156 | //get_algo_param_names | 156 | //get_algo_param_names | ||
157 | //get_algo_param | 157 | //get_algo_param | ||
158 | //get_app_state | 158 | void requestAppState(); //get_app_state | ||
159 | //get_calibrated | 159 | //get_calibrated | ||
160 | //get_calibration_data | 160 | //get_calibration_data | ||
161 | void checkIfEquipmentConnected(); //get_connected | 161 | void checkIfEquipmentConnected(); //get_connected | ||
162 | //get_cooler_status | 162 | //get_cooler_status | ||
163 | void requestCurrentEquipmentUpdate(); //get_current_equipment | 163 | void requestCurrentEquipmentUpdate(); //get_current_equipment | ||
164 | void checkDEGuideMode(); //get_dec_guide_mode | 164 | void checkDEGuideMode(); //get_dec_guide_mode | ||
165 | void requestExposureTime(); //get_exposure | 165 | void requestExposureTime(); //get_exposure | ||
166 | void requestExposureDurations(); //get_exposure_durations | 166 | void requestExposureDurations(); //get_exposure_durations | ||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 210 | private: | |||
215 | void sendPHD2Request(const QString &method, const QJsonArray &args = QJsonArray()); | 215 | void sendPHD2Request(const QString &method, const QJsonArray &args = QJsonArray()); | ||
216 | void sendRpcCall(QJsonObject &call, PHD2ResultType resultType); | 216 | void sendRpcCall(QJsonObject &call, PHD2ResultType resultType); | ||
217 | void sendNextRpcCall(); | 217 | void sendNextRpcCall(); | ||
218 | 218 | | |||
219 | void processPHD2Event(const QJsonObject &jsonEvent, const QByteArray &rawResult); | 219 | void processPHD2Event(const QJsonObject &jsonEvent, const QByteArray &rawResult); | ||
220 | void processPHD2Result(const QJsonObject &jsonObj, const QByteArray &rawResult); | 220 | void processPHD2Result(const QJsonObject &jsonObj, const QByteArray &rawResult); | ||
221 | void processStarImage(const QJsonObject &jsonStarFrame); | 221 | void processStarImage(const QJsonObject &jsonStarFrame); | ||
222 | void processPHD2State(const QString &phd2State); | 222 | void processPHD2State(const QString &phd2State); | ||
223 | void handlePHD2AppState(PHD2State state); | ||||
223 | void processPHD2Error(const QJsonObject &jsonError, const QByteArray &rawResult); | 224 | void processPHD2Error(const QJsonObject &jsonError, const QByteArray &rawResult); | ||
224 | 225 | | |||
225 | PHD2ResultType takeRequestFromList(const QJsonObject &response); | 226 | PHD2ResultType takeRequestFromList(const QJsonObject &response); | ||
226 | 227 | | |||
227 | QTcpSocket *tcpSocket { nullptr }; | 228 | QTcpSocket *tcpSocket { nullptr }; | ||
228 | int nextRpcId { 1 }; | 229 | int nextRpcId { 1 }; | ||
229 | 230 | | |||
230 | QHash<QString, PHD2Event> events; // maps event name to event type | 231 | QHash<QString, PHD2Event> events; // maps event name to event type | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |