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

agDatabase.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002 * E.S.O. - VLT project
00003 *
00004 * "@(#) $Id: agDatabase.h,v 1.98 2003/11/11 14:58:39 vltsccm Exp $"
00005 *
00006 * who       when      what
00007 * --------  --------  ----------------------------------------------
00008 * tcsmgr2 1999-12-01 Added handling of running mean
00009 * tcsmgr  18/10/98  Added focusType attribute
00010 * gchiozzi  30/09/98  Added maxIpFailure
00011 * gchiozzi  30/09/98  PII controller is now frequency dependent.
00012 * tcsmgr   17/09/98  Added database definitions for ccdip checking configuration.
00013 * tcsmgr   17/09/98  Added database definitions for ccdip checking configuration.
00014 * gchiozzi  31/03/98  Removed root point state attribute. Uses only std.state.
00015 * awalland  13/12/96  Added PII parameters
00016 * tphan     10/03/96  First version
00017 */
00018 
00019 /************************************************************************
00020 *   NAME
00021 *   
00022 * 
00023 *   SYNOPSIS
00024 *   
00025 * 
00026 *   DESCRIPTION
00027 *
00028 *   FILES
00029 *
00030 *   ENVIRONMENT
00031 *
00032 *   COMMANDS
00033 *
00034 *   RETURN VALUES
00035 *
00036 *   CAUTIONS 
00037 *
00038 *   EXAMPLES
00039 *
00040 *   SEE ALSO
00041 *
00042 *   BUGS   
00043 * 
00044 *------------------------------------------------------------------------
00045 */
00046 
00047 #ifndef AG_DATABASE_H
00048 #define AG_DATABASE_H
00049 
00050 /*
00051  * Database point names
00052  */
00053  
00054 #define agDB_CCD_ROOT agGlobal.ccdName
00055 
00056 
00057 /* ***********************************************
00058    *  Configuration of CAI fast DB access tables
00059    *********************************************** */
00060 
00061 /*
00062  * Every table configuration consists of two components:
00063  *   - a lists of attribute names (must be terminated with NULL; cai requirement)
00064  *   - a list of literals mapping each attribute name with an indes in the table.
00065  * The CAI functions will map each database address in an absolute address
00066  * a configure a table record with that index for fast read/write access
00067  */
00068 
00069 /*
00070  *  Application general flags and control attributes
00071  */
00072 
00073 #define agDB_ROOT "ag"
00074 
00075 static const char *agAttrNames[] = 
00076 {   
00077     /* standard state */
00078     "std.state",
00079     "std.simulation",
00080     "std.initialized",
00081 
00082     "agConfig.trkAxisListUsed",  
00083     "agConfig.trkAxisList",  
00084     "statData",   
00085     "lastCorrection",   
00086     
00087     /* others */ 
00088     "guidingActive", 
00089     "guidingNullCorr",
00090     
00091     "rotAngle",
00092     "imageScale",
00093     "focusType",
00094     NULL
00095 };
00096 
00097 /*
00098  * Literals for the index of each attribute in the direct address table. This
00099  * index mapps an attribute name to a direct address.
00100  */
00101     
00102 typedef enum
00103 {
00104     agDB_STD_STATE = 0,
00105     agDB_STD_SIMULATION,
00106     agDB_STD_INITIALIZED,
00107 
00108     agDB_TRK_AXIS_LIST_USED,
00109     agDB_TRK_AXIS_LIST,
00110     
00111     agDB_STAT_DATA,
00112     agDB_LAST_CORRECTION,
00113     
00114     agDB_GUIDING_ACTIVE,
00115     agDB_GUIDING_NULL_CORR,
00116     
00117     agDB_ROT_ANGLE,
00118     agDB_IMAGE_SCALE,
00119     agDB_FOCUS_TYPE
00120 
00121 } agDB_ATTR_INDEX;
00122     
00123 /*
00124  *  Control loop control parameters
00125  */
00126 
00127 #define agDB_CONFIG_ROOT "agConfig"
00128 
00129 static const char *agGuideConfigNames[] =
00130 {
00131     "conversionFunc",   
00132     "sendOffsetFunc",   
00133     "sendFreq", 
00134     "errorVectorValues", 
00135     "meanLen", 
00136     "errorVectorMin", 
00137     "offsetMax", 
00138     "maxIpFailure",
00139     "cvb.minNumPix",
00140     "cvb.minSNR",
00141     "cvb.maxFWHM",
00142     "cvb.maxElongation",
00143     "cvb.maxOffset",
00144     "cvb.minStdDevRatio",
00145     "cvb.minStdDevDelta",
00146     "cvb.rejectionLimit",
00147     "pii.kp",
00148     "pii.ki",
00149     "pii.kii",
00150     "pii.maxI",
00151     "pii.maxII",
00152     "pii.freqDep",
00153     NULL
00154 };
00155     
00156 typedef enum
00157 {
00158     agDB_CONVERSION_FUNC,
00159     agDB_SEND_OFFSET_FUNC,
00160     
00161     agDB_SEND_FREQ,
00162     
00163     agDB_ERROR_VECTOR_VALUES,
00164     agDB_ERROR_MEAN_LEN,
00165     agDB_ERROR_VECTOR_MIN,
00166 
00167     agDB_OFFSET_MAX,
00168 
00169     agDB_MAX_IP_FAILURE,
00170 
00171     agDB_CCDIP_MINNUMPIX,
00172     agDB_CCDIP_MINSNR,
00173     agDB_CCDIP_MAXFWHM,
00174     agDB_CCDIP_MAXELONGATION,
00175     agDB_CCDIP_MAXOFFSET,
00176     agDB_CCDIP_MINSDRATIO,
00177     agDB_CCDIP_MINSDDELTA,
00178     agDB_CCDIP_REJECTIONLIMIT,
00179 
00180     agDB_PII_KP,
00181     agDB_PII_KI,
00182     agDB_PII_KII,
00183     agDB_PII_MAXI,
00184     agDB_PII_MAXII,
00185     agDB_PII_FREQDEP
00186     
00187 } agDB_GUIDE_CONFIG_INDEX;
00188 
00189 #endif /* !AG_DATABASE_H */
00190 

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