rad
2.0.0
|
#include <actionsPreset.hpp>
Public Member Functions | |
ActionsPreset (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data) | |
void | Start (const rad::AnyEvent &last_event) |
void | Stop (const rad::AnyEvent &last_event) |
void | Done (const rad::AnyEvent &last_event) |
void | Err (const rad::AnyEvent &last_event) |
void | Timeout (const rad::AnyEvent &last_event) |
void | Monitor (const rad::AnyEvent &last_event) |
void | Status (const rad::AnyEvent &last_event) |
ActionsPreset (const ActionsPreset &)=delete | |
ActionsPreset & | operator= (const ActionsPreset &)=delete |
Disable copy constructor. More... | |
ActionsPreset (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data) | |
void | Start (const rad::AnyEvent &last_event) |
void | Stop (const rad::AnyEvent &last_event) |
void | Done (const rad::AnyEvent &last_event) |
void | Err (const rad::AnyEvent &last_event) |
void | Timeout (const rad::AnyEvent &last_event) |
void | Monitor (const rad::AnyEvent &last_event) |
void | Status (const rad::AnyEvent &last_event) |
ActionsPreset (const ActionsPreset &)=delete | |
ActionsPreset & | operator= (const ActionsPreset &)=delete |
Disable copy constructor. More... | |
![]() | |
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. More... | |
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. More... | |
This class contains the implementation of the actions dealing with the following events:
exmalserver::ActionsPreset::ActionsPreset | ( | boost::asio::io_service & | 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 |
exmalserver::ActionsPreset::ActionsPreset | ( | boost::asio::io_service & | 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 | ( | const rad::AnyEvent & | last_event | ) |
Replies OK to the originator of the Preset event.
[in] | last_event | MoveOk event. |
void exmalserver::ActionsPreset::Done | ( | const rad::AnyEvent & | last_event | ) |
Replies OK to the originator of the Preset event.
[in] | last_event | MoveOk event. |
void exmalserver::ActionsPreset::Err | ( | const rad::AnyEvent & | last_event | ) |
Replies ERR to the originator of the Preset event.
[in] | last_event | MoveOk event. |
void exmalserver::ActionsPreset::Err | ( | const rad::AnyEvent & | last_event | ) |
Replies ERR to the originator of the Preset event.
[in] | last_event | MoveOk event. |
void exmalserver::ActionsPreset::Monitor | ( | const rad::AnyEvent & | last_event | ) |
Receives the intermediate axes positions (DevMeas topic) and stores them in the DB.
[in] | last_event | DevMeas event. |
void exmalserver::ActionsPreset::Monitor | ( | const rad::AnyEvent & | last_event | ) |
Receives the intermediate axes positions (DevMeas topic) and stores them in the DB.
[in] | last_event | DevMeas event. |
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.
void exmalserver::ActionsPreset::Start | ( | const rad::AnyEvent & | last_event | ) |
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] | last_event | Last event received which should be a Start event. |
void exmalserver::ActionsPreset::Start | ( | const rad::AnyEvent & | last_event | ) |
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] | last_event | Last event received which should be a Start event. |
void exmalserver::ActionsPreset::Status | ( | const rad::AnyEvent & | last_event | ) |
Test partial replies by sending a fake preset status.
[in] | last_event | GetPresetProgress event. |
void exmalserver::ActionsPreset::Status | ( | const rad::AnyEvent & | last_event | ) |
Test partial replies by sending a fake preset status.
[in] | last_event | GetPresetProgress event. |
void exmalserver::ActionsPreset::Stop | ( | const rad::AnyEvent & | last_event | ) |
Stops the current preset and replies:
[in] | last_event | Stop event. |
void exmalserver::ActionsPreset::Stop | ( | const rad::AnyEvent & | last_event | ) |
Stops the current preset and replies:
[in] | last_event | Stop event. |
void exmalserver::ActionsPreset::Timeout | ( | const rad::AnyEvent & | last_event | ) |
Replies ERROR timeout to the originator of the Preset event.
[in] | last_event | MoveTimeout event. |
void exmalserver::ActionsPreset::Timeout | ( | const rad::AnyEvent & | last_event | ) |
Replies ERROR timeout to the originator of the Preset event.
[in] | last_event | MoveTimeout event. |