9 #ifndef FCF_DEVMGR_DEVICE_MOTOR_IF_HPP
10 #define FCF_DEVMGR_DEVICE_MOTOR_IF_HPP
13 #include <unordered_map>
16 #include <yaml-cpp/yaml.h>
23 #include <rad/mal/publisher.hpp>
133 MotorLcsIf(std::shared_ptr<fcf::devmgr::common::IDeviceConfig> config,
174 void Listener(protocol::base::VectorVariant& params);
181 virtual std::string
GetRpcError(
const short error_code)
const;
218 log4cplus::Logger m_logger;
225 #include "motorLcsIf.ipp"
Definition: dataContext.hpp:90
Motor Local Control System (LCS) Interface (IF) class.
Definition: motorBaseLcsIf.hpp:75
@ STAT_MOTOR_BASE_END
Definition: motorBaseLcsIf.hpp:89
Motor Local Control System (LCS) Interface (IF) class.
Definition: motorLcsIf.hpp:100
bool m_mot_signal_ustop
Definition: motorLcsIf.hpp:215
bool m_mot_axis_enable
Definition: motorLcsIf.hpp:206
bool m_mot_signal_uhw
Definition: motorLcsIf.hpp:214
void Listener(protocol::base::VectorVariant ¶ms)
Callback to manage changes on the monitored items.
Definition: motorLcsIf.cpp:98
short m_mot_axis_info2
Definition: motorLcsIf.hpp:204
virtual void ReadStatus(MotorControllerData &status)
Read status from the controller.
Definition: motorLcsIf.cpp:80
int m_mot_mode
Definition: motorLcsIf.hpp:202
bool m_mot_signal_index
Definition: motorLcsIf.hpp:213
bool m_mot_axis_inpos
Definition: motorLcsIf.hpp:209
virtual void InitObject()
Initialize object.
Definition: motorLcsIf.cpp:38
bool m_mot_axis_ready
Definition: motorLcsIf.hpp:205
bool m_mot_signal_lstop
Definition: motorLcsIf.hpp:210
@ STAT_SIGNAL_INDEX
Definition: motorLcsIf.hpp:116
@ STAT_SIGNAL_LSTOP
Definition: motorLcsIf.hpp:113
@ STAT_AXIS_LOCK
Definition: motorLcsIf.hpp:105
@ STAT_INIT_ACTION
Definition: motorLcsIf.hpp:112
@ STAT_SIGNAL_USTOP
Definition: motorLcsIf.hpp:118
@ STAT_MODE
Definition: motorLcsIf.hpp:106
@ STAT_AXIS_INPOS
Definition: motorLcsIf.hpp:108
@ STAT_AXIS_READY
Definition: motorLcsIf.hpp:107
@ STAT_SCALE_FACTOR
Definition: motorLcsIf.hpp:119
@ STAT_AXIS_INFO2
Definition: motorLcsIf.hpp:110
@ STAT_INIT_STEP
Definition: motorLcsIf.hpp:111
@ STAT_MOTOR_END
Definition: motorLcsIf.hpp:120
@ STAT_AXIS_ENABLE
Definition: motorLcsIf.hpp:104
@ STAT_SIGNAL_REF
Definition: motorLcsIf.hpp:115
@ STAT_AXIS_INFO1
Definition: motorLcsIf.hpp:109
@ STAT_SIGNAL_UHW
Definition: motorLcsIf.hpp:117
@ STAT_AXIS_BRAKE
Definition: motorLcsIf.hpp:103
@ STAT_SIGNAL_LHW
Definition: motorLcsIf.hpp:114
bool m_mot_axis_lock
Definition: motorLcsIf.hpp:208
bool m_mot_signal_lhw
Definition: motorLcsIf.hpp:211
bool m_mot_axis_brake
Definition: motorLcsIf.hpp:207
int m_mot_init_action
Definition: motorLcsIf.hpp:201
void StorePosition(const protocol::base::Variant &value, int attribute)
Store Position.
Definition: motorLcsIf.cpp:322
MotorLcsIf(std::shared_ptr< fcf::devmgr::common::IDeviceConfig > config, fcf::devmgr::common::DataContext &data_ctx)
MotorLcsIf constructor.
Definition: motorLcsIf.cpp:28
bool m_mot_signal_ref
Definition: motorLcsIf.hpp:212
short m_mot_axis_info1
Definition: motorLcsIf.hpp:203
virtual ~MotorLcsIf()
Default destructor.
Definition: motorLcsIf.hpp:139
virtual std::string GetRpcError(const short error_code) const
Definition: motorLcsIf.cpp:289
int m_mot_init_step
Definition: motorLcsIf.hpp:200
DataContext class header file.
ShutterLcsIf class header file.
MotorConfig class header file.
Signal
Definition: motorConfig.hpp:126
The MotorBaseControllerData struct.
Definition: motorBaseLcsIf.hpp:34
The MotorControllerData struct.
Definition: motorLcsIf.hpp:34
MotorControllerData()
Definition: motorLcsIf.cpp:4
bool GetBrakeFlag() const
short GetInfoData2() const
bool GetInPositionFlag() const
virtual std::string GetErrorText() const
bool GetEnableFlag() const
void SetReadyFlag(bool flag)
bool GetSignalFlag(Signal signal) const
bool m_locked
Definition: motorLcsIf.hpp:77
int m_mode
Definition: motorLcsIf.hpp:78
void SetEnableFlag(bool flag)
void SetLockFlag(bool flag)
double GetScaleFactor() const
virtual ~MotorControllerData()
Definition: motorLcsIf.cpp:20
double m_scale_factor
Definition: motorLcsIf.hpp:74
void SetScaleFactor(double scale)
void SetSignalFlag(Signal signal, bool flag)
bool m_in_position
Definition: motorLcsIf.hpp:80
bool m_brake
Definition: motorLcsIf.hpp:75
bool m_ready
Definition: motorLcsIf.hpp:79
int m_info_data1
Definition: motorLcsIf.hpp:81
void SetInfoData1(short info)
int m_info_data2
Definition: motorLcsIf.hpp:82
bool m_enabled
Definition: motorLcsIf.hpp:76
std::vector< bool > m_signals
Definition: motorLcsIf.hpp:83
short GetInfoData1() const
bool GetReadyFlag() const
void SetInPositionFlag(bool flag)
void SetData(const MotorControllerData &data)
Definition: motorLcsIf.cpp:23
void SetBrakeFlag(bool flag)
void SetInfoData2(short info)