rad 6.2.0
|
#include <actionsPreset.hpp>
Public Member Functions | |
ActionsPreset (boost::asio::io_context &ios, rad::SMAdapter &sm, DataContext &data) | |
void | Start (scxml4cpp::Context *c) |
void | Stop (scxml4cpp::Context *c) |
void | Done (scxml4cpp::Context *c) |
void | Err (scxml4cpp::Context *c) |
void | Timeout (scxml4cpp::Context *c) |
void | Monitor (scxml4cpp::Context *c) |
void | Status (scxml4cpp::Context *c) |
ActionsPreset (const ActionsPreset &)=delete | |
ActionsPreset & | operator= (const ActionsPreset &)=delete |
Disable copy constructor. | |
![]() | |
ActionGroup (const std::string &id) | |
virtual | ~ActionGroup () |
const std::string & | GetId () const |
void | SetId (const std::string &id) |
ActionGroup (const ActionGroup &)=delete | |
ActionGroup & | operator= (const ActionGroup &)=delete |
Disable copy constructor. | |
This class contains the implementation of the actions dealing with the following events:
exmalserver::ActionsPreset::ActionsPreset | ( | boost::asio::io_context & | ios, |
rad::SMAdapter & | sm, | ||
DataContext & | data ) |
Constructor.
[in] | ios | Reference to the event loop. |
[in] | sm | State Machine facade. |
[in] | data | Data shared within the application among actions and activities. |
|
delete |
void exmalserver::ActionsPreset::Done | ( | scxml4cpp::Context * | c | ) |
Replies OK to the originator of the Preset event.
[in] | c | Context containing the last event received by the State Machine. |
void exmalserver::ActionsPreset::Err | ( | scxml4cpp::Context * | c | ) |
Replies ERR to the originator of the Preset event.
[in] | c | Context containing the last event received by the State Machine. |
void exmalserver::ActionsPreset::Monitor | ( | scxml4cpp::Context * | c | ) |
Receives the intermediate axes positions (DevMeas topic) and stores them in the DB.
[in] | c | Context containing the last event received by the State Machine. |
|
delete |
Disable copy constructor.
void exmalserver::ActionsPreset::Start | ( | scxml4cpp::Context * | c | ) |
Retrieves from the Preset event the associated target position in RA/DEC, convert them into ALT/AZ and sends a Move command to the telescope axes.
[in] | c | Context containing the last event received by the State Machine. |
void exmalserver::ActionsPreset::Status | ( | scxml4cpp::Context * | c | ) |
Test partial replies by sending a fake preset status.
[in] | c | Context containing the last event received by the State Machine. |
void exmalserver::ActionsPreset::Stop | ( | scxml4cpp::Context * | c | ) |
Stops the current preset and replies:
[in] | c | Context containing the last event received by the State Machine. |
void exmalserver::ActionsPreset::Timeout | ( | scxml4cpp::Context * | c | ) |
Replies ERROR timeout to the originator of the Preset event.
[in] | c | Context containing the last event received by the State Machine. |