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

An implementation of the Nice crawler for DROT. More...

#include <LicsDrotQuery.h>

Inheritance diagram for Lics::LicsDrotQuery:
Inheritance graph
Collaboration diagram for Lics::LicsDrotQuery:
Collaboration graph

Public Member Functions

 LicsDrotQuery (bool ask4Kfp)
 Default constructor. More...
 
 ~LicsDrotQuery ()
 dtor Ensures that the ICE interface is properly closed. More...
 
int run (int argc, char *argv[])
 The function which will be called intermediatly through Application::start() More...
 
 LicsDrotQuery (bool ask4Kfp)
 
 ~LicsDrotQuery ()
 
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

double pang
 parallactic angle in radians. The angle obtained most recently from the server. More...
 
double mang
 nominal motor angle in radians. The angle most recently obtained from the server. More...
 
Nice::SeqPoint kfpList
 The list of KFP coordinates (mm). This remains empty if the ctor flag said this should not be read fromthe IIF. More...
 
lbto::SeqPos2 scat
 The star catalogue within the IIF. The LN star catalog is usually forwarded to the IIF with the preset command, but this is unreliable because the telescope operator may at any time issue "manually" other pointing operations. More...
 
bool queryKfp
 Flag to indicate whether the IIF should be asked for the KFP coordinates. 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 the Nice crawler for DROT.


Since
2017-03-20
Author
Richard J. Mathar

Constructor & Destructor Documentation

◆ LicsDrotQuery() [1/2]

Lics::LicsDrotQuery::LicsDrotQuery ( bool  ask4Kfp)

Default constructor.


This sets the two angles to 9999 degrees, indicating that they are currently invalid.

Parameters
[in]ask4Kfpif true request that the IIF calculates the KFP coordinates.
Since
2017-03-20
Author
Richard J. Mathar

◆ ~LicsDrotQuery() [1/2]

Lics::LicsDrotQuery::~LicsDrotQuery ( )

dtor Ensures that the ICE interface is properly closed.


◆ LicsDrotQuery() [2/2]

Lics::LicsDrotQuery::LicsDrotQuery ( bool  ask4Kfp)

◆ ~LicsDrotQuery() [2/2]

Lics::LicsDrotQuery::~LicsDrotQuery ( )

Member Function Documentation

◆ run() [1/2]

int Lics::LicsDrotQuery::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 and to retrieve the parallactic and nominal motor angle that have been stored by the derotation service when it started. The two angles are stored in some member variables for further retrieval by some client.

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

Implements Nice::Application.

◆ run() [2/2]

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

Implements Nice::Application.

Member Data Documentation

◆ kfpList

Nice::SeqPoint Lics::LicsDrotQuery::kfpList

The list of KFP coordinates (mm). This remains empty if the ctor flag said this should not be read fromthe IIF.


◆ mang

double Lics::LicsDrotQuery::mang

nominal motor angle in radians. The angle most recently obtained from the server.


◆ pang

double Lics::LicsDrotQuery::pang

parallactic angle in radians. The angle obtained most recently from the server.


◆ queryKfp

bool Lics::LicsDrotQuery::queryKfp

Flag to indicate whether the IIF should be asked for the KFP coordinates.


◆ scat

lbto::SeqPos2 Lics::LicsDrotQuery::scat

The star catalogue within the IIF. The LN star catalog is usually forwarded to the IIF with the preset command, but this is unreliable because the telescope operator may at any time issue "manually" other pointing operations.



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