ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Enumerations | Functions | Variables
fcf::devmgr::drot Namespace Reference

Classes

class  Drot
 The Drot class. More...
 
class  DrotConfig
 drot Configuration class More...
 
struct  DrotControllerData
 The drotControllerData struct. More...
 
class  DrotLcsIf
 Drot Local Control System (LCS) Interface (IF) class. More...
 

Enumerations

enum  {
  HW_SUCCESS = 100, HW_ERR_HW_NOT_OP, HW_ERR_WRONG_CMD, HW_ERR_INCONSISTENT,
  HW_ERR_INIT_FAILURE, HW_ERR_ENABLE_FAILURE, HW_ERR_DISABLE_FAILURE
}
 
enum  {
  RPC_SUCCESS = 0, RPC_ERR_NOT_OP = -1, RPC_ERR_NOT_STANDBY_READY = -2, RPC_ERR_NOT_STANDBY_NOTREADY = -3,
  RPC_ERR_MOTOR_LOCAL = -4, RPC_ERR_MOTOR_LOWER_LIMIT = -5, RPC_ERR_MOTOR_UPPER_LIMIT = -6
}
 

Functions

 REGISTER_DEVICE (Drot)
 

Variables

constexpr auto CI_FOCUS_SIGN = "focus_sign"
 
constexpr auto CI_DIR_SIGN = "dir_sign"
 
constexpr auto CI_STAT_REF = "stat_ref"
 
constexpr auto CI_STAT_SKY = "sky_ref"
 
constexpr auto CI_STAT_ELEV = "elev_ref"
 
constexpr auto CI_STAT_USER = "user_ref"
 
constexpr auto CI_USER_PAR1 = "user_par1"
 
constexpr auto CI_USER_PAR2 = "user_par2"
 
constexpr auto CI_USER_PAR3 = "user_par3"
 
constexpr auto CI_USER_PAR4 = "user_par4"
 
constexpr auto CI_LATITUDE = "latitude"
 
constexpr auto CI_LONGITUDE = "longitude"
 
constexpr auto CI_TRK_PERIOD = "trk_period"
 
constexpr auto CI_TRK_THRESHOLD = "trk_threshold"
 
constexpr auto RPC_MOVE_ANGLE = "rpcMoveAngle"
 
constexpr auto RPC_START_TRACK = "rpcStartTrack"
 
constexpr auto RPC_STOP_TRACK = "rpcStopTrack"
 
constexpr int SUBSTATE_RESETTING = 109
 
constexpr int SUBSTATE_ENABLING = 110
 
constexpr int SUBSTATE_OP_TRACKING = 220
 
constexpr int SUBSTATE_OP_PRESETTING = 221
 
constexpr auto SUBSTATE_RESETTING_STR = "Resetting"
 
constexpr auto SUBSTATE_ENABLING_STR = "Enabling"
 
constexpr auto SUBSTATE_OP_TRACKING_STR = "Tracking"
 
constexpr auto SUBSTATE_OP_PRESETTING_STR = "Presetting"
 
const std::unordered_map
< short, std::string > 
SubstateMap
 
constexpr short TRK_MODE_ENG = 0
 
constexpr short TRK_MODE_STAT = 1
 
constexpr short TRK_MODE_SKY = 2
 
constexpr short TRK_MODE_ELEV = 3
 
constexpr short TRK_MODE_USER = 4
 
constexpr auto TRK_MODE_ENG_STR = "eng"
 
constexpr auto TRK_MODE_STAT_STR = "stat"
 
constexpr auto TRK_MODE_SKY_STR = "sky"
 
constexpr auto TRK_MODE_ELEV_STR = "elev"
 
constexpr auto TRK_MODE_USER_STR = "user"
 
const std::unordered_map
< short, std::string > 
TrkModeMap
 
constexpr auto CI_STAT_TRACK_MODE = "track_mode"
 
constexpr auto CI_STAT_ALPHA = "alpha"
 
constexpr auto CI_STAT_DELTA = "delta"
 
constexpr auto CI_STAT_ANGLE_ON_SKY = "angle_on_sky"
 
const std::vector< std::string > cfgMapping
 
const std::vector< std::string > statMapping
 
const std::vector< std::string > rpcMapping
 
