17 #ifndef __ShutterRemoteControl_h__
18 #define __ShutterRemoteControl_h__
28 #include <sys/types.h>
41 #define DEFAULT_WAIT_TO 0.01
42 #define DEFAULT_WAIT_SLEEP 0.0001
54 static int StateReqChanged(
void *pt, Variable *msgb);
55 static int CModeReqChanged(
void *pt, Variable *msgb);
56 int send_shutter_command(
const char * com);
57 int parse_state_string(std::string ansstr);
60 void Create(
void)
throw (AOException);
61 void updateState(
bool force =
false);
63 std::string fifo_path;
79 virtual int TestNetwork(
void);
89 int _shutter_sw_state;
90 int _shutter_hw_state;
93 RTDBvar var_state_cur, var_state_req, var_sw_state, var_hw_state;
94 RTDBvar var_cmode_cur, var_cmode_req;
96 pthread_mutex_t mutex;
105 #endif //__ShutterRemoteControl_h__
The base class for VisAO applications.
Class to provide remote control (via the AO system) of the Shutter.
Declarations for VisAOApp_base.
The namespace of VisAO software.