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

Last change on this file since 6601 was 4105, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef COSY_MTracking
2#define COSY_MTracking
3
4#include "coord.h"
5
6#ifndef COSY_MPointing
7#include "MPointing.h"
8#endif
9
10#ifndef COSY_MThread
11#include "MThread.h"
12#endif
13
14class SlaStars;
15
16class MTracking : public MPointing, 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 void *Thread();
42
43public:
44 MTracking(MCosy *cosy, const Log &log) : MPointing(cosy, log), MThread(kFALSE), 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.