const std::unordered_map
< short, std::string > 
hw_errors
 
const std::unordered_map
< short, std::string > 
rpc_errors
 

Enumeration Type Documentation

anonymous enum
Enumerator
HW_SUCCESS 
HW_ERR_HW_NOT_OP 
HW_ERR_WRONG_CMD 
HW_ERR_INCONSISTENT 
HW_ERR_INIT_FAILURE 
HW_ERR_ENABLE_FAILURE 
HW_ERR_DISABLE_FAILURE 
anonymous enum
Enumerator
RPC_SUCCESS 
RPC_ERR_NOT_OP 
RPC_ERR_NOT_STANDBY_READY 
RPC_ERR_NOT_STANDBY_NOTREADY 
RPC_ERR_MOTOR_LOCAL 
RPC_ERR_MOTOR_LOWER_LIMIT 
RPC_ERR_MOTOR_UPPER_LIMIT 

Function Documentation

fcf::devmgr::drot::REGISTER_DEVICE ( Drot  )

Variable Documentation

const std::vector<std::string> fcf::devmgr::drot::cfgMapping
Initial value:
= {
}
constexpr auto fcf::devmgr::drot::CI_DIR_SIGN = "dir_sign"
constexpr auto fcf::devmgr::drot::CI_FOCUS_SIGN = "focus_sign"
constexpr auto fcf::devmgr::drot::CI_LATITUDE = "latitude"
constexpr auto fcf::devmgr::drot::CI_LONGITUDE = "longitude"
constexpr auto fcf::devmgr::drot::CI_STAT_ALPHA = "alpha"
constexpr auto fcf::devmgr::drot::CI_STAT_ANGLE_ON_SKY = "angle_on_sky"
constexpr auto fcf::devmgr::drot::CI_STAT_DELTA = "delta"
constexpr auto fcf::devmgr::drot::CI_STAT_ELEV = "elev_ref"
constexpr auto fcf::devmgr::drot::CI_STAT_REF = "stat_ref"
constexpr auto fcf::devmgr::drot::CI_STAT_SKY = "sky_ref"
constexpr auto fcf::devmgr::drot::CI_STAT_TRACK_MODE = "track_mode"
constexpr auto fcf::devmgr::drot::CI_STAT_USER = "user_ref"
constexpr auto fcf::devmgr::drot::CI_TRK_PERIOD = "trk_period"
constexpr auto fcf::devmgr::drot::CI_TRK_THRESHOLD = "trk_threshold"
constexpr auto fcf::devmgr::drot::CI_USER_PAR1 = "user_par1"
constexpr auto fcf::devmgr::drot::CI_USER_PAR2 = "user_par2"
constexpr auto fcf::devmgr::drot::CI_USER_PAR3 = "user_par3"
constexpr auto fcf::devmgr::drot::CI_USER_PAR4 = "user_par4"
const std::unordered_map<short, std::string> fcf::devmgr::drot::hw_errors
Initial value:
= {
{HW_ERR_HW_NOT_OP, "TwinCAT not in OP state or CouplerState not mapped"},
{HW_ERR_WRONG_CMD, "Drot unknown command"},
{HW_ERR_INCONSISTENT, "Drot inconsistent hardware signals"},
{HW_ERR_INIT_FAILURE, "Drot init failure"},
{HW_ERR_ENABLE_FAILURE, "Drot enable failure"},
{HW_ERR_DISABLE_FAILURE, "Drot disable failure"},
}
Definition: actuatorHwErrors.hpp:24
Definition: actuatorHwErrors.hpp:22
Definition: actuatorHwErrors.hpp:23
Definition: actuatorHwErrors.hpp:26
Definition: actuatorHwErrors.hpp:25
Definition: actuatorHwErrors.hpp:21
const std::unordered_map<short, std::string> fcf::devmgr::drot::rpc_errors
Initial value:
= {
{RPC_ERR_NOT_OP, "Cannot disable Drot. Not in OP state"},
{RPC_ERR_NOT_STANDBY_READY, "Cannot enable Drot. Not in STANDBY_READY."},
{RPC_ERR_NOT_STANDBY_NOTREADY, "Cannot init Drot. Not in STANDBY_NOTREADY or FAILURE."},
{RPC_ERR_MOTOR_LOCAL, "RPC calls are not allowed in Local mode."},
{RPC_ERR_MOTOR_LOWER_LIMIT, "Move rejected. Target position beyond lower SW limit."},
{RPC_ERR_MOTOR_UPPER_LIMIT, "Move rejected. Target position beyond upper SW limit."}
}
Definition: actuatorRpcErrors.hpp:23
Definition: actuatorRpcErrors.hpp:22
Definition: actuatorRpcErrors.hpp:21
Definition: adcRpcErrors.hpp:25
Definition: adcRpcErrors.hpp:26
Definition: adcRpcErrors.hpp:24
constexpr auto fcf::devmgr::drot::RPC_MOVE_ANGLE = "rpcMoveAngle"
constexpr auto fcf::devmgr::drot::RPC_START_TRACK = "rpcStartTrack"
constexpr auto fcf::devmgr::drot::RPC_STOP_TRACK = "rpcStopTrack"
const std::vector<std::string> fcf::devmgr::drot::rpcMapping
Initial value:
= {
}
constexpr auto RPC_INIT
Definition: deviceConfig.hpp:43
constexpr auto RPC_STOP_TRACK
Definition: adcConfig.hpp:70
constexpr auto RPC_MOVE_ANGLE
Definition: adcConfig.hpp:68
constexpr auto RPC_DISABLE
Definition: deviceConfig.hpp:45
constexpr auto RPC_STOP
Definition: deviceConfig.hpp:46
constexpr auto RPC_START_TRACK
Definition: adcConfig.hpp:69
constexpr auto RPC_RESET
Definition: deviceConfig.hpp:47
constexpr auto RPC_ENABLE
Definition: deviceConfig.hpp:44
const std::vector<std::string> fcf::devmgr::drot::statMapping
Initial value:
= {
}
constexpr auto CI_STAT_LOCAL
Definition: deviceConfig.hpp:53
constexpr auto CI_STAT_TARGET_POS
Definition: motorConfig.hpp:145
constexpr auto CI_STAT_DELTA
Definition: adcConfig.hpp:123
constexpr auto CI_STAT_SCALE_FACTOR
Definition: motorConfig.hpp:150
constexpr auto CI_STAT_SUBSTATE
Definition: deviceConfig.hpp:50
constexpr auto CI_STAT_TRACK_MODE
Definition: adcConfig.hpp:121
constexpr auto CI_STAT_ANGLE_ON_SKY
Definition: drotConfig.hpp:106
constexpr auto CI_STAT_STATE
Definition: deviceConfig.hpp:51
constexpr auto CI_STAT_ACTUAL_VEL
Definition: motorConfig.hpp:148
constexpr auto CI_STAT_ACTUAL_POS
Definition: motorConfig.hpp:146
constexpr auto CI_STAT_ALPHA
Definition: adcConfig.hpp:122
constexpr auto CI_STAT_ERROR_CODE
Definition: deviceConfig.hpp:54
constexpr int fcf::devmgr::drot::SUBSTATE_ENABLING = 110
constexpr auto fcf::devmgr::drot::SUBSTATE_ENABLING_STR = "Enabling"
constexpr int fcf::devmgr::drot::SUBSTATE_OP_PRESETTING = 221
constexpr auto fcf::devmgr::drot::SUBSTATE_OP_PRESETTING_STR = "Presetting"
constexpr int fcf::devmgr::drot::SUBSTATE_OP_TRACKING = 220
constexpr auto fcf::devmgr::drot::SUBSTATE_OP_TRACKING_STR = "Tracking"
constexpr int fcf::devmgr::drot::SUBSTATE_RESETTING = 109
constexpr auto fcf::devmgr::drot::SUBSTATE_RESETTING_STR = "Resetting"
const std::unordered_map<short, std::string> fcf::devmgr::drot::SubstateMap
Initial value:
= {
}
constexpr int SUBSTATE_ENABLING
Definition: adcConfig.hpp:76
constexpr int SUBSTATE_INITIALISING
Definition: deviceConfig.hpp:84
constexpr auto SUBSTATE_NOTREADY_STR
Definition: deviceConfig.hpp:87
constexpr auto SUBSTATE_OP_TRACKING_STR
Definition: adcConfig.hpp:83
constexpr auto SUBSTATE_OP_STOPPING_STR
Definition: motorConfig.hpp:125
constexpr auto SUBSTATE_OP_DISABLING_STR
Definition: deviceConfig.hpp:95
constexpr int SUBSTATE_OP_STANDSTILL
Definition: motorConfig.hpp:115
constexpr int SUBSTATE_OP_DISABLING
Definition: deviceConfig.hpp:92
constexpr int SUBSTATE_OP_STOPPING
Definition: motorConfig.hpp:118
constexpr int SUBSTATE_OP_MOVING
Definition: motorConfig.hpp:116
constexpr auto SUBSTATE_ENABLING_STR
Definition: adcConfig.hpp:82
constexpr int SUBSTATE_ABORTING
Definition: motorConfig.hpp:114
constexpr auto SUBSTATE_RESETTING_STR
Definition: adcConfig.hpp:81
constexpr int SUBSTATE_RESETTING
Definition: adcConfig.hpp:75
constexpr auto SUBSTATE_OP_PRESETTING_STR
Definition: adcConfig.hpp:84
constexpr int SUBSTATE_OP_PRESETTING
Definition: adcConfig.hpp:79
constexpr int SUBSTATE_NOTREADY
Definition: deviceConfig.hpp:82
constexpr auto SUBSTATE_OP_MOVING_STR
Definition: motorConfig.hpp:123
constexpr auto SUBSTATE_OP_ERROR_STR
Definition: deviceConfig.hpp:96
constexpr auto SUBSTATE_INITIALISING_STR
Definition: deviceConfig.hpp:88
constexpr auto SUBSTATE_READY_STR
Definition: deviceConfig.hpp:89
constexpr auto SUBSTATE_OP_STANDSTILL_STR
Definition: motorConfig.hpp:122
constexpr int SUBSTATE_OP_ERROR
Definition: deviceConfig.hpp:93
constexpr int SUBSTATE_ERROR
Definition: deviceConfig.hpp:85
constexpr auto SUBSTATE_ABORTING_STR
Definition: motorConfig.hpp:121
constexpr auto SUBSTATE_ERROR_STR
Definition: deviceConfig.hpp:90
constexpr int SUBSTATE_OP_TRACKING
Definition: adcConfig.hpp:78
constexpr int SUBSTATE_READY
Definition: deviceConfig.hpp:83
constexpr short fcf::devmgr::drot::TRK_MODE_ELEV = 3
constexpr auto fcf::devmgr::drot::TRK_MODE_ELEV_STR = "elev"
constexpr short fcf::devmgr::drot::TRK_MODE_ENG = 0
constexpr auto fcf::devmgr::drot::TRK_MODE_ENG_STR = "eng"
constexpr short fcf::devmgr::drot::TRK_MODE_SKY = 2
constexpr auto fcf::devmgr::drot::TRK_MODE_SKY_STR = "sky"
constexpr short fcf::devmgr::drot::TRK_MODE_STAT = 1
constexpr auto fcf::devmgr::drot::TRK_MODE_STAT_STR = "stat"
constexpr short fcf::devmgr::drot::TRK_MODE_USER = 4
constexpr auto fcf::devmgr::drot::TRK_MODE_USER_STR = "user"
const std::unordered_map<short, std::string> fcf::devmgr::drot::TrkModeMap
Initial value:
= {
}
constexpr auto TRK_MODE_STAT_STR
Definition: drotConfig.hpp:90
constexpr auto TRK_MODE_USER_STR
Definition: drotConfig.hpp:93
constexpr short TRK_MODE_ENG
Definition: adcConfig.hpp:105
constexpr short TRK_MODE_STAT
Definition: drotConfig.hpp:84
constexpr auto TRK_MODE_ENG_STR
Definition: adcConfig.hpp:110
constexpr auto TRK_MODE_SKY_STR
Definition: drotConfig.hpp:91
constexpr short TRK_MODE_SKY
Definition: drotConfig.hpp:85
constexpr short TRK_MODE_USER
Definition: drotConfig.hpp:87
constexpr short TRK_MODE_ELEV
Definition: drotConfig.hpp:86
constexpr auto TRK_MODE_ELEV_STR
Definition: drotConfig.hpp:92