Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

mswDefines.h

Go to the documentation of this file.
00001 #ifndef mswDefines_H
00002 #define mswDefines_H
00003 /*******************************************************************************
00004 * E.S.O. - VLT project
00005 *
00006 * "@(#) $Id: mswDefines.h,v 1.115 2003/11/12 14:33:35 vltsccm Exp $"
00007 *
00008 * who       when      what
00009 * --------  --------  ----------------------------------------------
00010 * awalland  25/06/99  Added define for thermal module
00011 * pduhoux   02/11/98  Added macros mswMODNAME_xxx for the modules' names of MSW table
00012 * pduhoux   28/10/98  Added macro mswONFOCUS_STRING for UserField selection
00013 * pduhoux   23/10/98  Added macro mswINITCHFOC_STRING for UserField selection
00014 * gchiozzi  13/02/98  Increased mswNO_OF_MODULES from 32 to 64.
00015 * gchiozzi  13/11/97  Changed VLT default focus from NA to CA.
00016 * gchiozzi  02/09/97  Removed definition of TARGET_TCS
00017 * rkarban   15/03/97  remove mswSUB_STATE(_STR)_TRACKING
00018 * gchiozzi  17/02/97  Added new defines for commands GETINS, GETINSD, SELINS, SETINSD
00019 * gchiozzi  11/02/97  Added new defines for instrument data
00020 * gchiozzi  10/01/97  Added define for m3 position attribute
00021 * nttmgr    16/12/96  Renamed AO commands GETPERM and RELPERM
00022 * nttmgr    06/12/96  Changed name of command to M3: now MOVFOCU
00023 * gchiozzi  31/10/96  Removed DEC95 sections
00024 * gchiozzi  31/10/96  New define mswDB_FORCE_SETTING
00025 * gchiozzi  30/10/96  Added defines for PERMSET and RELSET cmds
00026 * gchiozzi  05/07/96  Changed to C style comments
00027 * gchiozzi  10/05/96  Porting to JUN96 (activated commented sections)
00028 * mverola   03/04/96  Added focus names and codes.
00029 *                     DB point names now defined here.
00030 * gchiozzi  07/09/95  Changed state ids to have them unique.
00031 * awalland  14/06/95  created
00032 */
00033 
00034 /************************************************************************
00035  *
00036  * This file contains common defines used both by C/C++ files and 
00037  * dbLoader files
00038  *----------------------------------------------------------------------
00039  */
00040 
00041 /* 
00042  *  Defines for the target telescope.
00043  *  The default target is VLT
00044  *  Up to now only VLT and NTT
00045  */
00046 #define VLT_TCS   1
00047 #define NTT_TCS   2
00048 
00049 #include "tcsDefines.h"
00050 
00051 /*
00052  * Defines for states values and names
00053  * These enum and string vector are used in the whole module
00054  * to identify states and substates.
00055  * The values must be coordinated with the standard states defined in 
00056  * evhStates.h
00057  * LCU states must have the same enum
00058  */
00059 
00060 #include "evhStates.h"
00061 #include "evhSTD_COMMANDS_NAMES.h"
00062 
00063 /* Module name */
00064 #define mswMOD "msw"
00065 
00066 /* Module Names */
00067 #define mswMODNAME_ACTWS        "actws"
00068 #define mswMODNAME_AGWS         "agws"
00069 #define mswMODNAME_FSWS         "agws"
00070 #define mswMODNAME_CHOPWS       "chopws"
00071 #define mswMODNAME_M1           "m1"
00072 #define mswMODNAME_M2           "m2"
00073 #define mswMODNAME_M2TC         "m2tc"
00074 #define mswMODNAME_M3           "m3"
00075 #define mswMODNAME_M4           "m4"
00076 #define mswMODNAME_LADC         "ladc"
00077 #define mswMODNAME_ALTAXIS      "altAxis"
00078 #define mswMODNAME_AZAXIS       "azAxis"
00079 #define mswMODNAME_TRKWS        "trkws"
00080 #define mswMODNAME_TRKALT       "trkalt"
00081 #define mswMODNAME_TRKAZ        "trkaz"
00082 #define mswMODNAME_TCSMON       "tcsmon"
00083 #define mswMODNAME_ECSWS        "ecsws"
00084 #define mswMODNAME_PRS          "prs"
00085 #define mswMODNAME_HB           "hb"
00086 #define mswMODNAME_ENCL         "encl"
00087 #define mswMODNAME_ADAPTER      "adapter"
00088 #define mswMODNAME_TRKROT       "trkrot"
00089 #define mswMODNAME_TCCD_AG      "tccd_ag"
00090 #define mswMODNAME_ACT          "act"
00091 #define mswMODNAME_AG           "ag"
00092 #define mswMODNAME_ADREF        "adref"
00093 #define mswMODNAME_THERMAL      "thermal"
00094 #define mswMODNAME_SPARE        "spare"
00095 
00096 /* Local remapping of standard states (just for convenience) */
00097 #define mswSTATE_UNK             evhSTATE_UNK
00098 #define mswSTATE_OFF             evhSTATE_OFF
00099 #define mswSTATE_LOADED          evhSTATE_LOADED  /* Not used by msw */
00100 #define mswSTATE_STANDBY         evhSTATE_STANDBY
00101 #define mswSTATE_ONLINE          evhSTATE_ONLINE
00102 #define mswSTATE_ERROR           evhSTATE_ERROR
00103 
00104 /* msw substate definitions */
00105 #define mswSUB_STATE_UNK            mswSTATE_UNK   /*MVE added */
00106 #define mswSUB_STATE_ERROR          19
00107 #define mswSUB_STATE_STEADY         20  /*MVE not used anymore */
00108 #define mswSUB_STATE_IDLE           21  
00109 #define mswSUB_STATE_COLDSTARTING   22
00110 #define mswSUB_STATE_SHUTTINGDOWN   23
00111 #define mswSUB_STATE_PAUSED         24
00112 #define mswSUB_STATE_PAUSING        25
00113 #define mswSUB_STATE_STARTING       26
00114 #define mswSUB_STATE_STOPPING       27
00115 #define mswSUB_STATE_PRESETTING     29
00116 #define mswSUB_STATE_CHANGINGFOCUS  30
00117 #define mswSUB_STATE_ALIGNING       31
00118 
00119 /* Defines for name states */
00120 #define mswSTATE_STR_UNK            evhSTATE_STR_UNK 
00121 #define mswSTATE_STR_OFF            evhSTATE_STR_OFF 
00122 #define mswSTATE_STR_LOADED         evhSTATE_STR_LOADED /* not used by msw */
00123 #define mswSTATE_STR_STANDBY        evhSTATE_STR_STANDBY 
00124 #define mswSTATE_STR_ONLINE         evhSTATE_STR_ONLINE 
00125 
00126 #define mswSUB_STATE_STR_ERROR          "ERROR"
00127 #define mswSUB_STATE_STR_STEADY         "STEADY"  /*MVE not used anymore */
00128 #define mswSUB_STATE_STR_IDLE           "IDLE"
00129 #define mswSUB_STATE_STR_COLDSTARTING   "COLD STARTING"
00130 #define mswSUB_STATE_STR_SHUTTINGDOWN   "SHUTTING DOWN"
00131 #define mswSUB_STATE_STR_PAUSED         "PAUSED"
00132 #define mswSUB_STATE_STR_PAUSING        "PAUSING"
00133 #define mswSUB_STATE_STR_STARTING       "STARTING"
00134 #define mswSUB_STATE_STR_STOPPING       "STOPPING"
00135 #define mswSUB_STATE_STR_PRESETTING     "PRESETTING"
00136 #define mswSUB_STATE_STR_CHANGINGFOCUS  "CHANGING FOCUS"
00137 #define mswSUB_STATE_STR_ALIGNING       "ALIGNING"
00138 
00139 /*
00140  * Defines for command names
00141  */
00142 
00143 /* User commands */
00144 #define mswCSTART_CMD         "CSTART"
00145 #define mswSTART_CMD          "START"
00146 #define mswSHDOWN_CMD         "SHDOWN"
00147 #define mswPAUSE_CMD          "PAUSE"
00148 #define mswCHFOCUS_CMD        "CHFOCUS"
00149 #define mswGETINS_CMD         "GETINS"
00150 #define mswGETINSD_CMD        "GETINSD"
00151 #define mswSELINS_CMD         "SELINS"
00152 #define mswSETINSD_CMD        "SETINSD"
00153 
00154 /* From prs module */
00155 #define mswPRESET_CMD         "PRESET"
00156 #define mswEPRESET_CMD        "EPRESET"
00157 
00158 /* From iss module */
00159 #define mswALIGN_CMD          "ALIGN"
00160 #define mswEALIGN_CMD         "EALIGN"
00161 
00162 /* From active optics module */
00163 #define mswGETPERM_CMD        "GETPERM"
00164 #define mswRELPERM_CMD        "RELPERM"
00165 
00166 /* Overloaded standard commands */
00167 #define mswVERSION_CMD        evhVERSION_CMD
00168 #define mswSTATUS_CMD         evhSTATUS_CMD
00169 #define mswOFF_CMD            evhOFF_CMD
00170 #define mswSTANDBY_CMD        evhSTANDBY_CMD
00171 #define mswONLINE_CMD         evhONLINE_CMD
00172 #define mswSTOP_CMD           evhSTOP_CMD
00173 #define mswINIT_CMD           evhINIT_CMD
00174 
00175 /* Commands to "broadcast" */
00176 #define mswINIT_ALL_CMD       mswINIT_CMD 
00177 #define mswSTANDBY_ALL_CMD    mswSTANDBY_CMD 
00178 #define mswONLINE_ALL_CMD     mswONLINE_CMD
00179 #define mswOFF_ALL_CMD        mswOFF_CMD
00180 #define mswSTOP_ALL_CMD       mswSTOP_CMD
00181 
00182 /* maximum number of modules in module table */
00183 #define mswNO_OF_MODULES       64
00184 
00185 /* strings to match in userField of module table */
00186 #define mswGUIDING_STRING       "GUIDING"
00187 #define mswONFOCUS_STRING       "ONFOCUS"
00188 #define mswINITCHFOC_STRING     "INITCHFOC"
00189 
00190 /* special values of table state to trigger evaluation */
00191 /*MVE In msw they are not used! Who needs them? */
00192 #define mswTABLE_CHANGED       98
00193 #define mswSTATE_CHANGED       99
00194 
00195 /*
00196  * Defines for instrument configuration handling
00197  */
00198 #define mswNO_OF_INSTRUMENTS   24
00199 
00200 /* Database symbolic addresses */
00201 /* --------------------------- */
00202 
00203 /* Module entry point (path to append after mainHandler.DbRoot()) */
00204 #define mswDB_ENTRY_POINT        "msw"
00205 
00206 /* Relative to the mswDB_ENTRY_POINT */
00207 #define mswDB_SUBSTATE_ATTR      "substate"
00208 #define mswDB_READY_TIMEOUT_ATTR "readyTimeout"
00209 #define mswDB_STOP_TIMEOUT_ATTR  "stopTimeout"
00210 #define mswDB_LIST_POINT         "list"
00211 #define mswDB_INS_DATA_POINT     "insData"
00212 #define mswDB_FOCUS_POINT        "foc"
00213 #define mswDB_FORCE_SETTING      "forceSetting"
00214 
00215 /* Relative to mswDB_LIST_POINT */
00216 #define mswDB_MODULES_ATTR       "modules"
00217 #define mswDB_LIST_CHANGED_ATTR  "listchanged"
00218 #define mswDB_UNIT_CHANGED_ATTR  "unitchanged"
00219 
00220 /* Relative to mswDB_INS_DATA_POINT */
00221 #define mswDB_INS_ID_ATTR         "selectedIns"
00222 #define mswDB_INS_DATA_ATTR       "data"
00223 
00224 /*MVE Min and max value to assess if altitude is within "ZENITH range" */
00225 #define mswMIN_ZENITH           88.0
00226 #define mswMAX_ZENITH           90.1
00227 #define mswIS_ZENITH(alt)       (((alt)>=mswMIN_ZENITH)&&((alt)<=mswMAX_ZENITH))
00228 
00229 /*MVE Defines for focus station numbers and names */
00230 #define mswUNDEFINED_FOCUS      0
00231 #define mswALL_FOCUS            1 /* Not meaningful to define the focus station    */
00232           /* but compliant with the msw table focus codes  */
00233 #define mswNASMITH_A_FOCUS      2
00234 #define mswNASMITH_B_FOCUS      3
00235 #define mswCASSEGRAIN_FOCUS     4
00236 #define mswCOUDE_FOCUS          5
00237 #define mswINTERMEDIATE_D_FOCUS 6
00238 
00239 #define mswUNDEFINED_STR_FOCUS      "UNDEFINED"
00240 #define mswALL_STR_FOCUS            "ALL"
00241 #define mswNASMITH_A_STR_FOCUS      "NA"
00242 #define mswNASMITH_B_STR_FOCUS      "NB"
00243 #define mswCASSEGRAIN_STR_FOCUS     "CA"
00244 #define mswCOUDE_STR_FOCUS          "CO"
00245 #define mswINTERMEDIATE_D_STR_FOCUS "IM"
00246 
00247 #endif 

Generated on Wed Dec 3 14:52:15 2003 for ATCS API by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001