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

Last change on this file since 8856 was 8847, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 1.1 KB
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 RaDec;
13class SlaStars;
14
15class MTracking : public MSlewing, public MThread
16{
17private:
18 Float_t fTrackAcc;
19 Float_t fTrackDec;
20
21 //Int_t fSePosZd1;
22 //Int_t fSePosZd2;
23 //Int_t fSePosAz;
24
25 //Int_t fRePosZd1;
26 //Int_t fRePosZd2;
27 //Int_t fRePosAz;
28
29 //ZdAz fRePos; // Offset between se and re coordinate system [re]
30 //ZdAz fSePos; // Shaftencoder Position
31
32 MLog *fOut;
33
34 bool RequestRePos();
35 bool SetVelocity(const ZdAz &v);
36 bool LimitSpeed(ZdAz *vt, const SlaStars &sla) const;
37 bool InitTracking();
38 ZdAz GetPointingPosRE(Bool_t pdo=kFALSE) const;
39
40 Int_t Thread();
41
42public:
43 MTracking(MCosy *cosy) : MSlewing(cosy), MThread("MTracking"), fTrackAcc(0.1), fTrackDec(0.1), fOut(0) { }
44
45 void TrackPosition(const RaDec &dst); // ra, dec [rad]
46 void SetTrackAccDec(Float_t acc, Float_t dec) { fTrackAcc=0.1; fTrackDec=0.1; }
47
48 void SetOut(MLog *fout) { fOut = fout; }
49
50 ClassDef(MTracking, 0)
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.