FACT++  1.0
StateMachineDrive< T, S > Class Template Reference
+ Inheritance diagram for StateMachineDrive< T, S >:
+ Collaboration diagram for StateMachineDrive< T, S >:

Public Member Functions

 StateMachineDrive (ostream &out=cout)
 
void SetEndpoint (const string &url)
 
bool AddSource (const string &name, const Source &src)
 
void ReadDatabase (bool print=true)
 
int EvalOptions (Configuration &conf)
 
 StateMachineDrive (ostream &out=cout)
 
void SetEndpoint (const string &url)
 
bool AddSource (const string &name, const Source &src)
 
void ReadDatabase (bool print=true)
 
int EvalOptions (Configuration &conf)
 
- Public Member Functions inherited from StateMachineAsio< T >
 StateMachineAsio (std::ostream &out, const std::string &server)
 
void Stop (int code=0)
 

Private Types

enum  Coordinates { kPoint, kTrackSlow, kTrackFast }
 
typedef map< string, Sourcesources
 
typedef map< string, Sourcesources
 

Private Member Functions

bool CheckEventSize (size_t has, const char *name, size_t size)
 
string AngleToStr (double angle)
 
int SendCommand (const string &str)
 
int TrackCelest (const string &cmd, const string &source)
 
int Park ()
 
int SendStop ()
 
int Resume ()
 
int SendCoordinates (const EventImp &evt, const Coordinates type)
 
int StartWobble (const double &srcra, const double &srcdec, const double &woboff, const double &wobang, const string name="")
 
int Wobble (const EventImp &evt)
 
const sources::const_iterator GetSourceFromDB (const char *ptr, const char *last)
 
int TrackWobble (const EventImp &evt)
 
int StartTrackWobble (const char *ptr, size_t size, const double &offset=0, const double &angle=0)
 
int Track (const EventImp &evt)
 
int TrackOn (const EventImp &evt)
 
int TakeTPoint (const EventImp &evt)
 
int SetLedBrightness (const EventImp &evt)
 
int SetVerbosity (const EventImp &evt)
 
int SetAutoResume (const EventImp &evt)
 
int Unlock ()
 
int Print ()
 
int ReloadSources ()
 
int Disconnect ()
 
int Reconnect (const EventImp &evt)
 
int Execute ()
 
bool CheckEventSize (size_t has, const char *name, size_t size)
 
int HandleWeatherData (const EventImp &evt)
 
int HandleTPoint (const EventImp &evt)
 
double GetDevAbs (double nomzd, double meszd, double devaz)
 
double ReadAngle (istream &in)
 
bool CheckRange (ZdAz pos)
 
PointingData CalcPointingPos (double mjd)
 
int RequestSdo (const EventImp &evt)
 
int SendSdo (const EventImp &evt)
 
int InitMovement (const ZdAz &sky, bool tracking=false, const string &name="")
 
int MoveTo (const EventImp &evt)
 
int InitTracking ()
 
int StartTracking (const Source &src, double offset, double angle, double period=0)
 
int TrackCelest (const Planets_t &p)
 
int Park ()
 
int Wobble (const EventImp &evt)
 
int Orbit (const EventImp &evt)
 
const sources::const_iterator GetSourceFromDB (const char *ptr, const char *last)
 
int TrackWobble (const EventImp &evt)
 
int StartTrackWobble (const char *ptr, size_t size, const double &offset=0, const double &angle=0, double time=0)
 
int Track (const EventImp &evt)
 
int TrackSource (const EventImp &evt)
 
int TrackOn (const EventImp &evt)
 
int TrackOrbit (const EventImp &evt)
 
int StopMovement ()
 
int ResetError ()
 
int TPoint ()
 
int Screenshot (const EventImp &evt)
 
int SetLedBrightness (const EventImp &evt)
 
int SetLedsOff ()
 
int SetVerbosity (const EventImp &evt)
 
int Print ()
 
int Unlock ()
 
int ReloadSources ()
 
int Disconnect ()
 
int Reconnect (const EventImp &evt)
 
int UpdateTrackingPosition ()
 
void UpdatePointingPosition ()
 
void TrackingLoop (const boost::system::error_code &error=boost::system::error_code())
 
int CheckState ()
 
int Execute ()
 

Private Attributes

fDrive
 
string fDatabase
 
sources fSources
 
string fLastCommand
 
int fAutoResume
 
Time fAutoResumeTime
 
Time fSunRise
 
ba::deadline_timer fTrackingLoop
 
Weather fWeather
 
uint16_t fWeatherTimeout
 
ZdAz fParkingPos
 
PointingModel fPointingModel
 
PointingSetup fPointingSetup
 
Encoder fMovementTarget
 
Encoder fPointingMin
 
Encoder fPointingMax
 
uint16_t fDeviationLimit
 
uint16_t fDeviationCounter
 
uint16_t fDeviationMax
 
vector< double > fDevBuffer
 
uint64_t fDevCount
 
uint64_t fTrackingCounter
 
uint16_t fStep
 
bool fIsTracking
 
Acceleration fAccPointing
 
Acceleration fAccTracking
 
Acceleration fAccMax
 
double fMaxPointingResidual
 
double fPointingVelocity
 

Detailed Description

template<class T, class S>
class StateMachineDrive< T, S >

Definition at line 784 of file cosyctrl.cc.


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