2 #ifndef __VisAOIClient_h__
3 #define __VisAOIClient_h__
6 #include "MagAO/MagAOIClient/MagAOIClient.h"
22 VisAOIClient( std::string name,
const std::string &conffile)
throw (AOException);
24 void Create(
void)
throw (AOException);
35 std::string wollaston_process;
36 RTDBvar wollaston_status;
37 RTDBvar wollaston_cmode_cur;
38 RTDBvar wollaston_cmode_req;
40 RTDBvar wollaston_state_cur;
41 RTDBvar wollaston_state_req;
43 static int WollStateReqChanged(
void *pt, Variable *msgb);
44 static int WollCModeReqChanged(
void *pt, Variable *msgb);
46 int send_wollaston_command(std::string com);
47 int update_wollaston();
55 std::string focus_process;
56 RTDBvar focus_cmode_cur;
57 RTDBvar focus_cmode_req;
59 RTDBvar focus_pos_cur;
60 RTDBvar focus_pos_req;
61 RTDBvar focus_abort_req;
63 RTDBvar focus_preset_req;
66 RTDBvar focus_limsw_cur;
68 static int FocusPosReqChanged(
void *pt, Variable *msgb);
69 static int FocusAbortReqChanged(
void *pt, Variable *msgb);
70 static int FocusCModeReqChanged(
void *pt, Variable *msgb);
71 static int FocusPresetReqChanged(
void *pt, Variable *msgb);
73 int send_focus_command(std::string com);
82 std::string gimbal_process;
83 RTDBvar gimbal_status;
84 RTDBvar gimbal_xpos_cur;
85 RTDBvar gimbal_ypos_cur;
86 RTDBvar gimbal_cmode_cur;
87 RTDBvar gimbal_cmode_req;
89 RTDBvar gimbal_center_req;
90 RTDBvar gimbal_dark_req;
92 static int GimbalCModeReqChanged(
void *pt, Variable *msgb);
93 static int GimbalCenterReqChanged(
void *pt, Variable *msgb);
94 static int GimbalDarkReqChanged(
void *pt, Variable *msgb);
96 int send_gimbal_command(std::string com);
104 RTDBvar var_masterremote_req;
105 RTDBvar ccd47_cmode_req;
106 RTDBvar shutter_cmode_req;
107 RTDBvar fw2_cmode_req;
108 RTDBvar fw3_cmode_req;
121 virtual void SetupVars();
126 virtual void post_update_DD_var(DD_RTDBVar &var);
128 void update_loopon();
130 void init_statusboard();
132 void dump_statusboard();
157 #endif //__VisAOIClient_h__
int update_statusboard()
Update the status board.
virtual void dataLogger(timeval tv)
Log data at intervals.
The base class for VisAO applications.
static int MasterRemoteReqChanged(void *pt, Variable *msgb)
When notified, VisAOIClient changes the control mode of the entire VisAO Camera.
Declarations for VisAOApp_base.
std::string fifo_path
The path to the fifos, relative to VISAO_ROOT.
int LoadConfig()
Load the configuration details from the file.
The namespace of VisAO software.
int setMasterRemote(int cmode)
Change control of Gimbal, Focus, F/W2, F/W3, CCD47.