ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
ifw::fcf::devmgr::adc Namespace Reference

Adc class source file. More...

Classes

class  Adc
 The Adc class. More...
 
class  AdcConfig
 adc Configuration class More...
 
struct  AdcControllerData
 The adcControllerData struct. More...
 
class  AdcLcsIf
 Adc 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_OP_READY = -2 , RPC_ERR_NOT_OP_NOTREADY = -3 ,
  RPC_ERR_MOTOR_LOCAL = -4 , RPC_ERR_MOTOR_LOWER_LIMIT = -5 , RPC_ERR_MOTOR_UPPER_LIMIT = -6
}
 

Functions

 REGISTER_DEVICE (Adc)
 

Variables

constexpr auto LOGGER_NAME = "adc"
 
constexpr auto CI_MOTOR_MAP_FILE = "mapMotorFile"
 
constexpr auto CI_AXES = "motors"
 
constexpr auto CI_FOCUS_SIGN = "focus_sign"
 
constexpr auto CI_DIR_SIGN = "dir_sign"
 
constexpr auto CI_STAT_REF = "off_ref"
 
constexpr auto CI_STAT_AUTO = "auto_ref"
 
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 CI_PSLOPE = "pslope"
 
constexpr auto CI_POFFSET = "poffset"
 
constexpr auto CI_TSLOPE = "tslope"
 
constexpr auto CI_TOFFSET = "toffset"
 
constexpr auto CI_AFACTOR = "afactor"
 
constexpr auto CI_ZDLIMIT = "zdlimit"
 
constexpr auto CI_MINELEV = "minelev"
 
constexpr auto CI_MOT1_SIGN_OFF = "mot1_signoff"
 
constexpr auto CI_MOT2_SIGN_OFF = "mot2_signoff"
 
constexpr auto CI_MOT1_SIGN_AUTO = "mot1_signauto"
 
constexpr auto CI_MOT2_SIGN_AUTO = "mot2_signauto"
 
constexpr auto CI_MOT1_SIGN_PHI = "mot1_signphi"
 
constexpr auto CI_MOT2_SIGN_PHI = "mot2_signphi"
 
constexpr auto CI_MOT1_REF_OFF = "mot1_refoff"
 
constexpr auto CI_MOT2_REF_OFF = "mot2_refoff"
 
constexpr auto CI_MOT1_REF_AUTO = "mot1_refauto"
 
constexpr auto CI_MOT2_REF_AUTO = "mot2_refauto"
 
constexpr auto CI_MOT1_COFFSET = "mot1_coffset"
 
constexpr auto CI_MOT2_COFFSET = "mot2_coffset"
 
constexpr auto CI_MOT1_POSOFFSET = "mot1_poffset"
 
constexpr auto CI_MOT2_POSOFFSET = "mot2_poffset"
 
constexpr auto CI_MOT1_DROTFACTOR = "mot1_drotfactor"
 
constexpr auto CI_MOT2_DROTFACTOR = "mot2_drotfactor"
 
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 > SUBSTATE_MAP
 
constexpr short TRK_MODE_ENG = 0
 
constexpr short TRK_MODE_OFF = 1
 
constexpr short TRK_MODE_AUTO = 2
 
constexpr auto TRK_MODE_ENG_STR = "eng"
 
constexpr auto TRK_MODE_OFF_STR = "off"
 
constexpr auto TRK_MODE_AUTO_STR = "auto"
 
const std::unordered_map< short, std::string > TRK_MODE_MAP
 
constexpr auto CI_STAT_TRACK_MODE = "track_mode"
 
constexpr auto CI_STAT_ALPHA = "alpha"
 
constexpr auto CI_STAT_DELTA = "delta"
 
const std::unordered_map< short, std::string > HW_ERRORS
 
const std::unordered_map< short, std::string > RPC_ERRORS
 

Detailed Description

Adc class source file.

adcLcsIf class header file.

AdcConfig class header file.

Adc class header file.

Enumeration Type Documentation

◆ anonymous enum

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

anonymous enum
Enumerator
RPC_SUCCESS 
RPC_ERR_NOT_OP 
RPC_ERR_NOT_OP_READY 
RPC_ERR_NOT_OP_NOTREADY 
RPC_ERR_MOTOR_LOCAL 
RPC_ERR_MOTOR_LOWER_LIMIT 
RPC_ERR_MOTOR_UPPER_LIMIT 

Function Documentation

