source: trunk/MagicSoft/Cosy/main/MTracking.h@ 9445

Last change on this file since 9445 was 9132, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 774 bytes
Line 
1#ifndef COSY_MTracking
2#define COSY_MTracking
3
4#ifndef COSY_MSlewing
5#include "MSlewing.h"
6#endif
7
8#ifndef MARS_MThread
9#include "MThread.h"
10#endif
11
12class MLog;
13class RaDec;
14class SlaStars;
15
16class MTracking : public MSlewing, public MThread
17{
18private:
19 ZdAz fTrackAcc;
20
21 MLog *fOut;
22
23 bool SetVelocity(const ZdAz &v);
24 bool LimitSpeed(const ZdAz &vt, const SlaStars &sla) const;
25 bool InitTracking();
26
27 Int_t Thread();
28
29public:
30 MTracking(MCosy *cosy) : MSlewing(cosy), MThread("MTracking"), fTrackAcc(0, 0), fOut(0) { }
31
32 void TrackPosition(const RaDec &dst); // ra, dec [rad]
33 void SetTrackAcc(Float_t zd, Float_t az) { fTrackAcc.Zd(zd); fTrackAcc.Az(az); }
34
35 void SetOut(MLog *fout) { fOut = fout; }
36
37 ClassDef(MTracking, 0)
38};
39
40#endif
Note: See TracBrowser for help on using the repository browser.