Kstars

focusutils.h
1/*
2 SPDX-FileCopyrightText: 2024 John Evans <john.e.evans.email@googlemail.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QString>
10#include <KLocalizedString>
11
12// This header file includes constants used by focus and shared with other modules
13
14namespace Ekos
15{
16
17// Reason codes for running Autofocus
18typedef enum { FOCUS_NONE,
19 FOCUS_MANUAL,
20 FOCUS_FILTER,
21 FOCUS_TIME,
22 FOCUS_TEMPERATURE,
23 FOCUS_HFR_CHECK,
24 FOCUS_MERIDIAN_FLIP,
25 FOCUS_FILTER_OFFSETS,
26 FOCUS_ABERRATION_INSPECTOR,
27 FOCUS_SCHEDULER,
28 FOCUS_USER_REQUEST,
29 FOCUS_FOCUS_ADVISOR,
30 FOCUS_MAX_REASONS
31 } AutofocusReason;
32
33// Associated text for AutofocusReason enum
34static const QString AutofocusReasonStr[FOCUS_MAX_REASONS] =
35{
36 "N/A",
37 "User Initiated",
38 "Filter Change",
39 "Time",
40 "Temperature",
41 "HFR Check",
42 "Meridian Flip",
43 "Build Filter Offsets",
44 "Aberration Inspector",
45 "Scheduler Initiated",
46 "User Request (In-Seq)",
47 "Focus Advisor"
48};
49
50// Reason codes for Autofocus failure
51typedef enum { FOCUS_FAIL_NONE,
52 FOCUS_FAIL_NO_STARS,
53 FOCUS_FAIL_MAX_ITERS,
54 FOCUS_FAIL_FOCUSER_NO_MOVE,
55 FOCUS_FAIL_R2,
56 FOCUS_FAIL_SMALL_HFR,
57 FOCUS_FAIL_FOCUSER_OOB,
58 FOCUS_FAIL_FLUCTUATIONS,
59 FOCUS_FAIL_DEADLOCK,
60 FOCUS_FAIL_TOLERANCE,
61 FOCUS_FAIL_FOCUSER_ERROR,
62 FOCUS_FAIL_FORCE_ABORT,
63 FOCUS_FAIL_FILTER_MANAGER,
64 FOCUS_FAIL_CAPTURE_TIMEOUT,
65 FOCUS_FAIL_CAPTURE_FAILED,
66 FOCUS_FAIL_NO_CAMERA,
67 FOCUS_FAIL_NO_FOCUSER,
68 FOCUS_FAIL_LOW_PULSE,
69 FOCUS_FAIL_INTERNAL,
70 FOCUS_FAIL_ABORT,
71 FOCUS_FAIL_CURVEFIT,
72 FOCUS_FAIL_ADVISOR_COMPLETE,
73 FOCUS_FAIL_ADVISOR_RERUN,
74 FOCUS_FAIL_MAX_REASONS
75 } AutofocusFailReason;
76
77// Associated text for AutofocusFailReason enum
78static const QString AutofocusFailReasonStr[FOCUS_FAIL_MAX_REASONS] =
79{
80 "N/A",
81 "No Stars",
82 "Hit Max Iterations",
83 "Unable to Move Focuser",
84 "R2 Check",
85 "Delta HFR too small",
86 "Focuser Move Out-Of-Bounds",
87 "Hit Max Fluctuations",
88 "Deadlock",
89 "Invalid Tolerance",
90 "Focuser Error",
91 "Focus Forced Abort",
92 "Filter Mnaager Failed",
93 "Capture Timeed Out",
94 "Capture Failed",
95 "No Camera",
96 "No Focuser Device",
97 "Pulse Value Too Low",
98 "Internal Error",
99 "Abort Requested",
100 "Unable to Fit Curve",
101 "Focus Advisor Complete",
102 "Focus Advisor Rerun"
103};
104}
Ekos is an advanced Astrophotography tool for Linux.
Definition align.cpp:83
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.