ifw-fcf 7.1.4
Loading...
Searching...
No Matches
drotConfig.hpp
Go to the documentation of this file.
1
8#ifndef FCF_DEVMGR_DEVICE_DROT_CONFIG_HPP
9#define FCF_DEVMGR_DEVICE_DROT_CONFIG_HPP
10
11#include <string>
12#include <yaml-cpp/yaml.h>
13
14#include <ifw/core/utils/bat/logger.hpp>
19
20
21namespace ifw::fcf {
22 namespace devmgr {
23 namespace drot {
24
25 constexpr auto LOGGER_NAME = "drot";
26 // Constants for internal mapping
27 // Specifics Drot status values
28 constexpr auto CI_FOCUS_SIGN = "focus_sign";
29 constexpr auto CI_DIR_SIGN = "dir_sign";
30 constexpr auto CI_STAT_REF = "stat_ref";
31 constexpr auto CI_STAT_SKY = "sky_ref";
32 constexpr auto CI_STAT_ELEV = "elev_ref";
33 constexpr auto CI_STAT_USER = "user_ref";
34 constexpr auto CI_USER_PAR1 = "user_par1";
35 constexpr auto CI_USER_PAR2 = "user_par2";
36 constexpr auto CI_USER_PAR3 = "user_par3";
37 constexpr auto CI_USER_PAR4 = "user_par4";
38 constexpr auto CI_LATITUDE = "latitude";
39 constexpr auto CI_LONGITUDE = "longitude";
40 constexpr auto CI_TRK_PERIOD = "trk_period";
41 constexpr auto CI_TRK_THRESHOLD = "trk_threshold";
42
43 // Specific Drot RPCSUBSTATE_OP_DISABLING
44 constexpr auto RPC_MOVE_ANGLE = "rpcMoveAngle";
45 constexpr auto RPC_START_TRACK = "rpcStartTrack";
46 constexpr auto RPC_TRACK_OFFSET = "rpcTrackOffset";
47 constexpr auto RPC_STOP_TRACK = "rpcStopTrack";
48
49 // Specific constant values for Drot device state/substate
50 // The other state/substate values are the same as the motor device.
51 constexpr int SUBSTATE_RESETTING = 109;
52 constexpr int SUBSTATE_ENABLING = 110;
53
54 constexpr int SUBSTATE_OP_TRACKING = 220;
55 constexpr int SUBSTATE_OP_PRESETTING = 221;
56
57 constexpr auto SUBSTATE_RESETTING_STR = "Resetting";
58 constexpr auto SUBSTATE_ENABLING_STR = "Enabling";
59 constexpr auto SUBSTATE_OP_TRACKING_STR = "Tracking";
60 constexpr auto SUBSTATE_OP_PRESETTING_STR = "Presetting";
61
78
79 constexpr short TRK_MODE_ENG = 0;
80 constexpr short TRK_MODE_STAT = 1;
81 constexpr short TRK_MODE_SKY = 2;
82 constexpr short TRK_MODE_ELEV = 3;
83 constexpr short TRK_MODE_USER = 4;
84
85 constexpr auto TRK_MODE_ENG_STR = "eng";
86 constexpr auto TRK_MODE_STAT_STR = "stat";
87 constexpr auto TRK_MODE_SKY_STR = "sky";
88 constexpr auto TRK_MODE_ELEV_STR = "elev";
89 constexpr auto TRK_MODE_USER_STR = "user";
90
98
99 constexpr auto CI_STAT_TRACK_MODE = "track_mode";
100 constexpr auto CI_STAT_TRACK_OFFSET = "track_offset";
101 constexpr auto CI_STAT_ROTATION = "rotation";
102 constexpr auto CI_STAT_PUPIL = "pupil";
103 constexpr auto CI_STAT_ANGLE_ON_SKY = "angle_on_sky";
104
105 constexpr auto FITS_PARAM_TRKMODE = "MODE";
106 constexpr auto FITS_PARAM_ROTATION = "ROTATION";
107 constexpr auto FITS_PARAM_PUPIL = "PUPIL";
108 constexpr auto FITS_PARAM_POSANG = "POSANG";
109 }
110 }
111}
112
113#endif //FCF_DEVMGR_DEVICE_DROT_CONFIG_H
constexpr int SUBSTATE_ERROR
Definition deviceConfig.hpp:97
constexpr int SUBSTATE_OP_DISABLING
Definition deviceConfig.hpp:104
constexpr auto SUBSTATE_INITIALISING_STR
Definition deviceConfig.hpp:100
constexpr int SUBSTATE_READY
Definition deviceConfig.hpp:95
constexpr auto SUBSTATE_ERROR_STR
Definition deviceConfig.hpp:102
constexpr int SUBSTATE_INITIALISING
Definition deviceConfig.hpp:96
constexpr auto SUBSTATE_NOTREADY_STR
Definition deviceConfig.hpp:99
constexpr auto SUBSTATE_OP_DISABLING_STR
Definition deviceConfig.hpp:107
constexpr auto SUBSTATE_READY_STR
Definition deviceConfig.hpp:101
constexpr int SUBSTATE_OP_ERROR
Definition deviceConfig.hpp:105
constexpr int SUBSTATE_NOTREADY
Definition deviceConfig.hpp:94
constexpr auto SUBSTATE_OP_ERROR_STR
Definition deviceConfig.hpp:108
constexpr auto CI_STAT_ROTATION
Definition drotConfig.hpp:101
constexpr auto CI_STAT_USER
Definition drotConfig.hpp:33
constexpr auto LOGGER_NAME
Definition drotConfig.hpp:25
constexpr auto RPC_MOVE_ANGLE
Definition drotConfig.hpp:44
constexpr auto SUBSTATE_RESETTING_STR
Definition drotConfig.hpp:57
constexpr auto RPC_STOP_TRACK
Definition drotConfig.hpp:47
constexpr short TRK_MODE_ELEV
Definition drotConfig.hpp:82
constexpr auto CI_STAT_TRACK_MODE
Definition drotConfig.hpp:99
constexpr short TRK_MODE_STAT
Definition drotConfig.hpp:80
constexpr auto FITS_PARAM_ROTATION
Definition drotConfig.hpp:106
constexpr int SUBSTATE_RESETTING
Definition drotConfig.hpp:51
constexpr auto TRK_MODE_USER_STR
Definition drotConfig.hpp:89
constexpr auto FITS_PARAM_PUPIL
Definition drotConfig.hpp:107
constexpr auto SUBSTATE_OP_PRESETTING_STR
Definition drotConfig.hpp:60
constexpr auto CI_DIR_SIGN
Definition drotConfig.hpp:29
constexpr auto CI_STAT_SKY
Definition drotConfig.hpp:31
const std::unordered_map< short, std::string > SUBSTATE_MAP
Definition drotConfig.hpp:62
constexpr auto TRK_MODE_STAT_STR
Definition drotConfig.hpp:86
constexpr auto CI_STAT_ANGLE_ON_SKY
Definition drotConfig.hpp:103
constexpr auto CI_TRK_THRESHOLD
Definition drotConfig.hpp:41
constexpr short TRK_MODE_SKY
Definition drotConfig.hpp:81
constexpr auto TRK_MODE_ENG_STR
Definition drotConfig.hpp:85
constexpr auto CI_STAT_ELEV
Definition drotConfig.hpp:32
constexpr auto SUBSTATE_OP_TRACKING_STR
Definition drotConfig.hpp:59
constexpr auto CI_USER_PAR1
Definition drotConfig.hpp:34
constexpr auto CI_STAT_TRACK_OFFSET
Definition drotConfig.hpp:100
constexpr auto CI_FOCUS_SIGN
Definition drotConfig.hpp:28
const std::unordered_map< short, std::string > TRK_MODE_MAP
Definition drotConfig.hpp:91
constexpr auto CI_LATITUDE
Definition drotConfig.hpp:38
constexpr auto RPC_START_TRACK
Definition drotConfig.hpp:45
constexpr auto CI_LONGITUDE
Definition drotConfig.hpp:39
constexpr auto CI_STAT_REF
Definition drotConfig.hpp:30
constexpr auto CI_USER_PAR3
Definition drotConfig.hpp:36
constexpr int SUBSTATE_OP_PRESETTING
Definition drotConfig.hpp:55
constexpr auto CI_USER_PAR2
Definition drotConfig.hpp:35
constexpr short TRK_MODE_USER
Definition drotConfig.hpp:83
constexpr short TRK_MODE_ENG
Definition drotConfig.hpp:79
constexpr auto TRK_MODE_ELEV_STR
Definition drotConfig.hpp:88
constexpr auto TRK_MODE_SKY_STR
Definition drotConfig.hpp:87
constexpr auto CI_USER_PAR4
Definition drotConfig.hpp:37
constexpr auto FITS_PARAM_TRKMODE
Definition drotConfig.hpp:105
constexpr auto CI_STAT_PUPIL
Definition drotConfig.hpp:102
constexpr int SUBSTATE_ENABLING
Definition drotConfig.hpp:52
constexpr auto CI_TRK_PERIOD
Definition drotConfig.hpp:40
constexpr int SUBSTATE_OP_TRACKING
Definition drotConfig.hpp:54
constexpr auto FITS_PARAM_POSANG
Definition drotConfig.hpp:108
constexpr auto SUBSTATE_ENABLING_STR
Definition drotConfig.hpp:58
constexpr auto RPC_TRACK_OFFSET
Definition drotConfig.hpp:46
constexpr auto SUBSTATE_OP_STANDSTILL_STR
Definition motorBaseConfig.hpp:58
constexpr auto SUBSTATE_ABORTING_STR
Definition motorBaseConfig.hpp:57
constexpr int SUBSTATE_OP_STOPPING
Definition motorBaseConfig.hpp:54
constexpr auto SUBSTATE_OP_MOVING_STR
Definition motorBaseConfig.hpp:59
constexpr auto SUBSTATE_OP_STOPPING_STR
Definition motorBaseConfig.hpp:61
constexpr int SUBSTATE_OP_STANDSTILL
Definition motorBaseConfig.hpp:51
constexpr int SUBSTATE_ABORTING
Definition motorBaseConfig.hpp:50
constexpr int SUBSTATE_OP_MOVING
Definition motorBaseConfig.hpp:52
ActionsEnable class source file.
Definition actionMgr.cpp:28