European
Southern
Observatory

ESO — Reaching New Heights in Astronomy

Countries taking part in the ESO

VLT Software Documentation

mswCHANGE_FOCUS_VLT Class Reference

See man page mswCHANGE_FOCUS_VLT(4)
More...

#include <mswCHANGE_FOCUS_VLT.h>

Inheritance diagram for mswCHANGE_FOCUS_VLT:
Inheritance graph
[legend]
Collaboration diagram for mswCHANGE_FOCUS_VLT:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 mswCHANGE_FOCUS_VLT (const dbSYMADDRESS dbName, mswMOD_LIST_MANAGER &listManager)
 ~mswCHANGE_FOCUS_VLT ()
virtual ccsCOMPL_STAT Init ()
virtual ccsCOMPL_STAT Execute (msgMESSAGE &msg)
virtual ccsCOMPL_STAT ReadMirrorsPos (vltINT32 *currFoc)
virtual ccsCOMPL_STAT CheckModeSwitchingState (vltINT32 actState, vltINT32 actSubState)

Protected Member Functions

evhCB_COMPL_STAT ExecuteCB (msgMESSAGE &msg, void *)
ccsCOMPL_STAT FocusStandby ()
evhCB_COMPL_STAT FocusStandbyCB (msgMESSAGE &msg, void *)
ccsCOMPL_STAT ParkAdc ()
evhCB_COMPL_STAT ParkAdcCB (msgMESSAGE &msg, void *)
ccsCOMPL_STAT SwitchFocus ()
evhCB_COMPL_STAT SwitchFocusCB (msgMESSAGE &msg, void *)
ccsCOMPL_STAT FocusOnline ()
evhCB_COMPL_STAT FocusOnlineCB (msgMESSAGE &msg, void *)
ccsCOMPL_STAT FocusStatus ()
evhCB_COMPL_STAT FocusStatusCB (msgMESSAGE &msg, void *)
ccsCOMPL_STAT InitOnChangeFocus ()
ccsCOMPL_STAT Focus (vltINT32 focus)
ccsCOMPL_STAT Focus (vltINT32 *focus)
ccsCOMPL_STAT LoadChangeFocusModules ()
ccsCOMPL_STAT LoadModuleData (const char *point, const char *name, const mswMOD_RECORD_ARRAY &modArray)

Protected Attributes

vltINT32 actFocus
vltINT32 newFocus
mswM3 m3
mswM4 m4
mswADROT adapter
mswADC adc
mswALT alt
mswTRKWS trkws
tcsDB_SYNC_ERR_CHECK waitParkAdcReady
tcsDB_SYNC_ERR_CHECK waitSwitchFocusReady
tcsDB_SYNC_ERR_CHECK waitFocusStatusReady

Private Attributes

vltINT32 readyTimeout
eccsERROR executeErrorStack
eccsERROR_CLASS executeErrorClass
int32 readyTimeout = 180
mswM3 mswMODNAME_M3
mswADC mswMODNAME_LADC
mswALT mswMODNAME_ALTAXIS
mswTRKWS mswMODNAME_TRKWS
mswM4 mswMODNAME_M4
mswADROT mswMODNAME_ADAPTER

Detailed Description

See man page mswCHANGE_FOCUS_VLT(4)
Manpage of mswCHANGE_FOCUS_VLT

mswCHANGE_FOCUS_VLT

Section: Devices and Network Interfaces (4)
Updated: 2012-04-23 10:09
Index Return to man pages list
 

NAME

mswCHANGE_FOCUS_VLT - Control telescope's focus change.
                      Specific VLT implementation

 

SYNOPSIS


#include "mswCHANGE_FOCUS_VLT.h"

class mswCHANGE_FOCUS_VLT : public mswCHANGE_FOCUS
{
 public:
   mswCHANGE_FOCUS_VLT(mswMOD_LIST_MANAGER &listManager);
   mswCHANGE_FOCUS_VLT(const dbSYMADDRESS  dbPoint,
                       mswMOD_LIST_MANAGER &listManager);
  ~mswCHANGE_FOCUS_VLT();

   virtual ccsCOMPL_STAT  Init();

   ccsCOMPL_STAT  Execute(msgMESSAGE     &msg);

