00001 #ifndef agwsCON_ADAPTER_VLT_H
00002 #define agwsCON_ADAPTER_VLT_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef __cplusplus
00026 #error This is a C++ include file and cannot be used from plain C
00027 #endif
00028
00029 #include "agwsCON_ADAPTER.h"
00030
00031 class agwsCON_ADAPTER_VLT : public agwsCON_ADAPTER
00032 {
00033 public:
00034 agwsCON_ADAPTER_VLT(const dbSYMADDRESS dbPoint, agwsCON_CAT &gsCat, agwsCON_SERVER &agServer);
00035 agwsCON_ADAPTER_VLT(const dbSYMADDRESS dbPoint, agwsCON_CAT &gsCat, agwsCON_SERVER &agServer,
00036 agwsCON_SETUP *gsSetup);
00037
00038 ccsCOMPL_STAT Init();
00039 virtual evhCB_COMPL_STAT ProbeAltCB(msgMESSAGE &msg, agwsCMD_HANDLER &handler);
00040 virtual evhCB_COMPL_STAT ProbeGsCB(msgMESSAGE &msg, agwsCMD_HANDLER &handler);
00041
00042 virtual ccsCOMPL_STAT EnableAdRotEvents();
00043 virtual ccsCOMPL_STAT DisableAdRotEvents();
00044 virtual vltLOGICAL CheckProbePos(vltDOUBLE alpha,
00045 vltDOUBLE delta,
00046 vltLOGICAL usedMargin,
00047 vltDOUBLE rotAngle);
00048 virtual ccsCOMPL_STAT Reset();
00049 virtual ccsCOMPL_STAT UpdateVignettingLimits();
00050
00051 protected:
00052 virtual evhCB_COMPL_STAT AdrotEventCB(evtEVENT_MSG &, void *);
00053 virtual evhCB_COMPL_STAT AdapterEventCB(evtEVENT_MSG &, void *);
00054 virtual evhCB_COMPL_STAT SetVignOkCB(msgMESSAGE &, void *);
00055 virtual evhCB_COMPL_STAT SetVignErrorCB(msgMESSAGE &, void *);
00056 virtual evhCB_COMPL_STAT InsDataChangedCB(msgMESSAGE &, void *);
00057 virtual evhCB_COMPL_STAT CheckGsOkCB(msgMESSAGE &msg, agwsCMD_HANDLER &handler);
00058
00059 virtual evhCB_COMPL_STAT AdrotEventStopAgOkCB(msgMESSAGE &, void *);
00060 virtual evhCB_COMPL_STAT AdapterEventStopAgOkCB(msgMESSAGE &, void *);
00061
00062 virtual ccsCOMPL_STAT CheckGs(agwsGUIDE_STAR &star,
00063 agwsCMD_HANDLER &handler);
00064 virtual evhCB_COMPL_STAT CheckGsAltCB(msgMESSAGE &msg, agwsCMD_HANDLER &handler);
00065 virtual evhCB_COMPL_STAT CheckGsAltErrorCB(msgMESSAGE &msg, agwsCMD_HANDLER &handler);
00066
00067 agwsGUIDE_STAR &ValidStar();
00068 agwsTRANSFER probePrchkCmd;
00069
00070 private:
00071 agwsCMD_HANDLER prAltCmdHandler;
00072 ccsTIMEVAL prAltTimeout;
00073 evtEVENT adrotGsOutOfFieldEvent;
00074 evtEVENT adrotAdTrkLimitEvent;
00075 agwsTRANSFER probeSetVignCmd;
00076 agwsGUIDE_STAR validStar;
00077 };
00078
00079
00080
00081
00082 #include "agwsCON_ADAPTER_VLT.icc"
00083
00084 #endif // !agwsCON_ADAPTER_VLT_H
00085
00086
00087