TwiceAsNice
2019-02-18
|
An implementation of the Nice crawler for DROT. More...
#include <LicsDrotQuery.h>
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[]) |
![]() | |
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 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 int | end (int) |
static void | setCtrlCCallback (IceUtil::CtrlCHandlerCallback) |
static int | end (int) |
static void | setCtrlCCallback (IceUtil::CtrlCHandlerCallback) |
Lics::LicsDrotQuery::LicsDrotQuery | ( | bool | ask4Kfp | ) |
Default constructor.
This sets the two angles to 9999 degrees, indicating that they are currently invalid.
[in] | ask4Kfp | if true request that the IIF calculates the KFP coordinates. |
Lics::LicsDrotQuery::~LicsDrotQuery | ( | ) |
dtor Ensures that the ICE interface is properly closed.
Lics::LicsDrotQuery::LicsDrotQuery | ( | bool | ask4Kfp | ) |
Lics::LicsDrotQuery::~LicsDrotQuery | ( | ) |
|
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.
Implements Nice::Application.
|
virtual |
Implements Nice::Application.
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.
double Lics::LicsDrotQuery::mang |
nominal motor angle in radians. The angle most recently obtained from the server.
double Lics::LicsDrotQuery::pang |
parallactic angle in radians. The angle obtained most recently from the server.
bool Lics::LicsDrotQuery::queryKfp |
Flag to indicate whether the IIF should be asked for the KFP coordinates.
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.