Go to the documentation of this file.
9 #ifndef FCF_DEVMGR_DEVICE_ADC_CONFIG_HPP
10 #define FCF_DEVMGR_DEVICE_ADC_CONFIG_HPP
13 #include <yaml-cpp/yaml.h>
14 #include "fcf/common/iComm.hpp"
16 #include <utils/bat/logger.hpp>
146 const std::string name);
171 virtual void GetConfig(fcf::common::VectorVariant& params)
const override;
182 virtual void GetMotorConfig(fcf::common::VectorVariant& params)
const;
184 virtual void GetMotorConfig(
const std::string
motor, fcf::common::VectorVariant& params)
const;
205 std::string prefix)
const override;
228 void GetMotorNames(std::vector<std::string>& motor_names)
const;
238 std::string
GetMotorName(
const std::string nodeid)
const;
255 log4cplus::Logger m_logger;
260 #endif //FCF_DEVMGR_DEVICE_ADC_CONFIG_H
constexpr auto SUBSTATE_OP_MOVING_STR
Definition: motorBaseConfig.hpp:66
constexpr auto CI_MOT2_SIGN_AUTO
Definition: adcConfig.hpp:53
constexpr auto CI_MOT1_SIGN_PHI
Definition: adcConfig.hpp:54
constexpr int SUBSTATE_OP_PRESETTING
Definition: adcConfig.hpp:80
DataContext class header file.
std::map< std::string, std::string > m_motor_prefix_map
Definition: adcConfig.hpp:252
constexpr auto CI_MINELEV
Definition: adcConfig.hpp:48
constexpr auto CI_MOT1_REF_OFF
Definition: adcConfig.hpp:56
adc Configuration class
Definition: adcConfig.hpp:136
virtual ~AdcConfig()=default
DeviceConfig destructor.
double GetNpTolerance() const
Get named position tolerance.
Definition: adcConfig.cpp:304
virtual void GetConfigList(utils::bat::DbVector &cfg_list, std::string prefix) const override
Get configuration list.
Definition: adcConfig.cpp:120
virtual void GetMotorConfig(fcf::common::VectorVariant ¶ms) const
Obtain the list of ADC motor configuration parameters.
Definition: adcConfig.cpp:103
constexpr auto CI_MOT2_COFFSET
Definition: adcConfig.hpp:61
std::map< std::string, std::unique_ptr< fcf::devmgr::motor::MotorConfig > > m_motor_config_map
Maps of ADC axes configuration.
Definition: adcConfig.hpp:248
constexpr auto CI_ZDLIMIT
Definition: adcConfig.hpp:47
void GetMotorNames(std::vector< std::string > &motor_names) const
Definition: adcConfig.cpp:207
constexpr auto SUBSTATE_OP_DISABLING_STR
Definition: deviceConfig.hpp:111
constexpr auto CI_MOT2_SIGN_PHI
Definition: adcConfig.hpp:55
constexpr auto CI_TRK_PERIOD
Definition: adcConfig.hpp:39
std::string GetMotorName(const int &index) const
Definition: adcConfig.cpp:196
constexpr int SUBSTATE_OP_MOVING
Definition: motorBaseConfig.hpp:59
constexpr auto CI_MOT2_REF_OFF
Definition: adcConfig.hpp:57
void GetMotorPrefixes(std::vector< std::string > &motor_prefixes) const
Definition: adcConfig.cpp:214
constexpr auto LOGGER_NAME
Definition: adcConfig.hpp:26
constexpr auto CI_STAT_AUTO
Definition: adcConfig.hpp:35
constexpr auto CI_MOT2_DROTFACTOR
Definition: adcConfig.hpp:65
virtual std::string GetMotorType() const
Definition: adcConfig.cpp:154
AdcConfig(const std::string filename, const std::string name)
DeviceConfig constructor.
Definition: adcConfig.cpp:29
virtual void GetConfig(fcf::common::VectorVariant ¶ms) const override
Obtain the list of configuration parameters.
Definition: adcConfig.cpp:92
constexpr int SUBSTATE_ABORTING
Definition: motorBaseConfig.hpp:57
const std::unordered_map< short, std::string > TrkModeMap
Definition: adcConfig.hpp:116
constexpr auto CI_TSLOPE
Definition: adcConfig.hpp:44
constexpr auto CI_STAT_REF
Definition: adcConfig.hpp:34
constexpr auto SUBSTATE_RESETTING_STR
Definition: adcConfig.hpp:82
constexpr auto CI_PSLOPE
Definition: adcConfig.hpp:42
constexpr auto CI_MOT1_SIGN_AUTO
Definition: adcConfig.hpp:52
constexpr auto SUBSTATE_OP_PRESETTING_STR
Definition: adcConfig.hpp:85
constexpr auto SUBSTATE_OP_STANDSTILL_STR
Definition: motorBaseConfig.hpp:65
constexpr auto CI_AXES
Definition: adcConfig.hpp:31
constexpr auto CI_STAT_TRACK_MODE
Definition: adcConfig.hpp:122
constexpr int SUBSTATE_OP_DISABLING
Definition: deviceConfig.hpp:108
constexpr int SUBSTATE_ENABLING
Definition: adcConfig.hpp:77
constexpr auto CI_MOT2_SIGN_OFF
Definition: adcConfig.hpp:51
constexpr short TRK_MODE_ENG
Definition: adcConfig.hpp:106
constexpr auto CI_TRK_THRESHOLD
Definition: adcConfig.hpp:40
constexpr auto CI_LONGITUDE
Definition: adcConfig.hpp:38
constexpr auto SUBSTATE_NOTREADY_STR
Definition: deviceConfig.hpp:103
configSet class header file.
constexpr auto CI_MOT1_POSOFFSET
Definition: adcConfig.hpp:62
constexpr auto SUBSTATE_INITIALISING_STR
Definition: deviceConfig.hpp:104
constexpr auto CI_MOT1_SIGN_OFF
Definition: adcConfig.hpp:50
constexpr auto CI_MOT2_POSOFFSET
Definition: adcConfig.hpp:63
constexpr auto TRK_MODE_OFF_STR
Definition: adcConfig.hpp:112
constexpr auto CI_MOT1_DROTFACTOR
Definition: adcConfig.hpp:64
constexpr int SUBSTATE_NOTREADY
Definition: deviceConfig.hpp:98
constexpr auto CI_STAT_DELTA
Definition: adcConfig.hpp:124
constexpr int SUBSTATE_INITIALISING
Definition: deviceConfig.hpp:100
constexpr auto CI_MOT1_COFFSET
Definition: adcConfig.hpp:60
Definition: __init__.py:1
constexpr auto SUBSTATE_OP_TRACKING_STR
Definition: adcConfig.hpp:84
constexpr auto RPC_STOP_TRACK
Definition: adcConfig.hpp:71
constexpr auto TRK_MODE_AUTO_STR
Definition: adcConfig.hpp:113
constexpr int SUBSTATE_OP_ERROR
Definition: deviceConfig.hpp:109
constexpr int SUBSTATE_RESETTING
Definition: adcConfig.hpp:76
constexpr auto CI_AFACTOR
Definition: adcConfig.hpp:46
constexpr auto SUBSTATE_OP_ERROR_STR
Definition: deviceConfig.hpp:112
constexpr auto CI_FOCUS_SIGN
Definition: adcConfig.hpp:32
constexpr short TRK_MODE_AUTO
Definition: adcConfig.hpp:108
constexpr auto CI_TOFFSET
Definition: adcConfig.hpp:45
const std::unordered_map< short, std::string > SubstateMap
Definition: adcConfig.hpp:89
constexpr auto CI_MOT1_REF_AUTO
Definition: adcConfig.hpp:58
constexpr int SUBSTATE_ERROR
Definition: deviceConfig.hpp:101
constexpr auto CI_LATITUDE
Definition: adcConfig.hpp:37
constexpr int SUBSTATE_OP_TRACKING
Definition: adcConfig.hpp:79
constexpr auto TRK_MODE_ENG_STR
Definition: adcConfig.hpp:111
constexpr auto SUBSTATE_ABORTING_STR
Definition: motorBaseConfig.hpp:64
void Init()
Define configuration parameters for adc device.
Definition: adcConfig.cpp:48
Device Configuration class.
Definition: deviceConfig.hpp:127
constexpr short TRK_MODE_OFF
Definition: adcConfig.hpp:107
double GetMotorScaleFactor(const int axis_num) const
Definition: adcConfig.cpp:258
virtual void SetScaleFactor(const std::string motor, double scale_factor)
Definition: adcConfig.cpp:221
std::string GetMotorPrefix(const int &index) const
Definition: adcConfig.cpp:165
double GetMotorVelocity(const int axis_num) const
Definition: adcConfig.cpp:229
constexpr auto CI_POFFSET
Definition: adcConfig.hpp:43
constexpr auto SUBSTATE_READY_STR
Definition: deviceConfig.hpp:105
constexpr int SUBSTATE_READY
Definition: deviceConfig.hpp:99
AdcRpcErrors header file.
constexpr auto SUBSTATE_ENABLING_STR
Definition: adcConfig.hpp:83
int m_num_axis
Definition: adcConfig.hpp:243
constexpr int SUBSTATE_OP_STOPPING
Definition: motorBaseConfig.hpp:61
constexpr auto SUBSTATE_OP_STOPPING_STR
Definition: motorBaseConfig.hpp:68
constexpr auto SUBSTATE_ERROR_STR
Definition: deviceConfig.hpp:106
constexpr auto CI_MOTOR_MAP_FILE
Definition: adcConfig.hpp:29
constexpr auto CI_STAT_ALPHA
Definition: adcConfig.hpp:123
MotorConfig class header file.
virtual std::string GetMotorMapFile() const
Definition: adcConfig.cpp:136
constexpr auto RPC_MOVE_ANGLE
Definition: adcConfig.hpp:69
constexpr auto CI_DIR_SIGN
Definition: adcConfig.hpp:33
constexpr int SUBSTATE_OP_STANDSTILL
Definition: motorBaseConfig.hpp:58
constexpr auto RPC_START_TRACK
Definition: adcConfig.hpp:70
constexpr auto CI_MOT2_REF_AUTO
Definition: adcConfig.hpp:59