8#ifndef FCF_DEVMGR_DEVICE_MATRK_IF_HPP
9#define FCF_DEVMGR_DEVICE_MATRK_IF_HPP
11#include <unordered_map>
13#include <yaml-cpp/yaml.h>
45 short m_tracking_mode {};
46 double m_track_offset {0.0};
83 MAtrkLcsIf(std::shared_ptr<ifw::fcf::devmgr::common::IDeviceConfig> config,
105 void MoveAngle(
const double& angle, ::fcfif::MotorPosUnit unit = ::fcfif::MotorPosUnit::UU);
111 void MoveUser(
const double& pos, ::fcfif::MotorPosUnit unit = ::fcfif::MotorPosUnit::UU);
131 void TrackOffset(
double offset, ::fcfif::MotorPosUnit unit);
164 void Listener(
const ifw::fnd::defs::Notification& note);
185 std::vector<std::string> m_monitor_track_vector;
187 short m_track_mode {};
191 log4cplus::Logger m_logger;
196#include "matrkLcsIf.ipp"
Definition dataContext.hpp:86
void StartTrack(short mode, double angle)
Start tracking.
Definition matrkLcsIf.cpp:188
virtual ~MAtrkLcsIf()=default
Default destructor.
void LoadConfig()
Load the YAML configuration.
virtual void InitObject()
Initialize object.
Definition matrkLcsIf.cpp:77
void Listener(const ifw::fnd::defs::Notification ¬e)
Callback to manage changes on the monitored items.
Definition matrkLcsIf.cpp:294
void StopTrack()
Stop derotator tracking.
Definition matrkLcsIf.cpp:240
bool IsTracking() const
Check if multi-axis device is tracking.
Definition matrkLcsIf.cpp:278
MAtrkLcsIf(std::shared_ptr< ifw::fcf::devmgr::common::IDeviceConfig > config, ifw::fcf::devmgr::common::DataContext &data_ctx)
adcLcsIf constructor.
Definition matrkLcsIf.cpp:69
void MoveAngle(const double &angle, ::fcfif::MotorPosUnit unit=::fcfif::MotorPosUnit::UU)
MoveAngle.
Definition matrkLcsIf.cpp:112
void TrackOffset(double offset, ::fcfif::MotorPosUnit unit)
Offset position during tracking.
Definition matrkLcsIf.cpp:211
virtual void ReadStatus(MAtrkControllerData &status)
Read status from the controller.
Definition matrkLcsIf.cpp:264
void MoveUser(const double &pos, ::fcfif::MotorPosUnit unit=::fcfif::MotorPosUnit::UU)
MoveUser.
Definition matrkLcsIf.cpp:168
void ReadConfig()
Read the configuration.
virtual void AddCustomAttributes()
Add custom attributes.
Definition matrkLcsIf.cpp:100
MAxis Local Control System (LCS) Interface (IF) class.
Definition maxisLcsIf.hpp:61
virtual void ReadStatus(MAxisControllerData &status)
Read status from the controller.
Definition maxisLcsIf.cpp:506
MAtrk class header file.
Definition matrk.hpp:18
std::vector< std::pair< std::string, unsigned int > > VectorAttributes
Definition matrkLcsIf.hpp:21
The adcControllerData struct.
Definition matrkLcsIf.hpp:29
virtual ~MAtrkControllerData()
Definition matrkLcsIf.cpp:62
double GetTrackOffset() const
void SetTrackingMode(short mode)
short GetTrackingMode() const
void SetTrackOffset(double offset)
MAtrkControllerData()
Definition matrkLcsIf.cpp:57
virtual std::string GetSubstateStr() const
virtual std::string GetErrorText() const
void SetData(const MAtrkControllerData &data)
Definition matrkLcsIf.cpp:65
The adcControllerData struct.
Definition maxisLcsIf.hpp:29