prsAH_MAIN_TASK_VLT

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

NAME

prsAH_MAIN_TASK_VLT - Main class for the prsAction program

 

SYNOPSIS


#include "prsAH_MAIN_TASK_VLT.h"

class prsAH_MAIN_TASK_VLT : public prsAH_MAIN_TASK
{
  public:
    prsAH_MAIN_TASK_VLT(const dbSYMADDRESS  dbPoint,
                    prsAH_TRACK   &track,
                    prsAH_GUIDE   &guide,
                    prsAH_AO      &ao,
                    prsAH_STD_MOD &stdMod,
                    prsAH_ADC     &adc,
                    prsAH_M2      &m2,
                    prsAH_M1      &m1);
   ~prsAH_MAIN_TASK_VLT();


  protected:
    virtual evhCB_COMPL_STAT  ExePresetCB(msgMESSAGE &msg, void *udata);
    virtual ccsCOMPL_STAT     PresetAbort(vltINT16 errorNumber);

    // Add also access methods for private data members

  private:
    prsAH_ADC     &adc;
    prsAH_M2      &m2;
    prsAH_M1      &m1;
};

 

PARENT CLASS


prsAH_MAIN_TASK

 

DESCRIPTION


An instance of this class is the core of the prsAction program and
is used to drive and control the execution of a telescope preset.
The class uses several other objects to interface with the other TCS
modules in place of talking directly to them. This improves the modularity
of the system.
With respect to the general class, support for m2 and adc have been added
It also has support for auto guiding with field stabilisation.


 

PUBLIC METHODS


prsAH_MAIN_TASK_VLT(const dbSYMADDRESS  dbPoint,
                prsAH_TRACK   &track,
                prsAH_GUIDE   &guide,
                prsAH_ADC     &adc,
                prsAH_M2      &m2,
                prsAH_AO      &ao,
                prsAH_STD_MOD &stdMod);

  The constructor 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.
  It also receives the references to the objects
  internally used. Passing the objects on the contructor warranties
  that they already exist, makes explicit the dependency and
  avoid using global variables.

~prsAH_MAIN_TASK_VLT()


 

PROTECTED METHODS


evhCB_COMPL_STAT  ExePresetCB(msgMESSAGE &msg, void *udata)
  This callback is executed when a positive reply to a "switch TCS to
  preset" command is received from the "Mode Switching" module.
  This implies that TCS is now in preset mode and the preset can go on.
  This method is the most likely to be subject to changes during
  implementation and maintenance of the TCS software.
  Look at the pseudo code of the function for details on the sequence.

ccsCOMPL_STAT PresetAbort(vltINT16 errorNumber)
  This method overload the corresponding method of the parent class
  in order to provide also support for reset of adc and m2

virtual ccsCOMPL_STAT Reset();
  Reset all the command senging sub-objects, in particular when
  a PRESET aborts.

 

PRIVATE DATA MEMBERS


Cooperating objects:

  prsAH_ADC     &adc
  prsAH_M2      &m2
  prsAH_M1      &m1


 

ON LINE DATABASE


The following database branch in the preset structure pertains
to the instance of prsAH_MAIN_TASK_VLT:

         CLASS prsACTION prsACTION_VLT
 

BEGIN //


             ATTRIBUTE prsGUIDE_VLT  guide
             ATTRIBUTE prsADC        adc
             ATTRIBUTE prsM2         m2
             ATTRIBUTE prsM1         m1
 

END //


It is an instance of prsACTION_VLT and implements the base point for the
whole prsAction task.
It add to new attributes (adc and m2) to support the new features of VLT
and overload "guide" vith a specialized VLT implementation,

 

SEE ALSO


prsAH_MAIN_TASK(4)



 

Index

NAME
SYNOPSIS
PARENT CLASS
DESCRIPTION
PUBLIC METHODS
PROTECTED METHODS
PRIVATE DATA MEMBERS
ON LINE DATABASE
BEGIN //
END //
SEE ALSO

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