Go to the documentation of this file.
10 #ifndef FCF_DEVMGR_DEVICE_DROT_IF_HPP
11 #define FCF_DEVMGR_DEVICE_DROT_IF_HPP
13 #include <unordered_map>
15 #include <yaml-cpp/yaml.h>
74 template<
typename TOPIC_TYPE>
83 STAT_TRACK_MODE = 104,
86 STAT_ANGLE_ON_SKY = 107
97 DrotLcsIf(std::shared_ptr<fcf::devmgr::common::IDeviceConfig> config,
99 bool initialise =
true);
158 bool force_read =
true);
173 void StoreAttribute(
const std::string key,
174 const fcf::common::Variant& value,
185 void PublishPosition(
const fcf::common::Variant& value,
204 #include "drotLcsIf.ipp"
206 #endif //FCF_DEVMGR_DEVICE_DROT_IF_HPP
virtual std::string GetRpcError(const short error_code) const
DataContext class header file.
void SetDelta(double delta)
void SetAlpha(double alpha)
double m_angle_on_sky
Definition: drotLcsIf.hpp:194
double m_angle_on_sky
Definition: drotLcsIf.hpp:56
double GetAngleOnSky() const
DrotControllerData()
Definition: drotLcsIf.cpp:21
virtual std::string GetSubstateStr() const
ShutterLcsIf class header file.
void MoveAngle(double angle)
Move drot to a position angle.
void SetAngleOnSky(double angle)
virtual ~DrotControllerData()
Definition: drotLcsIf.cpp:29
double m_delta
Definition: drotLcsIf.hpp:192
Drot Local Control System (LCS) Interface (IF) class.
Definition: drotLcsIf.hpp:75
short GetTrackingMode() const
double m_alpha
Definition: drotLcsIf.hpp:54
void Listener(fcf::common::VectorVariant ¶ms)
Callback to manage changes on the monitored items.
virtual ~DrotLcsIf()
Default destructor.
Definition: drotLcsIf.hpp:105
DrotConfig class header file.
short m_tracking_mode
Definition: drotLcsIf.hpp:53
DrotLcsIf(std::shared_ptr< fcf::devmgr::common::IDeviceConfig > config, fcf::devmgr::common::DataContext &data_ctx, bool initialise=true)
drotLcsIf constructor.
short m_track_mode
Definition: drotLcsIf.hpp:193
void SetTrackingMode(short mode)
Definition: dataContext.hpp:92
bool IsTracking()
Check if drot is tracking.
void ReadStatus(DrotControllerData &status, bool force_read=true)
double m_delta
Definition: drotLcsIf.hpp:55
virtual std::string GetErrorText() const
void StartTrack(short mode, double angle)
Start derotator tracking.
void SetData(const DrotControllerData &data)
Definition: drotLcsIf.cpp:32
double m_alpha
Definition: drotLcsIf.hpp:191
void StopTrack()
Stop derotator tracking.
Motor Local Control System (LCS) Interface (IF) class.
Definition: motorLcsIf.hpp:117
The drotControllerData struct.
Definition: drotLcsIf.hpp:29
The MotorControllerData struct.
Definition: motorLcsIf.hpp:34