 protected:
   virtual evhCB_COMPL_STAT  <xx><Cmd>OkCB(msgMESSAGE &msg,
                                            void *udata);
   virtual evhCB_COMPL_STAT  <xx><Cmd>ErrorCB(msgMESSAGE &msg,
                                              vltLOGICAL timeoutFlag);
};

 

PARENT CLASS


mswCHANGE_FOCUS

 

DESCRIPTION


Performs focus change.
This subclass implements the real focus changing functionality taking
into account the specific telescope architecture for VLT.


 

PUBLIC METHODS


mswCHANGE_FOCUS_VLT(mswMOD_LIST_MANAGER &listManager);
mswCHANGE_FOCUS_VLT(const dbSYMADDRESS  dbPoint,
                       mswMOD_LIST_MANAGER &listManager);
  Two constructors are provided.
  The second one receives as parameter the symbolic address of
  online database support point for the object, i.e. the point
  where the object can find configuration and run time values.
  The first one defines the online database support point calling
  the standard tcsDbRoot(4) function and appenting the
  default relative path from the TCS database root point,
  assuming a complete default TCS database structure.
  It calls the parent class' constructor.

~mswCHANGE_FOCUS_VLT()

ccsCOMPL_STAT  Execute(msgMESSAGE     &msg);

  Starts the real execution of the change focus procedure.
  It sends the command sequence:
  - STPWAIT to AO
  - STOP    to FS
  - STOPCHP to M2
  - ....... to ..
  The procedure sequence is controlled by the two callbacks
  <xx><Cmd>OkCB and <xx><Cmd>ErrorCB. The <xx><Cmd>OkCB
  sends the next command.

 

PROTECTED METHODS


 virtual evhCB_COMPL_STAT  <xx><Cmd>OkCB(msgMESSAGE &msg,
                                         void *udata);

   This callback is attached to the command object used
   to send commands to <xx>. It gets the control after every
   successfull completion of the command (last OK reply received),
   and starts the next step.
   When the last step of the procedure has been completed,
   it returns the control flow to the mswCONTROL_MAIN object.

 virtual evhCB_COMPL_STAT  <xx><Cmd>ErrorCB(msgMESSAGE &msg,
                                            vltLOGICAL timeoutFlag);

   This callback is attached to the command object used
   to send commands to <xx>. It gets the control when an error
   or timeout reply is received. It handles the error, stops
   the execution of the procedure and return the control flow
   to the mswCONTROL_MAIN object.

 

ON LINE DATABASE


See mswCHANGE_FOCUS class.

 

SEE ALSO


mswCHANGE_FOCUS(4)
evhDB_TASK(4)



 

Index

NAME
SYNOPSIS
PARENT CLASS
DESCRIPTION
PUBLIC METHODS
PROTECTED METHODS
ON LINE DATABASE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 10:09:28 GMT, April 23, 2012

Definition at line 39 of file mswCHANGE_FOCUS_VLT.h.


Constructor & Destructor Documentation

mswCHANGE_FOCUS_VLT::mswCHANGE_FOCUS_VLT ( const dbSYMADDRESS  dbName,
mswMOD_LIST_MANAGER listManager 
)
mswCHANGE_FOCUS_VLT::~mswCHANGE_FOCUS_VLT (  ) 

Definition at line 197 of file mswCHANGE_FOCUS_VLT.C.


Member Function Documentation

ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::CheckModeSwitchingState ( vltINT32  actState,
vltINT32  actSubState 
) [virtual]

Implements mswCHANGE_FOCUS.

Definition at line 856 of file mswCHANGE_FOCUS_VLT.C.

References mswSTATE_ONLINE, mswSTATE_STANDBY, and mswSUB_STATE_IDLE.

ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::Execute ( msgMESSAGE &  msg  )  [virtual]
evhCB_COMPL_STAT mswCHANGE_FOCUS_VLT::ExecuteCB ( msgMESSAGE &  msg,
void *   
) [protected]
ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::Focus ( vltINT32 *  focus  )  [protected]

Definition at line 871 of file mswCHANGE_FOCUS_VLT.C.

ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::Focus ( vltINT32  focus  )  [protected]

