TwiceAsNice
2019-02-18
|
An implementation of Presetting the derotator to the initial position. More...
#include <LicsDrotPreset.h>
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[]) |
![]() | |
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 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) |
An implementation of Presetting the derotator to the initial position.
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.
sdx | Indicator for the SX or DX side. |
ghws | Indicator for the GWS or HWS side. |
fname | The name of the ASCII file with the LBTO star catalog. |
s | The star catalog for the trajectory. |
Lics::LicsDrotPreset::~LicsDrotPreset | ( | ) |
Lics::LicsDrotPreset::LicsDrotPreset | ( | const Lics::LicsIIFSide & | sdx, |
const Laos::LaosSeAOType & | ghws, | ||
const std::string & | fnam, | ||
const Lics::LicsStar & | star, | ||
const std::string | doSE | ||
) |
Lics::LicsDrotPreset::~LicsDrotPreset | ( | ) |
|
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.
argc | the number of arguments (not removed by the TAN scanner) |
argv | the arguments not removed by TAN. |
Implements Nice::Application.
|
virtual |
Implements Nice::Application.
Laos::LaosSeAOType Lics::LicsDrotPreset::ghws |
the GWS or HWS part of the SE arms
Lics::LicsStar Lics::LicsDrotPreset::scat |
the target star (which implies a parallactic trajectory)
std::string Lics::LicsDrotPreset::scatfile |
the name of the file with the star catalog
Lics::LicsIIFSide Lics::LicsDrotPreset::sdx |
the SX or DX side of the telescope
std::string Lics::LicsDrotPreset::seOpt |
the argument of the -s option of licsPreset