Kstars

capturetypes.h
1/*
2 SPDX-FileCopyrightText: 2024 Wolfgang Reissenberger <sterne-jaeger@openfuture.de>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QMap>
10
11namespace Ekos
12{
13
14/** @brief mapping signature --> frames count */
16
17typedef enum
18{
19 FILENAME_NOT_PREVIEW,
20 FILENAME_LOCAL_PREVIEW,
21 FILENAME_REMOTE_PREVIEW
22} FilenamePreviewType;
23
24// Typedef for HFR Check algorithms.
25typedef enum
26{
27 HFR_CHECK_LAST_AUTOFOCUS, /* Use last Autofocus as reference */
28 HFR_CHECK_FIXED, /* User supplied fixed reference */
29 HFR_CHECK_MEDIAN_MEASURE, /* Use median algorithm as reference */
30 HFR_CHECK_MAX_ALGO /* Max counter for enum */
31} HFRCheckAlgorithm;
32
33/* Action types to be executed within the capturing workflow. */
34typedef enum
35{
36 CAPTURE_ACTION_NONE, /* Do nothing. */
37 CAPTURE_ACTION_START, /* Start capturing. */
38 CAPTURE_ACTION_PAUSE, /* Pause capturing. */
39 CAPTURE_ACTION_SUSPEND, /* Suspend capturing. */
40 CAPTURE_ACTION_FILTER, /* Change the filter and wait until the correct filter is set. */
41 CAPTURE_ACTION_TEMPERATURE, /* Set the camera chip target temperature and wait until the target temperature has been reached. */
42 CAPTURE_ACTION_ROTATOR, /* Set the camera rotator target angle and wait until the target angle has been reached. */
43 CAPTURE_ACTION_PREPARE_LIGHTSOURCE, /* Setup the selected flat lights source. */
44 CAPTURE_ACTION_MOUNT_PARK, /* Park the mount. */
45 CAPTURE_ACTION_DOME_PARK, /* Park the dome. */
46 CAPTURE_ACTION_FLAT_SYNC_FOCUS, /* Move the focuser to the focus position for the selected filter. */
47 CAPTURE_ACTION_SCOPE_COVER, /* Ensure that the scope cover (if present) is opened. */
48 CAPTURE_ACTION_AUTOFOCUS, /* Execute autofocus (might be triggered due to filter change). */
49 CAPTURE_ACTION_DITHER_REQUEST, /* Request for dither execution. */
50 CAPTURE_ACTION_DITHER, /* Execute dithering. */
51 CAPTURE_ACTION_CHECK_GUIDING, /* Check if guiding is running. */
52} CaptureWorkflowActionType;
53
54typedef enum {
55 CAPTURE_PREACTION_NONE = 1 << 0,
56 CAPTURE_PREACTION_WALL = 1 << 1,
57 CAPTURE_PREACTION_PARK_MOUNT = 1 << 2,
58 CAPTURE_PREACTION_PARK_DOME = 1 << 3,
59} CalibrationPreActions;
60
61typedef enum
62{
63 SHUTTER_YES, /* the CCD has a shutter */
64 SHUTTER_NO, /* the CCD has no shutter */
65 SHUTTER_BUSY, /* determining whether the CCD has a shutter running */
66 SHUTTER_UNKNOWN /* unknown whether the CCD has a shutter */
67} ShutterStatus;
68
69typedef enum
70{
71 CAP_IDLE,
72 CAP_PARKING,
73 CAP_UNPARKING,
74 CAP_PARKED,
75 CAP_ERROR,
76 CAP_UNKNOWN
77} CapState;
78
79typedef enum
80{
81 CAP_LIGHT_OFF, /* light is on */
82 CAP_LIGHT_ON, /* light is off */
83 CAP_LIGHT_UNKNOWN, /* unknown whether on or off */
84 CAP_LIGHT_BUSY /* light state changing */
85} LightState;
86
87typedef enum
88{
89 CAPTURE_CONTINUE_ACTION_NONE, /* do nothing */
90 CAPTURE_CONTINUE_ACTION_NEXT_EXPOSURE, /* start next exposure */
91 CAPTURE_CONTINUE_ACTION_CAPTURE_COMPLETE /* recall capture complete */
92} CaptureContinueAction;
93
94/* Result when starting to capture {@see SequenceJob::capture(bool, FITSMode)}. */
95typedef enum
96{
97 CAPTURE_OK, /* Starting a new capture succeeded. */
98 CAPTURE_FRAME_ERROR, /* Setting frame parameters failed, capture not started. */
99 CAPTURE_BIN_ERROR, /* Setting binning parameters failed, capture not started. */
100 CAPTURE_FOCUS_ERROR, /* NOT USED. */
101} CaptureResult;
102
103
104}; // namespace
Ekos is an advanced Astrophotography tool for Linux.
Definition align.cpp:83
QMap< QString, uint16_t > CapturedFramesMap
mapping signature --> frames count
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.