◆ REGISTER_DEVICE()

ifw::fcf::devmgr::adc::REGISTER_DEVICE ( Adc )

Variable Documentation

◆ CI_AFACTOR

auto ifw::fcf::devmgr::adc::CI_AFACTOR = "afactor"
constexpr

◆ CI_AXES

auto ifw::fcf::devmgr::adc::CI_AXES = "motors"
constexpr

◆ CI_DIR_SIGN

auto ifw::fcf::devmgr::adc::CI_DIR_SIGN = "dir_sign"
constexpr

◆ CI_FOCUS_SIGN

auto ifw::fcf::devmgr::adc::CI_FOCUS_SIGN = "focus_sign"
constexpr

◆ CI_LATITUDE

auto ifw::fcf::devmgr::adc::CI_LATITUDE = "latitude"
constexpr

◆ CI_LONGITUDE

auto ifw::fcf::devmgr::adc::CI_LONGITUDE = "longitude"
constexpr

◆ CI_MINELEV

auto ifw::fcf::devmgr::adc::CI_MINELEV = "minelev"
constexpr

◆ CI_MOT1_COFFSET

auto ifw::fcf::devmgr::adc::CI_MOT1_COFFSET = "mot1_coffset"
constexpr

◆ CI_MOT1_DROTFACTOR

auto ifw::fcf::devmgr::adc::CI_MOT1_DROTFACTOR = "mot1_drotfactor"
constexpr

◆ CI_MOT1_POSOFFSET

auto ifw::fcf::devmgr::adc::CI_MOT1_POSOFFSET = "mot1_poffset"
constexpr

◆ CI_MOT1_REF_AUTO

auto ifw::fcf::devmgr::adc::CI_MOT1_REF_AUTO = "mot1_refauto"
constexpr

◆ CI_MOT1_REF_OFF

auto ifw::fcf::devmgr::adc::CI_MOT1_REF_OFF = "mot1_refoff"
constexpr

◆ CI_MOT1_SIGN_AUTO

auto ifw::fcf::devmgr::adc::CI_MOT1_SIGN_AUTO = "mot1_signauto"
constexpr

◆ CI_MOT1_SIGN_OFF

auto ifw::fcf::devmgr::adc::CI_MOT1_SIGN_OFF = "mot1_signoff"
constexpr

◆ CI_MOT1_SIGN_PHI

auto ifw::fcf::devmgr::adc::CI_MOT1_SIGN_PHI = "mot1_signphi"
constexpr

◆ CI_MOT2_COFFSET

auto ifw::fcf::devmgr::adc::CI_MOT2_COFFSET = "mot2_coffset"
constexpr

◆ CI_MOT2_DROTFACTOR

auto ifw::fcf::devmgr::adc::CI_MOT2_DROTFACTOR = "mot2_drotfactor"
constexpr

◆ CI_MOT2_POSOFFSET

auto ifw::fcf::devmgr::adc::CI_MOT2_POSOFFSET = "mot2_poffset"
constexpr

◆ CI_MOT2_REF_AUTO

auto ifw::fcf::devmgr::adc::CI_MOT2_REF_AUTO = "mot2_refauto"
constexpr

◆ CI_MOT2_REF_OFF

auto ifw::fcf::devmgr::adc::CI_MOT2_REF_OFF = "mot2_refoff"
constexpr

◆ CI_MOT2_SIGN_AUTO

auto ifw::fcf::devmgr::adc::CI_MOT2_SIGN_AUTO = "mot2_signauto"
constexpr

◆ CI_MOT2_SIGN_OFF

auto ifw::fcf::devmgr::adc::CI_MOT2_SIGN_OFF = "mot2_signoff"
constexpr

◆ CI_MOT2_SIGN_PHI

auto ifw::fcf::devmgr::adc::CI_MOT2_SIGN_PHI = "mot2_signphi"
constexpr

◆ CI_MOTOR_MAP_FILE

auto ifw::fcf::devmgr::adc::CI_MOTOR_MAP_FILE = "mapMotorFile"
constexpr

◆ CI_POFFSET

auto ifw::fcf::devmgr::adc::CI_POFFSET = "poffset"
constexpr

◆ CI_PSLOPE

auto ifw::fcf::devmgr::adc::CI_PSLOPE = "pslope"
constexpr

◆ CI_STAT_ALPHA

auto ifw::fcf::devmgr::adc::CI_STAT_ALPHA = "alpha"
constexpr

