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

An implementation of Presetting the Telescope. More...

#include <LicsTcsPreset.h>

Inheritance diagram for Lics::LicsTcsPreset:
Inheritance graph
Collaboration diagram for Lics::LicsTcsPreset:
Collaboration graph

Public Member Functions

 LicsTcsPreset (const Lics::LicsStarcat &cat)
 constructor preparing for a preset. More...
 
 LicsTcsPreset (const double offRA, const double offDEC, const Lics::LicsIIFSide sdx)
 Constructor in prepration of an offset. More...
 
 ~LicsTcsPreset ()
 
int run (int argc, char *argv[])
 The function which will be called intermediatly through Application::start() More...
 
 LicsTcsPreset (const Lics::LicsStarcat &cat)
 
 LicsTcsPreset (const double offRA, const double offDEC, const Lics::LicsIIFSide sdx)
 
 ~LicsTcsPreset ()
 
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

lbto::SeqPos2 sc
 That star catalogue to be rendered into TCS positions. More...
 

Protected Attributes

double deltaRa
 offset in right ascension (radians) of the forthcoming offsetpointing command This contains already the cosine(delta) factor, as usual in (modern) proper motion catalogs. More...
 
double deltaDec
 offset in declination (radians) of the forthcoming offsetpointing command More...
 
Lics::LicsIIFSide sid
 side of the offset (sx, dx or both) 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 Telescope.


Since
2017-05-28
Author
Richard J. Mathar

Constructor & Destructor Documentation

◆ LicsTcsPreset() [1/4]

Lics::LicsTcsPreset::LicsTcsPreset ( const Lics::LicsStarcat cat)

constructor preparing for a preset.


Parameters
catThe star catalogue that contains the main target and AO stars.
Since
2017-05-28
Author
Richard J. Mathar

◆ LicsTcsPreset() [2/4]

Lics::LicsTcsPreset::LicsTcsPreset ( const double  offRA,
const double  offDEC,
const Lics::LicsIIFSide  sdx 
)

Constructor in prepration of an offset.


Parameters
offRaThe offset in RA*cos(dec) (radians)
offDecThe offset in DEC (radians)
Since
2018-07-03
Author
Richard J. Mathar

◆ ~LicsTcsPreset() [1/2]

Lics::LicsTcsPreset::~LicsTcsPreset ( )

◆ LicsTcsPreset() [3/4]

Lics::LicsTcsPreset::LicsTcsPreset ( const Lics::LicsStarcat cat)

◆ LicsTcsPreset() [4/4]

Lics::LicsTcsPreset::LicsTcsPreset ( const double  offRA,
const double  offDEC,
const Lics::LicsIIFSide  sdx 
)

◆ ~LicsTcsPreset() [2/2]

Lics::LicsTcsPreset::~LicsTcsPreset ( )

Member Function Documentation

◆ run() [1/2]

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

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


It either submits the star catalogue to the setPresetTelescope function of the iif or iifDummyLocalhost server or submits the offsets in ra and dec.

Returns
An integer as a status value. 0 if successful.
Since
2017-05-28
Author
Richard J. Mathar

Implements Nice::Application.

◆ run() [2/2]

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

Implements Nice::Application.

Member Data Documentation

◆ deltaDec

double Lics::LicsTcsPreset::deltaDec
protected

offset in declination (radians) of the forthcoming offsetpointing command


Since
2018-07-03

◆ deltaRa

double Lics::LicsTcsPreset::deltaRa
protected

offset in right ascension (radians) of the forthcoming offsetpointing command This contains already the cosine(delta) factor, as usual in (modern) proper motion catalogs.


Since
2018-07-03

◆ sc

lbto::SeqPos2 Lics::LicsTcsPreset::sc

That star catalogue to be rendered into TCS positions.


◆ sid

Lics::LicsIIFSide Lics::LicsTcsPreset::sid
protected

side of the offset (sx, dx or both)


Since
2018-07-03

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