European
Southern
Observatory

ESO — Reaching New Heights in Astronomy

Countries taking part in the ESO

VLT Software Documentation

trkwsFOCUS_DATA Class Reference

#include <trkwsFOCUS_DATA.h>

Collaboration diagram for trkwsFOCUS_DATA:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 trkwsFOCUS_DATA (const dbSYMADDRESS rootDbPoint, mswFOCUS &focus)
 ~trkwsFOCUS_DATA ()
ccsCOMPL_STAT Init (const char *focusString, vltLOGICAL pollFocusIfNotReady=ccsTRUE)
ccsCOMPL_STAT SetReplyHandler (evhCALLBACK &cb)
ccsCOMPL_STAT SetErrorHandler (evhCALLBACK &cb)
evhCALLBACK * GetReplyHandler ()
evhCALLBACK * GetErrorHandler ()
void ResetUserCBs ()
void Reset ()
ccsCOMPL_STAT UpdateFocus (evhCALLBACK *replyCB=NULL, evhCALLBACK *errorCB=NULL)
ccsCOMPL_STAT UpdateRotator (evhCALLBACK *replyCB=NULL, evhCALLBACK *errorCB=NULL)
ccsCOMPL_STAT UpdateOffAxisTracking (evhCALLBACK *replyCB=NULL, evhCALLBACK *errorCB=NULL)
void ResetUpdateFocus ()
void ResetUpdateRotator ()
void ResetUpdateOax ()

Protected Attributes

eccsDB_LOGICAL loadOnInit
eccsDB_TABLE< trkwsFOCUS_RECORDrotTable
eccsDB_STRING rotPosAddr
eccsDB_STRING adPosAddr
eccsDB_UINT32 newpcmAlarm
eccsDB_UINT32 setfocAlarm
eccsDB_UINT32 setrotAlarm
eccsDB_UINT32 setoaxAlarm
eccsDB_INT32 checkTime
mswFOCUStrkwsFocus

Private Member Functions

ccsCOMPL_STAT _Init (const char *focusString)
ccsCOMPL_STAT ReadPOMFile (const char *fileName)
evhCB_COMPL_STAT NewpcmOKCB (msgMESSAGE &, void *)
evhCB_COMPL_STAT SetrotOKCB (msgMESSAGE &, void *)
evhCB_COMPL_STAT NewpcmErrorCB (msgMESSAGE &, void *)
evhCB_COMPL_STAT SetfocErrorCB (msgMESSAGE &, void *)
evhCB_COMPL_STAT SetrotErrorCB (msgMESSAGE &, void *)
evhCB_COMPL_STAT SetoaxErrorCB (msgMESSAGE &, void *)
evhCB_COMPL_STAT CheckFocusCB (msgMESSAGE &msg, void *)
evhCB_COMPL_STAT InsDataChangedCB (msgMESSAGE &msg, void *)

Private Attributes

mswINS_DATA_MONITOR insConfigData
char pcmCmd [trkwsMAX_MSG_LEN]
char setfocCmd [trkwsMAX_MSG_LEN]
char setrotCmd [trkwsMAX_MSG_LEN]
char setoaxCmd [trkwsMAX_MSG_LEN]
trkwsFOCUS_RECORD focusFound
evhTIMER * timer
char oldFocusString [trkwsFOCUS_STRING_MAX_LEN]
vltLOGICAL checkFocus
trkwsSELF_CMD newpcm
trkwsSELF_CMD setfoc
trkwsSELF_CMD setrot
trkwsSELF_CMD setoax
evhCALLBACK * userReplyCB
evhCALLBACK * userErrorCB
LOGICAL loadOnInit = 1
INT32 checkTime = 10
Table rotPos
 trkwsROT_POS_MAXINDEX
bytes20 FocusName
bytes20 bytes256 rotAddress
bytes20 bytes256 bytes256 adAddress

Detailed Description

Definition at line 42 of file trkwsFOCUS_DATA.h.


Constructor & Destructor Documentation

trkwsFOCUS_DATA::trkwsFOCUS_DATA ( const dbSYMADDRESS  rootDbPoint,
mswFOCUS focus 
)
trkwsFOCUS_DATA::~trkwsFOCUS_DATA (  ) 

Definition at line 140 of file trkwsFOCUS_DATA.C.


Member Function Documentation

ccsCOMPL_STAT trkwsFOCUS_DATA::_Init ( const char *  focusString  )  [private]
evhCB_COMPL_STAT trkwsFOCUS_DATA::CheckFocusCB ( msgMESSAGE &  msg,
void *   
) [private]
evhCALLBACK * trkwsFOCUS_DATA::GetErrorHandler (  ) 

Definition at line 812 of file trkwsFOCUS_DATA.C.

References userErrorCB.

Referenced by trkwsCON_MAIN_TASK::SetDutOKCB().

