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