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_MAX_REASONS
30 } AutofocusReason;
31
32// Associated text for AutofocusReason enum
33static const QString AutofocusReasonStr[FOCUS_MAX_REASONS] =
34{
35 "N/A",
36 "User Initiated",
37 "Filter Change",
38 "Time",
39 "Temperature",
40 "HFR Check",
41 "Meridian Flip",
42 "Build Filter Offsets",
43 "Aberration Inspector",
44 "Scheduler Initiated",
45 "User Request (In-Seq)"
46};
47
48// Reason codes for Autofocus failure
49typedef enum { FOCUS_FAIL_NONE,
50 FOCUS_FAIL_NO_STARS,
51 FOCUS_FAIL_MAX_ITERS,
52 FOCUS_FAIL_FOCUSER_NO_MOVE,
53 FOCUS_FAIL_R2,
54 FOCUS_FAIL_SMALL_HFR,
55 FOCUS_FAIL_FOCUSER_OOB,
56 FOCUS_FAIL_FLUCTUATIONS,
57 FOCUS_FAIL_DEADLOCK,
58 FOCUS_FAIL_TOLERANCE,
59 FOCUS_FAIL_FOCUSER_ERROR,
60 FOCUS_FAIL_FORCE_ABORT,
61 FOCUS_FAIL_FILTER_MANAGER,
62 FOCUS_FAIL_CAPTURE_TIMEOUT,
63 FOCUS_FAIL_CAPTURE_FAILED,
64 FOCUS_FAIL_NO_CAMERA,
65 FOCUS_FAIL_NO_FOCUSER,
66 FOCUS_FAIL_LOW_PULSE,
67 FOCUS_FAIL_INTERNAL,
68 FOCUS_FAIL_ABORT,
69 FOCUS_FAIL_CURVEFIT,
70 FOCUS_FAIL_MAX_REASONS
71 } AutofocusFailReason;
72
73// Associated text for AutofocusFailReason enum
74static const QString AutofocusFailReasonStr[FOCUS_FAIL_MAX_REASONS] =
75{
76 "N/A",
77 "No Stars",
78 "Hit Max Iterations",
79 "Unable to Move Focuser",
80 "R2 Check",
81 "Delta HFR too small",
82 "Focuser Move Out-Of-Bounds",
83 "Hit Max Fluctuations",
84 "Deadlock",
85 "Invalid Tolerance",
86 "Focuser Error",
87 "Focus Forced Abort",
88 "Filter Mnaager Failed",
89 "Capture Timeed Out",
90 "Capture Failed",
91 "No Camera",
92 "No Focuser Device",
93 "Pulse Value Too Low",
94 "Internal Error",
95 "Abort Requested",
96 "Unable to Fit Curve"
97};
98}
Ekos is an advanced Astrophotography tool for Linux.
Definition align.cpp:79
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:49:50 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.