00001 #ifndef chopwsDEFINES_H
00002 #define chopwsDEFINES_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __cplusplus
00022 #error This is a C++ include file and cannot be used from plain C
00023 #endif
00024
00025
00026
00027
00028 #define chopwsMOD "chopws"
00029
00030
00031
00032
00033
00034 #include <tcsDefines.h>
00035
00036
00037
00038
00039 #include <evhStates.h>
00040 #include <evhSTD_COMMANDS_NAMES.h>
00041
00042
00043 #define chopwsERROR_MAX 5
00044
00045
00046
00047
00048
00049
00050
00051 #define chopwsCHOP_TC_SUBSTATE_IDLE 0
00052 #define chopwsCHOP_TC_SUBSTATE_CHOP 1
00053 #define chopwsCHOP_TC_SUBSTATE_FS 2
00054 #define chopwsCHOP_TC_SUBSTATE_CHOP_FS 3
00055 #define chopwsCHOP_TC_SUBSTATE_FAILURE 4
00056
00057
00058
00059
00060 #define chopwsCHOP_INACTIVE 0
00061 #define chopwsCHOP_ACTIVE 1
00062 #define chopwsCHOP_UNDEFINED 2
00063 #define chopwsCHOP_INACTIVE_STR "INACTIVE"
00064 #define chopwsCHOP_ACTIVE_STR "ACTIVE"
00065 #define chopwsCHOP_UNDEFINED_STR "UNDEFINED"
00066
00067
00068
00069
00070
00071
00072 #define chopwsCHOP_CMD_START_DELAY 30000
00073
00074
00075
00076
00077
00078 #define chopwsCHOP_BUFFER_SIZE 255
00079
00080
00081
00082
00083 #define chopwsCHOP_POS_CENTRE 0
00084 #define chopwsCHOP_POS_ABS 1
00085 #define chopwsCHOP_POS_REL 2
00086
00087 #define chopwsCHOP_POS_CENTRE_STR "CENTRE"
00088 #define chopwsCHOP_POS_ABS_STR "ABS"
00089 #define chopwsCHOP_POS_REL_STR "REL"
00090
00091
00092
00093
00094 #define chopwsSKYBAFFLE_RETRACTED 0
00095 #define chopwsSKYBAFFLE_DEPLOYED 1
00096 #define chopwsSKYBAFFLE_INBETWEEN 2
00097 #define chopwsSKYBAFFLE_UNDEFINED 3
00098
00099 #define chopwsSKYBAFFLE_RETRACTED_STR "RETRACTED"
00100 #define chopwsSKYBAFFLE_DEPLOYED_STR "DEPLOYED"
00101 #define chopwsSKYBAFFLE_INBETWEEN_STR "INBETWEEN"
00102 #define chopwsSKYBAFFLE_UNDEFINED_STR "UNDEFINED"
00103
00104
00105
00106
00107 #define chopwsFOCUS_POS_CA 0
00108 #define chopwsFOCUS_POS_CO 1
00109 #define chopwsFOCUS_POS_NA 2
00110 #define chopwsFOCUS_POS_NB 3
00111 #define chopwsFOCUS_POS_ABS 4
00112 #define chopwsFOCUS_POS_REL 5
00113
00114 #define chopwsFOCUS_POS_CA_STR "CA"
00115 #define chopwsFOCUS_POS_CO_STR "CO"
00116 #define chopwsFOCUS_POS_NA_STR "NA"
00117 #define chopwsFOCUS_POS_NB_STR "NB"
00118 #define chopwsFOCUS_POS_ABS_STR "ABS"
00119 #define chopwsFOCUS_POS_REL_STR "REL"
00120
00121
00122
00123
00124 #define chopwsCENTRE_POS_CENTRE 0
00125 #define chopwsCENTRE_POS_ABS 1
00126 #define chopwsCENTRE_POS_REL 2
00127
00128 #define chopwsCENTRE_POS_CENTRE_STR "CENTRE"
00129 #define chopwsCENTRE_POS_ABS_STR "ABS"
00130 #define chopwsCENTRE_POS_REL_STR "REL"
00131
00132
00133
00134
00135 #define chopwsTEL_POINTING_AXIS_OFF 0
00136 #define chopwsTEL_POINTING_AXIS_ON 1
00137 #define chopwsTEL_POINTING_AXIS_OPTIMUM 2
00138 #define chopwsTEL_POINTING_AXIS_INDEPENDENT 3
00139
00140 #define chopwsTEL_POINTING_AXIS_OPTIMUM_STR "OPTIMUM"
00141 #define chopwsTEL_POINTING_AXIS_OFF_STR "OFF"
00142 #define chopwsTEL_POINTING_AXIS_ON_STR "ON"
00143 #define chopwsTEL_POINTING_AXIS_INDEPENDENT_STR "INDEPENDENT"
00144
00145
00146
00147
00148 #define chopwsGUIDE_MODE_A 0
00149 #define chopwsGUIDE_MODE_B 1
00150 #define chopwsGUIDE_MODE_BOTH 2
00151
00152 #define chopwsGUIDE_MODE_A_STR "A"
00153 #define chopwsGUIDE_MODE_B_STR "B"
00154 #define chopwsGUIDE_MODE_BOTH_STR "BOTH"
00155
00156
00157
00158
00159 #define chopwsOPTIMUM_IMAGE_OFF 0
00160 #define chopwsOPTIMUM_IMAGE_ON 1
00161 #define chopwsOPTIMUM_IMAGE_CENTRE 2
00162
00163 #define chopwsOPTIMUM_IMAGE_OFF_STR "OFF"
00164 #define chopwsOPTIMUM_IMAGE_ON_STR "ON"
00165 #define chopwsOPTIMUM_IMAGE_CENTRE_STR "CENTRE"
00166
00167
00168
00169
00170
00171 #define chopwsDB_ENTRY_POINT "chopws"
00172 #define chopwsDB_STATE "state"
00173 #define chopwsDB_SUBSTATE "substate"
00174
00175 #define chopwsDB_CONTROL_POINT "control"
00176 #define chopwsDB_CONTROL_STATE "state"
00177 #define chopwsDB_CONTROL_SIMULATION "simulation"
00178 #define chopwsDB_CONTROL_VERBOSE "verbose"
00179
00180 #define chopwsDB_TRANSFER_POINT "transfer"
00181 #define chopwsDB_TRANSFER_DEST_ENV "destEnv"
00182 #define chopwsDB_TRANSFER_CE_SERVER "ceServer"
00183 #define chopwsDB_TRANSFER_CO_SERVER "coServer"
00184 #define chopwsDB_TRANSFER_FO_SERVER "foServer"
00185 #define chopwsDB_TRANSFER_TC_SERVER "tcServer"
00186 #define chopwsDB_TRANSFER_TH_SERVER "thServer"
00187 #define chopwsDB_TRANSFER_SK_SERVER "skServer"
00188 #define chopwsDB_TRANSFER_TIMEOUT "timeout"
00189 #define chopwsDB_TRANSFER_CMDS "commands"
00190 #define chopwsDB_TRANSFER_LIST_CMDS "listCommands"
00191 #define chopwsDB_TRANSFER_LIST_CMDS_MAX 6
00192
00193 #define chopwsDB_SKYBAFFLE_POINT "skybaffle"
00194 #define chopwsDB_SKYBAFFLE_MOVE_INDEX_ADDR "moveIndexRef"
00195 #define chopwsDB_SKYBAFFLE_MOVE_WHAT_ADDR "moveWhatRef"
00196 #define chopwsDB_SKYBAFFLE_POS_STATUS_ADDR "posStatusRef"
00197 #define chopwsDB_SKYBAFFLE_STATUS "status"
00198
00199 #define chopwsDB_FOCUS_POINT "focus"
00200 #define chopwsDB_FOCUS_CURRENT_POS_ID "currentPosId"
00201 #define chopwsDB_FOCUS_CURRENT_POS "currentPos"
00202
00203 #define chopwsDB_CENTRE_POINT "centre"
00204 #define chopwsDB_CENTRE_CURRENT_POS_ID "currentPosId"
00205 #define chopwsDB_CENTRE_CURRENT_POS_POINT "currentPos"
00206 #define chopwsDB_CENTRE_CURRENT_POS_DELTA "delta"
00207 #define chopwsDB_CENTRE_CURRENT_POS_EPSILON "epsilon"
00208
00209 #define chopwsDB_CHOP_POINT "tiltChop"
00210 #define chopwsDB_CHOP_STATUS_STAGE_ADDR "statusRef"
00211 #define chopwsDB_CHOP_PARM_CHANGE "parmChange"
00212 #define chopwsDB_CHOP_STATUS "status"
00213 #define chopwsDB_CHOP_POLL_FREQUENCY "pollFrequency"
00214 #define chopwsDB_CHOP_START_DELAY "startDelay"
00215 #define chopwsDB_CHOP_STOP_DELAY "stopDelay"
00216 #define chopwsDB_CHOP_START_TIME "startTime"
00217 #define chopwsDB_CHOP_STOP_TIME "stopTime"
00218 #define chopwsDB_CHOP_SCHEDULED "scheduled"
00219 #define chopwsDB_CHOP_STRT_PEND "startPending"
00220 #define chopwsDB_CHOP_STP_PEND "stopPending"
00221 #define chopwsDB_CHOP_SETUP_POINT "setup"
00222 #define chopwsDB_CHOP_SETUP_CURRENT "current"
00223 #define chopwsDB_CHOP_SETUP_NEXT "next"
00224 #define chopwsDB_CHOP_SETUP_FREQ "freq"
00225 #define chopwsDB_CHOP_SETUP_THROW "throw"
00226 #define chopwsDB_CHOP_SETUP_POS_OPT_IMAGE "posOptImage"
00227 #define chopwsDB_CHOP_SETUP_PEAK_TO_VALLEY_RATIO "peakValleyRatio"
00228 #define chopwsDB_CHOP_SETUP_TEL_POINTING_AXIS "telPointingAxis"
00229 #define chopwsDB_CHOP_SETUP_POS_ANG "posAng"
00230 #define chopwsDB_CHOP_SETUP_OFFSET "offsetChop"
00231 #define chopwsDB_CHOP_SETUP_GUIDE "guide"
00232 #define chopwsDB_CHOP_FOCUS_DATA_POINT "focusData"
00233 #define chopwsDB_CHOP_FOCUS_DATA_M2_SCALE_POINT "m2Scale"
00234 #define chopwsDB_CHOP_FOCUS_DATA_M2_SCALE_NASMYTH "nasmyth"
00235 #define chopwsDB_CHOP_FOCUS_DATA_M2_SCALE_CASS "cassegrain"
00236 #define chopwsDB_CHOP_FOCUS_DATA_M2_SCALE_CO "coude"
00237
00238
00239
00240
00241
00242 #define chopwsCMD_UPDSKY "UPDSKY"
00243 #define chopwsCMD_STARTCHP "STRTCHP"
00244 #define chopwsCMD_STOPCHP "STOPCHP"
00245 #define chopwsCMD_CHOPPOS "CHOPPOS"
00246 #define chopwsCMD_CHOPOFFS "CHOPOFF"
00247 #define chopwsCMD_CHOPAMPL "CHOPAMP"
00248 #define chopwsCMD_GETBID "GETBID"
00249 #define chopwsCMD_SETBAFF "SETBAFF"
00250 #define chopwsCMD_FOCPOS "FOCPOS"
00251 #define chopwsCMD_CENTPOS "CENTPOS"
00252 #define chopwsCMD_SETUP "SETUP"
00253 #define chopwsCMD_ENAFS "ENAFS"
00254 #define chopwsCMD_DISFS "DISFS"
00255
00256
00257
00258
00259 #define chopwsCMD_MOVEABS "MOVEABS"
00260 #define chopwsCMD_MOVECAS "MOVECAS"
00261 #define chopwsCMD_MOVECOU "MOVECOU"
00262 #define chopwsCMD_MOVENA "MOVENA"
00263 #define chopwsCMD_MOVENB "MOVENB"
00264 #define chopwsCMD_MOVEREL "MOVEREL"
00265 #define chopwsCMD_MOVECE "MOVECE"
00266 #define chopwsCMD_DISFS "DISFS"
00267 #define chopwsCMD_ENAFS "ENAFS"
00268 #define chopwsCMD_SETBID "SETBID"
00269 #define chopwsCMD_SETCH "SETCH"
00270 #define chopwsCMD_SETSC "SETSC"
00271 #define chopwsCMD_SETSKY "SETSKY"
00272 #define chopwsCMD_STARTCH "STARTCH"
00273 #define chopwsCMD_STOPCH "STOPCH"
00274 #define chopwsCMD_SETCHOF "SETCHOF"
00275 #define chopwsCMD_SETCHAM "SETCHAM"
00276 #define chopwsCMD_OPEN "OPEN"
00277 #define chopwsCMD_CLOSE "CLOSE"
00278
00279
00280
00281
00282
00283 #define chopwsDB_NO_OF_TH_SENSORS 39
00284 #define chopwsDB_M2SKMAX_MOVE_ENTRIES 10
00285
00286
00287
00288
00289
00290 #define chopwsALARM_NAME_THETA_LIMIT "chopwsThetaLimAlrm"
00291 #define chopwsALARM_NAME_PHI_LIMIT "chopwsPhiLimAlrm"
00292
00293 #endif // !chopwsDEFINES_H