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