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

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