evhCALLBACK * trkwsFOCUS_DATA::GetReplyHandler (  ) 

Definition at line 817 of file trkwsFOCUS_DATA.C.

References userReplyCB.

ccsCOMPL_STAT trkwsFOCUS_DATA::Init ( const char *  focusString,
vltLOGICAL  pollFocusIfNotReady = ccsTRUE 
)
evhCB_COMPL_STAT trkwsFOCUS_DATA::InsDataChangedCB ( msgMESSAGE &  msg,
void *   
) [private]
evhCB_COMPL_STAT trkwsFOCUS_DATA::NewpcmErrorCB ( msgMESSAGE &  ,
void *   
) [private]

Definition at line 567 of file trkwsFOCUS_DATA.C.

References newpcmAlarm, pcmCmd, trkwsALARM_WARNING, trkwsERR_COMMAND_FAILED, and trkwsMOD.

Referenced by _Init().

evhCB_COMPL_STAT trkwsFOCUS_DATA::NewpcmOKCB ( msgMESSAGE &  msg,
void *   
) [private]
ccsCOMPL_STAT trkwsFOCUS_DATA::ReadPOMFile ( const char *  fileName  )  [private]
void trkwsFOCUS_DATA::Reset (  ) 
void trkwsFOCUS_DATA::ResetUpdateFocus (  ) 
void trkwsFOCUS_DATA::ResetUpdateOax (  ) 
void trkwsFOCUS_DATA::ResetUpdateRotator (  ) 
void trkwsFOCUS_DATA::ResetUserCBs (  ) 

Definition at line 144 of file trkwsFOCUS_DATA.C.

References userErrorCB, and userReplyCB.

Referenced by trkwsCON_MAIN_TASK::Init().

ccsCOMPL_STAT trkwsFOCUS_DATA::SetErrorHandler ( evhCALLBACK &  cb  ) 
evhCB_COMPL_STAT trkwsFOCUS_DATA::SetfocErrorCB ( msgMESSAGE &  ,
void *   
) [private]

Definition at line 579 of file trkwsFOCUS_DATA.C.

References setfocAlarm, setfocCmd, trkwsALARM_WARNING, trkwsERR_COMMAND_FAILED, and trkwsMOD.

Referenced by UpdateFocus().

evhCB_COMPL_STAT trkwsFOCUS_DATA::SetoaxErrorCB ( msgMESSAGE &  ,
void *   
) [private]
ccsCOMPL_STAT trkwsFOCUS_DATA::SetReplyHandler ( evhCALLBACK &  cb  ) 
evhCB_COMPL_STAT trkwsFOCUS_DATA::SetrotErrorCB ( msgMESSAGE &  ,
void *   
) [private]

Definition at line 592 of file trkwsFOCUS_DATA.C.

References setrotAlarm, setrotCmd, trkwsALARM_WARNING, trkwsERR_COMMAND_FAILED, and trkwsMOD.

Referenced by NewpcmOKCB(), and UpdateRotator().

evhCB_COMPL_STAT trkwsFOCUS_DATA::SetrotOKCB ( msgMESSAGE &  msg,
void *   
) [private]
ccsCOMPL_STAT trkwsFOCUS_DATA::UpdateFocus ( evhCALLBACK *  replyCB = NULL,
evhCALLBACK *  errorCB = NULL 
)
ccsCOMPL_STAT trkwsFOCUS_DATA::UpdateOffAxisTracking ( evhCALLBACK *  replyCB = NULL,
evhCALLBACK *  errorCB = NULL 
)
ccsCOMPL_STAT trkwsFOCUS_DATA::UpdateRotator ( evhCALLBACK *  replyCB = NULL,
evhCALLBACK *  errorCB = NULL 
)

Member Data Documentation

bytes20 bytes256 bytes256 trkwsFOCUS_DATA::adAddress [private]

Definition at line 414 of file trkwsDATA.class.

eccsDB_STRING trkwsFOCUS_DATA::adPosAddr [protected]

Definition at line 70 of file trkwsFOCUS_DATA.h.

Referenced by _Init(), and trkwsFOCUS_DATA().

vltLOGICAL trkwsFOCUS_DATA::checkFocus [private]

Definition at line 98 of file trkwsFOCUS_DATA.h.

Referenced by CheckFocusCB(), Init(), Reset(), and trkwsFOCUS_DATA().

INT32 trkwsFOCUS_DATA::checkTime = 10 [private]

Definition at line 413 of file trkwsDATA.class.

eccsDB_INT32 trkwsFOCUS_DATA::checkTime [protected]

Definition at line 75 of file trkwsFOCUS_DATA.h.

Referenced by Init().

Definition at line 95 of file trkwsFOCUS_DATA.h.

Referenced by _Init().

