00001 #ifndef ATFS_INTERNAL_H
00002 #define ATFS_INTERNAL_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "agInternal.h"
00019 #include "atfsDatabase.h"
00020
00021
00022
00023
00024
00025 #define atfsMOD "atfs"
00026 #define atfsSERVER_CIT "atfsServer"
00027
00028
00029
00030
00031 typedef struct
00032 {
00033 vltLOGICAL filter;
00034
00035 ccsTIMEVAL at;
00036 ccsTIMEVAL stopAt;
00037
00038 vltDOUBLE amplitude;
00039 vltDOUBLE offset;
00040 vltDOUBLE orientation;
00041 vltDOUBLE frequency;
00042 vltDOUBLE ratio;
00043 vltINT32 phase;
00044 } atfsCHOP_CONFIG;
00045
00046 typedef struct
00047 {
00048 vltINT32 mode;
00049 atfsCHOP_CONFIG chopConfig;
00050
00051
00052 char *fsAttrVector;
00053 char *fsConfigVector;
00054
00055 } atfsGLOBAL;
00056
00057
00058
00059
00060 extern atfsGLOBAL atfsGlobal;
00061
00062
00063
00064
00065
00066 ccsCOMPL_STAT atfsStartAg (IN msgMSG *msg,
00067 IN vltDOUBLE rotAngle,
00068 IN vltDOUBLE repFrq,
00069 IN char *at,
00070 IN char *mode,
00071 IN vltINT32 bookid,
00072 OUT ccsERROR *error);
00073
00074 ccsCOMPL_STAT atfsSendOffsetMsg (IN agGLOBAL *ptr,
00075 IN agOFFSET *offset,
00076 OUT ccsERROR *error );
00077
00078
00079
00080
00081 ccsCOMPL_STAT atfsDbReadMode(OUT vltINT32 *fsMode,
00082 OUT ccsERROR *error);
00083 ccsCOMPL_STAT atfsSetMode(IN vltINT32 fsMode,
00084 OUT ccsERROR *error);
00085
00086
00087
00088
00089
00090 ccsCOMPL_STAT atfsGetConfigMode (IN const char *mode,
00091 OUT vltINT32 *configMode,
00092 OUT ccsERROR *error);
00093
00094
00095
00096
00097 ccsCOMPL_STAT atfsConfigPIIParams (IN char *mode,
00098 IN agPII_CMD *pii,
00099 OUT ccsERROR *error);
00100
00101
00102
00103
00104 ccsCOMPL_STAT atfsConfigCcdipParams (IN const char *mode,
00105 IN ccdipCVBUF *cvb,
00106 IN vltINT32 rejectionLimit,
00107 OUT ccsERROR *error);
00108
00109
00110
00111
00112 ccsCOMPL_STAT atfsConfig (IN char *mode,
00113 IN vltDOUBLE errorVectorMin,
00114 IN vltDOUBLE offsetMax,
00115 IN vltDOUBLE sendFreq,
00116 IN vltINT32 errorVectorValues,
00117 OUT ccsERROR *error);
00118
00119
00120
00121
00122 ccsCOMPL_STAT atfsChopSet(IN const char *at,
00123 IN const char *stopAt,
00124 IN vltDOUBLE amplitude,
00125 IN vltDOUBLE offset,
00126 IN vltDOUBLE orientation,
00127 IN vltDOUBLE frequency,
00128 IN vltDOUBLE ratio,
00129 IN vltINT32 phase,
00130 OUT ccsERROR *error);
00131
00132 ccsCOMPL_STAT atfsChopInit(OUT atfsCHOP_CONFIG *config,
00133 OUT ccsERROR *error);
00134
00135 ccsCOMPL_STAT atfsChopFilter(IN atfsCHOP_CONFIG *config,
00136 IN ccdIPIMAGE *img,
00137 OUT vltLOGICAL *accept,
00138 OUT ccsERROR *error);
00139
00140
00141
00142
00143 ccsCOMPL_STAT atfsProcessImageCheck(ccdIPIMAGE *img, int *retval, ccsERROR *error);
00144
00145 ccsCOMPL_STAT atfsGuidingTask (IN SEM_ID *syncSem,
00146 OUT ccsCOMPL_STAT *initStatus,
00147 IN vltDOUBLE *rotAngle,
00148 IN agGLOBAL *ptr);
00149
00150 #endif