◆ CI_STAT_AUTO

auto ifw::fcf::devmgr::adc::CI_STAT_AUTO = "auto_ref"
constexpr

◆ CI_STAT_DELTA

auto ifw::fcf::devmgr::adc::CI_STAT_DELTA = "delta"
constexpr

◆ CI_STAT_REF

auto ifw::fcf::devmgr::adc::CI_STAT_REF = "off_ref"
constexpr

◆ CI_STAT_TRACK_MODE

auto ifw::fcf::devmgr::adc::CI_STAT_TRACK_MODE = "track_mode"
constexpr

◆ CI_TOFFSET

auto ifw::fcf::devmgr::adc::CI_TOFFSET = "toffset"
constexpr

◆ CI_TRK_PERIOD

auto ifw::fcf::devmgr::adc::CI_TRK_PERIOD = "trk_period"
constexpr

◆ CI_TRK_THRESHOLD

auto ifw::fcf::devmgr::adc::CI_TRK_THRESHOLD = "trk_threshold"
constexpr

◆ CI_TSLOPE

auto ifw::fcf::devmgr::adc::CI_TSLOPE = "tslope"
constexpr

◆ CI_ZDLIMIT

auto ifw::fcf::devmgr::adc::CI_ZDLIMIT = "zdlimit"
constexpr

◆ HW_ERRORS

const std::unordered_map<short, std::string> ifw::fcf::devmgr::adc::HW_ERRORS
Initial value:
= {
{HW_ERR_HW_NOT_OP, "TwinCAT not in OP state or CouplerState not mapped"},
{HW_ERR_WRONG_CMD, "Adc unknown command"},
{HW_ERR_INCONSISTENT, "Adc inconsistent hardware signals"},
{HW_ERR_INIT_FAILURE, "Adc init failure"},
{HW_ERR_ENABLE_FAILURE, "Adc enable failure"},
{HW_ERR_DISABLE_FAILURE, "Adc disable failure"},
}
@ HW_ERR_HW_NOT_OP
Definition adcHwErrors.hpp:20
@ HW_ERR_ENABLE_FAILURE
Definition adcHwErrors.hpp:24
@ HW_ERR_WRONG_CMD
Definition adcHwErrors.hpp:21
@ HW_ERR_DISABLE_FAILURE
Definition adcHwErrors.hpp:25
@ HW_ERR_INCONSISTENT
Definition adcHwErrors.hpp:22
@ HW_ERR_INIT_FAILURE
Definition adcHwErrors.hpp:23

◆ LOGGER_NAME

auto ifw::fcf::devmgr::adc::LOGGER_NAME = "adc"
constexpr

◆ RPC_ERRORS

const std::unordered_map<short, std::string> ifw::fcf::devmgr::adc::RPC_ERRORS
Initial value:
= {
{RPC_ERR_NOT_OP, "Cannot disable Adc. Not in OP state"},
{RPC_ERR_NOT_OP_READY, "Cannot enable Adc. Not in NOT_OP_READY."},
{RPC_ERR_NOT_OP_NOTREADY, "Cannot init Adc. Not in NOT_OP_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."}
}
@ RPC_ERR_MOTOR_LOCAL
Definition adcRpcErrors.hpp:23
@ RPC_ERR_NOT_OP_NOTREADY
Definition adcRpcErrors.hpp:22
@ RPC_ERR_NOT_OP
Definition adcRpcErrors.hpp:20
@ RPC_ERR_NOT_OP_READY
Definition adcRpcErrors.hpp:21
@ RPC_ERR_MOTOR_LOWER_LIMIT
Definition adcRpcErrors.hpp:24
@ RPC_ERR_MOTOR_UPPER_LIMIT
Definition adcRpcErrors.hpp:25

◆ RPC_MOVE_ANGLE

auto ifw::fcf::devmgr::adc::RPC_MOVE_ANGLE = "rpcMoveAngle"
constexpr

◆ RPC_START_TRACK

auto ifw::fcf::devmgr::adc::RPC_START_TRACK = "rpcStartTrack"
constexpr

◆ RPC_STOP_TRACK

auto ifw::fcf::devmgr::adc::RPC_STOP_TRACK = "rpcStopTrack"
constexpr

◆ SUBSTATE_ENABLING

int ifw::fcf::devmgr::adc::SUBSTATE_ENABLING = 110
constexpr

◆ SUBSTATE_ENABLING_STR

