TwiceAsNice  2019-02-18
Public Member Functions | Public Attributes | List of all members
Lics::LicsDrotPreset Class Reference

An implementation of Presetting the derotator to the initial position. More...

#include <LicsDrotPreset.h>

Inheritance diagram for Lics::LicsDrotPreset:
Inheritance graph
Collaboration diagram for Lics::LicsDrotPreset:
Collaboration graph

Public Member Functions

 LicsDrotPreset (const Lics::LicsIIFSide &sdx, const Laos::LaosSeAOType &ghws, const std::string &fnam, const Lics::LicsStar &star, const std::string doSE)
 Default constructor. More...
 
 ~LicsDrotPreset ()
 
int run (int argc, char *argv[])
 The function which will be called intermediatly through Application::start() More...
 
 LicsDrotPreset (const Lics::LicsIIFSide &sdx, const Laos::LaosSeAOType &ghws, const std::string &fnam, const Lics::LicsStar &star, const std::string doSE)
 
 ~LicsDrotPreset ()
 
int run (int argc, char *argv[])
 
- Public Member Functions inherited from Nice::Application
 Application ()
 
 ~Application ()
 
int init (int &, char *[])
 
int start (int, char *[])
 
void loadTypes ()
 
void enableHeartbeat ()
 
void enableLogger ()
 
virtual void interruptCallback (int _i)
 
 Application ()
 
 ~Application ()
 
int init (int &, char *[])
 
int start (int, char *[])
 
void loadTypes ()
 
void enableHeartbeat ()
 
void enableLogger ()
 
virtual void interruptCallback (int _i)
 

Public Attributes

Lics::LicsStar scat
 the target star (which implies a parallactic trajectory) More...
 
Lics::LicsIIFSide sdx
 the SX or DX side of the telescope More...
 
Laos::LaosSeAOType ghws
 the GWS or HWS part of the SE arms More...
 
std::string scatfile
 the name of the file with the star catalog More...
 
std::string seOpt
 the argument of the -s option of licsPreset More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Nice::Application
static void exit (int)
 
static const char * appName ()
 
static bool isInitialized ()
 
static void wait ()
 
static void shutdown (int _int=0)
 
static Ice::CommunicatorPtr communicator ()
 
static Ice::ObjectAdapterPtr adapter (const std::string &="")
 
static const Ice::ObjectPrx & addService (const std::string &_name, Ice::ObjectPtr &_object)
 
static JointPtr preinit ()
 
static JointPtr config (const std::string &_node="")
 
static Nice::JointPtr loadFile (const std::string &_filename)
 
static Nice::PrioThreadPoolPtr threadpool ()
 
static void startHeartbeat ()
 
static void startLogger ()
 
static void distribute (const Nice::JointPtr &_seed, bool _recursive=true)
 
static std::string fileByPath (const std::string _filename, bool _create=false)
 
static void destroyOnInterrupt ()
 
static void shutdownOnInterrupt ()
 
static void ignoreInterrupt ()
 
static void callbackOnInterrupt ()
 
static void holdInterrupt ()
 
static void releaseInterrupt ()
 
static bool interrupted ()
 
static void exit (int)
 
static const char * appName ()
 
static bool isInitialized ()
 
static void wait ()
 
static void shutdown (int _int=0)
 
static Ice::CommunicatorPtr communicator ()
 
static Ice::ObjectAdapterPtr adapter (const std::string &="")
 
static const Ice::ObjectPrx & addService (const std::string &_name, Ice::ObjectPtr &_object)
 
static JointPtr preinit ()
 
static JointPtr config (const std::string &_node="")
 
static Nice::JointPtr loadFile (const std::string &_filename)
 
static Nice::PrioThreadPoolPtr threadpool ()
 
static void startHeartbeat ()
 
static void startLogger ()
 
static void distribute (const Nice::JointPtr &_seed, bool _recursive=true)
 
static std::string fileByPath (const std::string _filename, bool _create=false)
 
static void destroyOnInterrupt ()
 
static void shutdownOnInterrupt ()
 
static void ignoreInterrupt ()
 
static void callbackOnInterrupt ()
 
static void holdInterrupt ()
 
static void releaseInterrupt ()
 
static bool interrupted ()
 
- Static Protected Member Functions inherited from Nice::Application
static int end (int)
 
static void setCtrlCCallback (IceUtil::CtrlCHandlerCallback)
 
static int end (int)
 
static void setCtrlCCallback (IceUtil::CtrlCHandlerCallback)
 

Detailed Description

An implementation of Presetting the derotator to the initial position.


Since
2017-04-12
Author
Richard J. Mathar

Constructor & Destructor Documentation

◆ LicsDrotPreset() [1/2]

Lics::LicsDrotPreset::LicsDrotPreset ( const Lics::LicsIIFSide s,
const Laos::LaosSeAOType g,
const std::string &  fname,
const Lics::LicsStar star,
const std::string  doSE 
)

Default constructor.


Parameters
sdxIndicator for the SX or DX side.
ghwsIndicator for the GWS or HWS side.
fnameThe name of the ASCII file with the LBTO star catalog.
sThe star catalog for the trajectory.
Since
2017-06-28
Author
Richard J. Mathar

◆ ~LicsDrotPreset() [1/2]

Lics::LicsDrotPreset::~LicsDrotPreset ( )

◆ LicsDrotPreset() [2/2]

Lics::LicsDrotPreset::LicsDrotPreset ( const Lics::LicsIIFSide sdx,
const Laos::LaosSeAOType ghws,
const std::string &  fnam,
const Lics::LicsStar star,
const std::string  doSE 
)

◆ ~LicsDrotPreset() [2/2]

Lics::LicsDrotPreset::~LicsDrotPreset ( )

Member Function Documentation

◆ run() [1/2]

int Lics::LicsDrotPreset::run ( int  argc,
char *  argv[] 
)
virtual

The function which will be called intermediatly through Application::start()


It tries to connect to laos.{sx|dx}.{hws|gws}.derotation.srv or lircs.moe.drot-svr and moves the motor to the high or low limit or an intermediate start position. Which of the two limits is addressed depends on the value set down at ctor time.

It waits up to 4 1/2 minutes until the IIF server indicates that the telescope has reached the target (no longer slewing but tracking) and then starts derotation.

Parameters
argcthe number of arguments (not removed by the TAN scanner)
argvthe arguments not removed by TAN.
Returns
An integer as a status value. 0 if successful.
Since
2017-04-12
2018-11-14 Include a backlash correction of the effective travel ranges..
Author
Richard J. Mathar

Implements Nice::Application.

◆ run() [2/2]

int Lics::LicsDrotPreset::run ( int  argc,
char *  argv[] 
)
virtual

Implements Nice::Application.

Member Data Documentation

◆ ghws

Laos::LaosSeAOType Lics::LicsDrotPreset::ghws

the GWS or HWS part of the SE arms


◆ scat

Lics::LicsStar Lics::LicsDrotPreset::scat

the target star (which implies a parallactic trajectory)


◆ scatfile

std::string Lics::LicsDrotPreset::scatfile

the name of the file with the star catalog


◆ sdx

Lics::LicsIIFSide Lics::LicsDrotPreset::sdx

the SX or DX side of the telescope


◆ seOpt

std::string Lics::LicsDrotPreset::seOpt

the argument of the -s option of licsPreset



The documentation for this class was generated from the following files: