HLCC Documentation 3.0.1
Loading...
Searching...
No Matches
actionsCommands.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2020-2025 European Southern Observatory (ESO)
2//
3// SPDX-License-Identifier: LGPL-3.0-only
4
13#ifndef HLCC_TELIF_TELIF_ACTIONCOMMANDS_HPP
14#define HLCC_TELIF_TELIF_ACTIONCOMMANDS_HPP
15
16#include <rad/configurableActionGroup.hpp>
17#include <rad/application.hpp>
20#include "Trexif.hpp"
21#include "Eltpkif.hpp"
22namespace hlcc::telif {
23
24class DataContext;
25class ActionMgr;
26
34class ActionsCommands : public rad::ConfigurableActionGroup {
35 public:
43 ActionsCommands(rad::Application& appl, ActionMgr& action_mgr, DataContext& data);
44
49 void Initialize() override;
50
57 void Configure(const std::vector<std::string>& keys) override;
58
66 void Preset(scxml4cpp::Context * c);
67
77 [[deprecated("SetObservingWavelength is Deprecated - Use UpdateTarget")]]
78 void SetObservingWavelength(scxml4cpp::Context * c);
79
88 void SetVelocityOffset(scxml4cpp::Context * c);
89
99 void SkyOffset(scxml4cpp::Context * c);
100
109 void SetReferenceFocus(scxml4cpp::Context * c);
110
119 void SetReferenceAberration(scxml4cpp::Context * c);
120
128 void RequestControl(scxml4cpp::Context * c);
129
136 void ReleaseControl(scxml4cpp::Context * c);
137
145 void RousConfig(scxml4cpp::Context * c);
146
154 void RousExecute(scxml4cpp::Context * c);
155
162 void RousActivityEntry(scxml4cpp::Context * c);
163
170 void RousActivityExit(scxml4cpp::Context * c);
171
177 void ReadyForHandoverEstimation(scxml4cpp::Context * c);
178
184 void TrackingEstimation(scxml4cpp::Context * c);
185
191 void ResetOperatorAllowsHandover(scxml4cpp::Context * c);
192
198 void UpdateTarget(scxml4cpp::Context * c);
199
205 void SetCommandSourceToCCS(scxml4cpp::Context * c);
206
209
210 private:
211 rad::Application& m_appl;
212 ActionMgr& m_action_mgr;
213 DataContext& m_data;
214
217 RtcccssimUdpSenRec m_rtcccssim_udp_sender;
218
219 bool ConnectEltpk();
220 bool ConnectTrex();
221 std::string GetReplyString(elt::mal::future<std::string> fut_ms, std::string remote_method_name);
222};
223
224} // namespace hlcc::telif
225
226#endif // HLCC_TELIF_TELIF_ACTIONCOMMANDS_HPP
Definition requestor.hpp:39
Definition actionMgr.hpp:31
void RousExecute(scxml4cpp::Context *c)
Definition actionsCommands.cpp:590
void SetReferenceFocus(scxml4cpp::Context *c)
Definition actionsCommands.cpp:346
void ReleaseControl(scxml4cpp::Context *c)
Definition actionsCommands.cpp:476
ActionsCommands(const ActionsCommands &)=delete
void ResetOperatorAllowsHandover(scxml4cpp::Context *c)
Definition actionsCommands.cpp:658
void SetReferenceAberration(scxml4cpp::Context *c)
Definition actionsCommands.cpp:365
void SetVelocityOffset(scxml4cpp::Context *c)
Definition actionsCommands.cpp:292
ActionsCommands(rad::Application &appl, ActionMgr &action_mgr, DataContext &data)
Definition actionsCommands.cpp:42
void Initialize() override
Definition actionsCommands.cpp:54
void RousActivityExit(scxml4cpp::Context *c)
Definition actionsCommands.cpp:616
void Preset(scxml4cpp::Context *c)
Definition actionsCommands.cpp:71
void SetCommandSourceToCCS(scxml4cpp::Context *c)
Definition actionsCommands.cpp:665
void RousConfig(scxml4cpp::Context *c)
Definition actionsCommands.cpp:566
void SkyOffset(scxml4cpp::Context *c)
Definition actionsCommands.cpp:319
void UpdateTarget(scxml4cpp::Context *c)
Definition actionsCommands.cpp:712
void TrackingEstimation(scxml4cpp::Context *c)
Definition actionsCommands.cpp:642
void SetObservingWavelength(scxml4cpp::Context *c)
Definition actionsCommands.cpp:252
ActionsCommands & operator=(const ActionsCommands &)=delete
Disable copy constructor.
void RousActivityEntry(scxml4cpp::Context *c)
Definition actionsCommands.cpp:606
void ReadyForHandoverEstimation(scxml4cpp::Context *c)
Definition actionsCommands.cpp:626
void Configure(const std::vector< std::string > &keys) override
Definition actionsCommands.cpp:58
void RequestControl(scxml4cpp::Context *c)
Definition actionsCommands.cpp:384
Definition dataContext.hpp:43
Definition rtcccssimUdpSenRec.hpp:21
Definition configTest.cpp:22
ccsinsdetifllnetio::PointingKernelPositions data
Definition pkp_llnetio_subscriber.cpp:29
Requestor class header file.
RtcccssimUdpSenRec class header file.