Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/focus/focus.h
Show First 20 Lines • Show All 361 Lines • ▼ Show 20 Line(s) | 337 | private slots: | |||
---|---|---|---|---|---|
362 | void syncSettings(); | 362 | void syncSettings(); | ||
363 | 363 | | |||
364 | void graphPolynomialFunction(); | 364 | void graphPolynomialFunction(); | ||
365 | 365 | | |||
366 | signals: | 366 | signals: | ||
367 | void newLog(const QString &text); | 367 | void newLog(const QString &text); | ||
368 | void newStatus(Ekos::FocusState state); | 368 | void newStatus(Ekos::FocusState state); | ||
369 | void newHFR(double hfr, int position); | 369 | void newHFR(double hfr, int position); | ||
370 | void newFocusTemperatureDelta(double delta); | ||||
370 | 371 | | |||
371 | void absolutePositionChanged(int value); | 372 | void absolutePositionChanged(int value); | ||
372 | void focusPositionAdjusted(); | 373 | void focusPositionAdjusted(); | ||
373 | 374 | | |||
374 | void suspendGuiding(); | 375 | void suspendGuiding(); | ||
375 | void resumeGuiding(); | 376 | void resumeGuiding(); | ||
376 | void newStarPixmap(QPixmap &); | 377 | void newStarPixmap(QPixmap &); | ||
377 | void newProfilePixmap(QPixmap &); | 378 | void newProfilePixmap(QPixmap &); | ||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 380 | private: | |||
443 | double analyzeSources(FITSData *image_data); | 444 | double analyzeSources(FITSData *image_data); | ||
444 | 445 | | |||
445 | /** @internal Add a new HFR for the current focuser position. | 446 | /** @internal Add a new HFR for the current focuser position. | ||
446 | * @param newHFR is the new HFR to consider for the current focuser position. | 447 | * @param newHFR is the new HFR to consider for the current focuser position. | ||
447 | * @return true if a new sample is required, else false. | 448 | * @return true if a new sample is required, else false. | ||
448 | */ | 449 | */ | ||
449 | bool appendHFR(double newHFR); | 450 | bool appendHFR(double newHFR); | ||
450 | 451 | | |||
452 | void getCurrentFocuserTemperature(); | ||||
453 | | ||||
451 | /// Focuser device needed for focus operation | 454 | /// Focuser device needed for focus operation | ||
452 | ISD::Focuser *currentFocuser { nullptr }; | 455 | ISD::Focuser *currentFocuser { nullptr }; | ||
453 | /// CCD device needed for focus operation | 456 | /// CCD device needed for focus operation | ||
454 | ISD::CCD *currentCCD { nullptr }; | 457 | ISD::CCD *currentCCD { nullptr }; | ||
455 | 458 | | |||
456 | /// Optional device filter | 459 | /// Optional device filter | ||
457 | ISD::GDInterface *currentFilter { nullptr }; | 460 | ISD::GDInterface *currentFilter { nullptr }; | ||
458 | /// Current filter position | 461 | /// Current filter position | ||
▲ Show 20 Lines • Show All 175 Lines • ▼ Show 20 Line(s) | |||||
634 | QSharedPointer<FilterManager> filterManager; | 637 | QSharedPointer<FilterManager> filterManager; | ||
635 | 638 | | |||
636 | // Linear focuser. | 639 | // Linear focuser. | ||
637 | std::unique_ptr<FocusAlgorithmInterface> linearFocuser; | 640 | std::unique_ptr<FocusAlgorithmInterface> linearFocuser; | ||
638 | int focuserAdditionalMovement { 0 }; | 641 | int focuserAdditionalMovement { 0 }; | ||
639 | int linearRequestedPosition { 0 }; | 642 | int linearRequestedPosition { 0 }; | ||
640 | 643 | | |||
641 | bool hasDeviation { false }; | 644 | bool hasDeviation { false }; | ||
645 | | ||||
646 | double currentTemperature { INVALID_VALUE }; | ||||
647 | double lastFocusTemperature { INVALID_VALUE }; | ||||
642 | }; | 648 | }; | ||
643 | } | 649 | } |