HLCC Documentation 3.0.1
Loading...
Searching...
No Matches
actionsGpCmds.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_PFSSIMHLCC_ACTIONS_CONTROL_HPP
14#define HLCC_PFSSIMHLCC_ACTIONS_CONTROL_HPP
15
16#include <pfssimhlcc/gpCtrEvents.rad.hpp>
17
18#include <rad/configurableActionGroup.hpp>
19#include <rad/application.hpp>
20#include <rad/smSubscriber.hpp>
21#include <rad/trsHealth.hpp>
22
23namespace hlcc {
24namespace pfssimhlcc {
25
26class DataContext;
27class ActionMgr;
28
33class ActionsGpCmds : public rad::ConfigurableActionGroup {
34 public:
42 ActionsGpCmds(rad::Application& appl,
43 ActionMgr& action_mgr,
45
50 void Initialize() override;
51
58 void Configure(const std::vector<std::string>& keys) override;
59
65 void AssignSkyTrajectory(scxml4cpp::Context* c);
66
72 void ForwardCommand(scxml4cpp::Context* c);
73
79 void MoveGPTo(scxml4cpp::Context* c);
80
86 void MoveRaw(scxml4cpp::Context* c);
87
93 void Park(scxml4cpp::Context* c);
94
100 void ParkControlling(scxml4cpp::Context* c);
101
107 void SetTarget(scxml4cpp::Context* c);
108
114 void UpdateTarget(scxml4cpp::Context* c);
115
121 void MoveGpToNamedPos(scxml4cpp::Context* c);
127 void StartControlling(scxml4cpp::Context* c);
128
134 void StopControlling(scxml4cpp::Context* c);
135
141 void AssignFixTrajectory(scxml4cpp::Context* c);
142
148 void AssignUserTrajectory(scxml4cpp::Context* c);
149
155 void StopFollowingTrajectory(scxml4cpp::Context* c);
156
157
158
164 void SetHierarchy(scxml4cpp::Context* c);
165
171 void SetPointingOrigin(scxml4cpp::Context* c);
172
178 bool PresetOkGuard(scxml4cpp::Context* c);
179
180
181
182 ActionsGpCmds(const ActionsGpCmds&) = delete;
184
185 private:
186 rad::Application& m_appl;
187 ActionMgr& m_action_mgr;
188 DataContext& m_data;
189};
190
191} // namespace pfssimhlcc
192} // namespace hlcc
193
194#endif // HLCC_PFSSIMHLCC_ACTIONS_CONTROL_HPP
Definition actionMgr.hpp:27
bool PresetOkGuard(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:337
ActionsGpCmds(rad::Application &appl, ActionMgr &action_mgr, DataContext &data)
Definition actionsGpCmds.cpp:45
void Initialize() override
Definition actionsGpCmds.cpp:55
void Configure(const std::vector< std::string > &keys) override
Definition actionsGpCmds.cpp:59
void SetTarget(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:168
void ParkControlling(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:156
void StartControlling(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:219
void StopControlling(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:233
void ForwardCommand(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:90
ActionsGpCmds(const ActionsGpCmds &)=delete
void UpdateTarget(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:186
void MoveRaw(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:126
void MoveGpToNamedPos(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:204
void SetHierarchy(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:304
void StopFollowingTrajectory(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:289
void Park(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:145
void AssignUserTrajectory(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:264
void AssignFixTrajectory(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:247
void MoveGPTo(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:108
void AssignSkyTrajectory(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:72
void SetPointingOrigin(scxml4cpp::Context *c)
Definition actionsGpCmds.cpp:320
ActionsGpCmds & operator=(const ActionsGpCmds &)=delete
Disable copy constructor.
Definition dataContext.hpp:41
Definition actionMgr.cpp:34
Definition ccsinsoldb.hpp:10
ccsinsdetifllnetio::PointingKernelPositions data
Definition pkp_llnetio_subscriber.cpp:29