auto ifw::fcf::devmgr::adc::SUBSTATE_ENABLING_STR = "Enabling"
constexpr

◆ SUBSTATE_MAP

const std::unordered_map<short, std::string> ifw::fcf::devmgr::adc::SUBSTATE_MAP
Initial value:
= {
}
constexpr int SUBSTATE_OP_TRACKING
Definition adcConfig.hpp:76
constexpr auto SUBSTATE_OP_TRACKING_STR
Definition adcConfig.hpp:81
constexpr int SUBSTATE_OP_PRESETTING
Definition adcConfig.hpp:77
constexpr auto SUBSTATE_OP_PRESETTING_STR
Definition adcConfig.hpp:82
constexpr auto SUBSTATE_RESETTING_STR
Definition adcConfig.hpp:79
constexpr auto SUBSTATE_ENABLING_STR
Definition adcConfig.hpp:80
constexpr int SUBSTATE_RESETTING
Definition adcConfig.hpp:73
constexpr int SUBSTATE_ENABLING
Definition adcConfig.hpp:74
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 SUBSTATE_OP_STANDSTILL_STR
Definition motorBaseConfig.hpp:57
constexpr auto SUBSTATE_ABORTING_STR
Definition motorBaseConfig.hpp:56
constexpr int SUBSTATE_OP_STOPPING
Definition motorBaseConfig.hpp:53
constexpr auto SUBSTATE_OP_MOVING_STR
Definition motorBaseConfig.hpp:58
constexpr auto SUBSTATE_OP_STOPPING_STR
Definition motorBaseConfig.hpp:60
constexpr int SUBSTATE_OP_STANDSTILL
Definition motorBaseConfig.hpp:50
constexpr int SUBSTATE_ABORTING
Definition motorBaseConfig.hpp:49
constexpr int SUBSTATE_OP_MOVING
Definition motorBaseConfig.hpp:51

◆ SUBSTATE_OP_PRESETTING

int ifw::fcf::devmgr::adc::SUBSTATE_OP_PRESETTING = 221
constexpr

◆ SUBSTATE_OP_PRESETTING_STR

auto ifw::fcf::devmgr::adc::SUBSTATE_OP_PRESETTING_STR = "Presetting"
constexpr

◆ SUBSTATE_OP_TRACKING

int ifw::fcf::devmgr::adc::SUBSTATE_OP_TRACKING = 220
constexpr

◆ SUBSTATE_OP_TRACKING_STR

auto ifw::fcf::devmgr::adc::SUBSTATE_OP_TRACKING_STR = "Tracking"
constexpr

◆ SUBSTATE_RESETTING

int ifw::fcf::devmgr::adc::SUBSTATE_RESETTING = 109
constexpr

◆ SUBSTATE_RESETTING_STR

auto ifw::fcf::devmgr::adc::SUBSTATE_RESETTING_STR = "Resetting"
constexpr

◆ TRK_MODE_AUTO

short ifw::fcf::devmgr::adc::TRK_MODE_AUTO = 2
constexpr

◆ TRK_MODE_AUTO_STR

auto ifw::fcf::devmgr::adc::TRK_MODE_AUTO_STR = "auto"
constexpr

◆ TRK_MODE_ENG

short ifw::fcf::devmgr::adc::TRK_MODE_ENG = 0
constexpr

◆ TRK_MODE_ENG_STR

auto ifw::fcf::devmgr::adc::TRK_MODE_ENG_STR = "eng"
constexpr

◆ TRK_MODE_MAP

const std::unordered_map<short, std::string> ifw::fcf::devmgr::adc::TRK_MODE_MAP
Initial value:
= {
}
constexpr short TRK_MODE_AUTO
Definition adcConfig.hpp:105
constexpr short TRK_MODE_ENG
Definition adcConfig.hpp:103
constexpr auto TRK_MODE_OFF_STR
Definition adcConfig.hpp:109
constexpr auto TRK_MODE_ENG_STR
Definition adcConfig.hpp:108
constexpr short TRK_MODE_OFF
Definition adcConfig.hpp:104
constexpr auto TRK_MODE_AUTO_STR
Definition adcConfig.hpp:110

◆ TRK_MODE_OFF

short ifw::fcf::devmgr::adc::TRK_MODE_OFF = 1
constexpr

◆ TRK_MODE_OFF_STR

auto ifw::fcf::devmgr::adc::TRK_MODE_OFF_STR = "off"
constexpr