bytes20 trkwsFOCUS_DATA::FocusName [private]

Definition at line 414 of file trkwsDATA.class.

Definition at line 90 of file trkwsFOCUS_DATA.h.

Referenced by trkwsFOCUS_DATA(), UpdateOffAxisTracking(), and UpdateRotator().

LOGICAL trkwsFOCUS_DATA::loadOnInit = 1 [private]

Definition at line 412 of file trkwsDATA.class.

eccsDB_LOGICAL trkwsFOCUS_DATA::loadOnInit [protected]

Definition at line 67 of file trkwsFOCUS_DATA.h.

Referenced by _Init(), and trkwsFOCUS_DATA().

Definition at line 99 of file trkwsFOCUS_DATA.h.

Referenced by _Init(), Reset(), SetErrorHandler(), and SetReplyHandler().

eccsDB_UINT32 trkwsFOCUS_DATA::newpcmAlarm [protected]

Definition at line 71 of file trkwsFOCUS_DATA.h.

Referenced by _Init(), NewpcmErrorCB(), Reset(), and trkwsFOCUS_DATA().

char trkwsFOCUS_DATA::oldFocusString[trkwsFOCUS_STRING_MAX_LEN] [private]

Definition at line 97 of file trkwsFOCUS_DATA.h.

Referenced by CheckFocusCB(), Init(), Reset(), and trkwsFOCUS_DATA().

char trkwsFOCUS_DATA::pcmCmd[trkwsMAX_MSG_LEN] [private]

Definition at line 91 of file trkwsFOCUS_DATA.h.

Referenced by _Init(), NewpcmErrorCB(), and ReadPOMFile().

bytes20 bytes256 trkwsFOCUS_DATA::rotAddress [private]

Definition at line 414 of file trkwsDATA.class.

Table trkwsFOCUS_DATA::rotPos [private]

Definition at line 414 of file trkwsDATA.class.

eccsDB_STRING trkwsFOCUS_DATA::rotPosAddr [protected]

Definition at line 69 of file trkwsFOCUS_DATA.h.

Referenced by _Init(), and trkwsFOCUS_DATA().

eccsDB_TABLE<trkwsFOCUS_RECORD> trkwsFOCUS_DATA::rotTable [protected]

Definition at line 68 of file trkwsFOCUS_DATA.h.

Referenced by _Init(), and trkwsFOCUS_DATA().

Definition at line 100 of file trkwsFOCUS_DATA.h.

Referenced by Reset(), ResetUpdateFocus(), and UpdateFocus().

eccsDB_UINT32 trkwsFOCUS_DATA::setfocAlarm [protected]

Definition at line 72 of file trkwsFOCUS_DATA.h.

Referenced by _Init(), Reset(), SetfocErrorCB(), trkwsFOCUS_DATA(), and UpdateFocus().

char trkwsFOCUS_DATA::setfocCmd[trkwsMAX_MSG_LEN] [private]

Definition at line 92 of file trkwsFOCUS_DATA.h.

Referenced by SetfocErrorCB(), and UpdateFocus().

eccsDB_UINT32 trkwsFOCUS_DATA::setoaxAlarm [protected]

Definition at line 74 of file trkwsFOCUS_DATA.h.

Referenced by _Init(), Reset(), SetoaxErrorCB(), trkwsFOCUS_DATA(), and UpdateOffAxisTracking().

char trkwsFOCUS_DATA::setoaxCmd[trkwsMAX_MSG_LEN] [private]

Definition at line 94 of file trkwsFOCUS_DATA.h.

Referenced by SetoaxErrorCB(), and UpdateOffAxisTracking().

eccsDB_UINT32 trkwsFOCUS_DATA::setrotAlarm [protected]

Definition at line 73 of file trkwsFOCUS_DATA.h.

Referenced by _Init(), Reset(), SetrotErrorCB(), trkwsFOCUS_DATA(), and UpdateRotator().

char trkwsFOCUS_DATA::setrotCmd[trkwsMAX_MSG_LEN] [private]

Definition at line 93 of file trkwsFOCUS_DATA.h.

Referenced by SetrotErrorCB(), and UpdateRotator().

evhTIMER* trkwsFOCUS_DATA::timer [private]

Definition at line 96 of file trkwsFOCUS_DATA.h.

Referenced by Init(), Reset(), and trkwsFOCUS_DATA().

Definition at line 76 of file trkwsFOCUS_DATA.h.

Referenced by CheckFocusCB(), and UpdateFocus().

Definition at line 414 of file trkwsDATA.class.

evhCALLBACK* trkwsFOCUS_DATA::userErrorCB [private]
evhCALLBACK* trkwsFOCUS_DATA::userReplyCB [private]

The documentation for this class was generated from the following files:
Generated on Mon Apr 23 10:12:56 2012 for INTROOT API by doxygen 1.6.3