Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/capture/capture.h
Show First 20 Lines • Show All 305 Lines • ▼ Show 20 Line(s) | 92 | public: | |||
---|---|---|---|---|---|
306 | const QJsonArray &getSequence() const { return m_SequenceArray;} | 306 | const QJsonArray &getSequence() const { return m_SequenceArray;} | ||
307 | 307 | | |||
308 | /** | 308 | /** | ||
309 | * @brief setSettings Set capture settings | 309 | * @brief setSettings Set capture settings | ||
310 | * @param settings list of settings | 310 | * @param settings list of settings | ||
311 | */ | 311 | */ | ||
312 | void setSettings(const QJsonObject &settings); | 312 | void setSettings(const QJsonObject &settings); | ||
313 | 313 | | |||
314 | SkyPoint getInitialMountCoords() const; | ||||
315 | | ||||
314 | public slots: | 316 | public slots: | ||
315 | 317 | | |||
316 | /** \addtogroup CaptureDBusInterface | 318 | /** \addtogroup CaptureDBusInterface | ||
317 | * @{ | 319 | * @{ | ||
318 | */ | 320 | */ | ||
319 | 321 | | |||
320 | /* Capture */ | 322 | /* Capture */ | ||
321 | /** DBUS interface function. | 323 | /** DBUS interface function. | ||
▲ Show 20 Lines • Show All 253 Lines • ▼ Show 20 Line(s) | 515 | private slots: | |||
575 | void updatePrepareState(Ekos::CaptureState prepareState); | 577 | void updatePrepareState(Ekos::CaptureState prepareState); | ||
576 | 578 | | |||
577 | // Rotator | 579 | // Rotator | ||
578 | void updateRotatorNumber(INumberVectorProperty *nvp); | 580 | void updateRotatorNumber(INumberVectorProperty *nvp); | ||
579 | 581 | | |||
580 | // Cooler | 582 | // Cooler | ||
581 | void setCoolerToggled(bool enabled); | 583 | void setCoolerToggled(bool enabled); | ||
582 | 584 | | |||
585 | /** | ||||
586 | * @brief registerNewModule Register an Ekos module as it arrives via DBus | ||||
587 | * and create the appropriate DBus interface to communicate with it. | ||||
588 | * @param name of module | ||||
589 | */ | ||||
590 | void registerNewModule(const QString &name); | ||||
591 | | ||||
583 | signals: | 592 | signals: | ||
584 | Q_SCRIPTABLE void newLog(const QString &text); | 593 | Q_SCRIPTABLE void newLog(const QString &text); | ||
585 | Q_SCRIPTABLE void meridianFlipStarted(); | 594 | Q_SCRIPTABLE void meridianFlipStarted(); | ||
586 | Q_SCRIPTABLE void meridianFlipCompleted(); | 595 | Q_SCRIPTABLE void meridianFlipCompleted(); | ||
587 | Q_SCRIPTABLE void newStatus(Ekos::CaptureState status); | 596 | Q_SCRIPTABLE void newStatus(Ekos::CaptureState status); | ||
588 | Q_SCRIPTABLE void newSequenceImage(const QString &filename); | 597 | Q_SCRIPTABLE void newSequenceImage(const QString &filename); | ||
589 | 598 | | |||
590 | void ready(); | 599 | void ready(); | ||
Show All 29 Lines | 610 | private: | |||
620 | void cullToDSLRLimits(); | 629 | void cullToDSLRLimits(); | ||
621 | //void syncDriverToDSLRLimits(); | 630 | //void syncDriverToDSLRLimits(); | ||
622 | bool isModelinDSLRInfo(const QString &model); | 631 | bool isModelinDSLRInfo(const QString &model); | ||
623 | 632 | | |||
624 | /* Meridian Flip */ | 633 | /* Meridian Flip */ | ||
625 | bool checkMeridianFlip(); | 634 | bool checkMeridianFlip(); | ||
626 | void checkGuidingAfterFlip(); | 635 | void checkGuidingAfterFlip(); | ||
627 | double getCurrentHA(); | 636 | double getCurrentHA(); | ||
637 | double getInitialHA(); | ||||
628 | 638 | | |||
629 | // Remaining Time in seconds | 639 | // Remaining Time in seconds | ||
630 | int getJobRemainingTime(SequenceJob *job); | 640 | int getJobRemainingTime(SequenceJob *job); | ||
631 | 641 | | |||
632 | void resetFrameToZero(); | 642 | void resetFrameToZero(); | ||
633 | 643 | | |||
644 | /* Slewing - true iff start slewing was successful */ | ||||
645 | bool slew(const SkyPoint target); | ||||
646 | | ||||
634 | /* Refocus */ | 647 | /* Refocus */ | ||
635 | void startRefocusTimer(bool forced = false); | 648 | void startRefocusTimer(bool forced = false); | ||
636 | 649 | | |||
637 | // If exposure timed out, let's handle it. | 650 | // If exposure timed out, let's handle it. | ||
638 | void processCaptureTimeout(); | 651 | void processCaptureTimeout(); | ||
639 | 652 | | |||
640 | /* Capture */ | 653 | /* Capture */ | ||
641 | 654 | | |||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
688 | ISD::Telescope *currentTelescope { nullptr }; | 701 | ISD::Telescope *currentTelescope { nullptr }; | ||
689 | ISD::CCD *currentCCD { nullptr }; | 702 | ISD::CCD *currentCCD { nullptr }; | ||
690 | ISD::GDInterface *currentFilter { nullptr }; | 703 | ISD::GDInterface *currentFilter { nullptr }; | ||
691 | ISD::GDInterface *currentRotator { nullptr }; | 704 | ISD::GDInterface *currentRotator { nullptr }; | ||
692 | ISD::DustCap *dustCap { nullptr }; | 705 | ISD::DustCap *dustCap { nullptr }; | ||
693 | ISD::LightBox *lightBox { nullptr }; | 706 | ISD::LightBox *lightBox { nullptr }; | ||
694 | ISD::Dome *dome { nullptr }; | 707 | ISD::Dome *dome { nullptr }; | ||
695 | 708 | | |||
709 | QPointer<QDBusInterface> mountInterface { nullptr }; | ||||
710 | | ||||
696 | QStringList m_LogText; | 711 | QStringList m_LogText; | ||
697 | QUrl m_SequenceURL; | 712 | QUrl m_SequenceURL; | ||
698 | bool m_Dirty { false }; | 713 | bool m_Dirty { false }; | ||
699 | bool m_JobUnderEdit { false }; | 714 | bool m_JobUnderEdit { false }; | ||
700 | int m_CurrentFilterPosition { -1 }; | 715 | int m_CurrentFilterPosition { -1 }; | ||
701 | QProgressIndicator *pi { nullptr }; | 716 | QProgressIndicator *pi { nullptr }; | ||
702 | 717 | | |||
703 | // Guide Deviation | 718 | // Guide Deviation | ||
Show All 14 Lines | |||||
718 | QMap<QString,QList<double>> HFRMap; | 733 | QMap<QString,QList<double>> HFRMap; | ||
719 | double fileHFR { 0 }; // HFR value as loaded from the sequence file | 734 | double fileHFR { 0 }; // HFR value as loaded from the sequence file | ||
720 | 735 | | |||
721 | // Refocus every N minutes | 736 | // Refocus every N minutes | ||
722 | bool isRefocus { false }; | 737 | bool isRefocus { false }; | ||
723 | int refocusEveryNMinutesValue { 0 }; // number of minutes between forced refocus | 738 | int refocusEveryNMinutesValue { 0 }; // number of minutes between forced refocus | ||
724 | QElapsedTimer refocusEveryNTimer; // used to determine when next force refocus should occur | 739 | QElapsedTimer refocusEveryNTimer; // used to determine when next force refocus should occur | ||
725 | 740 | | |||
726 | // Meridian flip | 741 | // Meridan flip | ||
727 | double initialHA { 0 }; | | |||
728 | //double initialRA { 0 }; | | |||
729 | SkyPoint initialMountCoords; | 742 | SkyPoint initialMountCoords; | ||
730 | bool resumeAlignmentAfterFlip { false }; | 743 | bool resumeAlignmentAfterFlip { false }; | ||
731 | bool resumeGuidingAfterFlip { false }; | 744 | bool resumeGuidingAfterFlip { false }; | ||
732 | MFStage meridianFlipStage { MF_NONE }; | 745 | MFStage meridianFlipStage { MF_NONE }; | ||
733 | 746 | | |||
734 | // Flat field automation | 747 | // Flat field automation | ||
735 | QVector<double> ExpRaw, ADURaw; | 748 | QVector<double> ExpRaw, ADURaw; | ||
736 | double targetADU { 0 }; | 749 | double targetADU { 0 }; | ||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
778 | // Filter Manager | 791 | // Filter Manager | ||
779 | QSharedPointer<FilterManager> filterManager; | 792 | QSharedPointer<FilterManager> filterManager; | ||
780 | 793 | | |||
781 | // DSLR Infos | 794 | // DSLR Infos | ||
782 | QList<QMap<QString,QVariant>> DSLRInfos; | 795 | QList<QMap<QString,QVariant>> DSLRInfos; | ||
783 | 796 | | |||
784 | // Captured Frames Map | 797 | // Captured Frames Map | ||
785 | SchedulerJob::CapturedFramesMap capturedFramesMap; | 798 | SchedulerJob::CapturedFramesMap capturedFramesMap; | ||
799 | | ||||
800 | // Execute the meridian flip | ||||
801 | bool executeMeridianFlip(); | ||||
786 | }; | 802 | }; | ||
787 | } | 803 | } |