Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/guide/guide.h
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Line(s) | 186 | /** DBUS interface function. | |||
---|---|---|---|---|---|
188 | * @param enable if true, dithering is enabled and is performed after each exposure is complete. Otherwise, dithering is disabled. | 188 | * @param enable if true, dithering is enabled and is performed after each exposure is complete. Otherwise, dithering is disabled. | ||
189 | * @param value dithering range in pixels. Ekos will move the guide star in a random direction for the specified dithering value in pixels. | 189 | * @param value dithering range in pixels. Ekos will move the guide star in a random direction for the specified dithering value in pixels. | ||
190 | */ | 190 | */ | ||
191 | Q_SCRIPTABLE Q_NOREPLY void setDitherSettings(bool enable, double value); | 191 | Q_SCRIPTABLE Q_NOREPLY void setDitherSettings(bool enable, double value); | ||
192 | 192 | | |||
193 | /** @}*/ | 193 | /** @}*/ | ||
194 | 194 | | |||
195 | void addCamera(ISD::GDInterface *newCCD); | 195 | void addCamera(ISD::GDInterface *newCCD); | ||
196 | void configurePHD2Camera(); | ||||
196 | void setTelescope(ISD::GDInterface *newTelescope); | 197 | void setTelescope(ISD::GDInterface *newTelescope); | ||
197 | void addST4(ISD::ST4 *setST4); | 198 | void addST4(ISD::ST4 *setST4); | ||
198 | void setAO(ISD::ST4 *newAO); | 199 | void setAO(ISD::ST4 *newAO); | ||
199 | void removeDevice(ISD::GDInterface *device); | 200 | void removeDevice(ISD::GDInterface *device); | ||
200 | 201 | | |||
201 | bool isDithering(); | 202 | bool isDithering(); | ||
202 | 203 | | |||
203 | void addGuideHead(ISD::GDInterface *newCCD); | 204 | void addGuideHead(ISD::GDInterface *newCCD); | ||
▲ Show 20 Lines • Show All 312 Lines • ▼ Show 20 Line(s) | 514 | /** | |||
516 | */ | 517 | */ | ||
517 | void setBusy(bool enable); | 518 | void setBusy(bool enable); | ||
518 | 519 | | |||
519 | /** | 520 | /** | ||
520 | * @brief setBLOBEnabled Enable or disable BLOB reception from current CCD if using external guider | 521 | * @brief setBLOBEnabled Enable or disable BLOB reception from current CCD if using external guider | ||
521 | * @param enable True to enable BLOB reception, false to disable BLOB reception | 522 | * @param enable True to enable BLOB reception, false to disable BLOB reception | ||
522 | * @param name CCD to enable to disable. If empty (default), then action is applied to all CCDs. | 523 | * @param name CCD to enable to disable. If empty (default), then action is applied to all CCDs. | ||
523 | */ | 524 | */ | ||
524 | void setBLOBEnabled(bool enable, const QString &ccd = QString()); | 525 | void setExternalGuiderBLOBEnabled(bool enable); | ||
525 | 526 | | |||
526 | void handleManualDither(); | 527 | void handleManualDither(); | ||
527 | 528 | | |||
528 | // Operation stack | 529 | // Operation stack | ||
529 | void buildOperationStack(GuideState operation); | 530 | void buildOperationStack(GuideState operation); | ||
530 | bool executeOperationStack(); | 531 | bool executeOperationStack(); | ||
531 | bool executeOneOperation(GuideState operation); | 532 | bool executeOneOperation(GuideState operation); | ||
532 | 533 | | |||
533 | // Init Functions | 534 | // Init Functions | ||
534 | void initPlots(); | 535 | void initPlots(); | ||
535 | void initView(); | 536 | void initView(); | ||
536 | void initConnections(); | 537 | void initConnections(); | ||
537 | 538 | | |||
538 | bool captureOneFrame(); | 539 | bool captureOneFrame(); | ||
539 | 540 | | |||
540 | // Operation Stack | 541 | // Operation Stack | ||
541 | QStack<GuideState> operationStack; | 542 | QStack<GuideState> operationStack; | ||
542 | 543 | | |||
543 | // Devices | 544 | // Devices | ||
544 | ISD::CCD *currentCCD { nullptr }; | 545 | ISD::CCD *currentCCD { nullptr }; | ||
546 | QString lastPHD2CameraName; //This is for the configure PHD2 camera method. | ||||
545 | ISD::Telescope *currentTelescope { nullptr }; | 547 | ISD::Telescope *currentTelescope { nullptr }; | ||
546 | ISD::ST4 *ST4Driver { nullptr }; | 548 | ISD::ST4 *ST4Driver { nullptr }; | ||
547 | ISD::ST4 *AODriver { nullptr }; | 549 | ISD::ST4 *AODriver { nullptr }; | ||
548 | ISD::ST4 *GuideDriver { nullptr }; | 550 | ISD::ST4 *GuideDriver { nullptr }; | ||
549 | 551 | | |||
550 | // Device Containers | 552 | // Device Containers | ||
551 | QList<ISD::ST4 *> ST4List; | 553 | QList<ISD::ST4 *> ST4List; | ||
552 | QList<ISD::CCD *> CCDs; | 554 | QList<ISD::CCD *> CCDs; | ||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | |||||
625 | 627 | | |||
626 | QCPCurve *centralTarget { nullptr }; | 628 | QCPCurve *centralTarget { nullptr }; | ||
627 | QCPCurve *yellowTarget { nullptr }; | 629 | QCPCurve *yellowTarget { nullptr }; | ||
628 | QCPCurve *redTarget { nullptr }; | 630 | QCPCurve *redTarget { nullptr }; | ||
629 | QCPCurve *concentricRings { nullptr }; | 631 | QCPCurve *concentricRings { nullptr }; | ||
630 | 632 | | |||
631 | bool graphOnLatestPt = true; | 633 | bool graphOnLatestPt = true; | ||
632 | QUrl guideURLPath; | 634 | QUrl guideURLPath; | ||
635 | | ||||
636 | //This is for enforcing the PHD2 Star lock when Guide is pressed, | ||||
637 | //autostar is not selected, and the user has chosen a star. | ||||
638 | //This connection storage is so that the connection can be disconnected after enforcement | ||||
639 | QMetaObject::Connection guideConnect; | ||||
633 | }; | 640 | }; | ||
634 | } | 641 | } |