Definition at line 885 of file mswCHANGE_FOCUS_VLT.C.

Referenced by FocusOnline(), and Init().

ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::FocusOnline (  )  [protected]
evhCB_COMPL_STAT mswCHANGE_FOCUS_VLT::FocusOnlineCB ( msgMESSAGE &  msg,
void *   
) [protected]
ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::FocusStandby (  )  [protected]
evhCB_COMPL_STAT mswCHANGE_FOCUS_VLT::FocusStandbyCB ( msgMESSAGE &  msg,
void *   
) [protected]
ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::FocusStatus (  )  [protected]
evhCB_COMPL_STAT mswCHANGE_FOCUS_VLT::FocusStatusCB ( msgMESSAGE &  msg,
void *   
) [protected]
ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::Init (  )  [virtual]
ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::InitOnChangeFocus (  )  [protected]
ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::LoadChangeFocusModules (  )  [protected]
ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::LoadModuleData ( const char *  point,
const char *  name,
const mswMOD_RECORD_ARRAY modArray 
) [protected]
ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::ParkAdc (  )  [protected]
evhCB_COMPL_STAT mswCHANGE_FOCUS_VLT::ParkAdcCB ( msgMESSAGE &  msg,
void *   
) [protected]
ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::ReadMirrorsPos ( vltINT32 *  currFoc  )  [virtual]

Reimplemented from mswCHANGE_FOCUS.

Definition at line 808 of file mswCHANGE_FOCUS_VLT.C.

References mswCHANGE_FOCUS::focus, mswDB_M3_ADDR_ATTR, and mswUNDEFINED_FOCUS.

Referenced by Execute().

ccsCOMPL_STAT mswCHANGE_FOCUS_VLT::SwitchFocus (  )  [protected]
evhCB_COMPL_STAT mswCHANGE_FOCUS_VLT::SwitchFocusCB ( msgMESSAGE &  msg,
void *   
) [protected]

Member Data Documentation

vltINT32 mswCHANGE_FOCUS_VLT::actFocus [protected]

Definition at line 87 of file mswCHANGE_FOCUS_VLT.h.

Referenced by SwitchFocus().

Definition at line 88 of file mswCHANGE_FOCUS_VLT.h.

Referenced by ParkAdc(), and SwitchFocus().

Definition at line 89 of file mswCHANGE_FOCUS_VLT.h.

Referenced by SwitchFocus().

eccsERROR_CLASS mswCHANGE_FOCUS_VLT::executeErrorClass [private]

Definition at line 99 of file mswCHANGE_FOCUS_VLT.h.

Referenced by Execute().

Definition at line 85 of file mswCHANGE_FOCUS_VLT.h.

Referenced by FocusStatus(), and SwitchFocus().

Definition at line 86 of file mswCHANGE_FOCUS_VLT.h.

Referenced by SwitchFocus().

Definition at line 59 of file mswCHANGE_FOCUS_VLT.class.

Definition at line 56 of file mswCHANGE_FOCUS_VLT.class.

Referenced by LoadChangeFocusModules().

Definition at line 55 of file mswCHANGE_FOCUS_VLT.class.

Referenced by LoadChangeFocusModules().

Definition at line 54 of file mswCHANGE_FOCUS_VLT.class.

Definition at line 58 of file mswCHANGE_FOCUS_VLT.class.

Definition at line 57 of file mswCHANGE_FOCUS_VLT.class.

vltINT32 mswCHANGE_FOCUS_VLT::newFocus [protected]
int32 mswCHANGE_FOCUS_VLT::readyTimeout = 180 [private]

Definition at line 52 of file mswCHANGE_FOCUS_VLT.class.

Definition at line 90 of file mswCHANGE_FOCUS_VLT.h.

Referenced by SwitchFocus().

Definition at line 94 of file mswCHANGE_FOCUS_VLT.h.

Referenced by ExecuteCB(), FocusStatus(), and FocusStatusCB().

Definition at line 92 of file mswCHANGE_FOCUS_VLT.h.

Referenced by ExecuteCB(), and ParkAdc().

Definition at line 93 of file mswCHANGE_FOCUS_VLT.h.

Referenced by ExecuteCB(), SwitchFocus(), and SwitchFocusCB().


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