Line | |
---|
1 | #ifndef COSY_MTracking
|
---|
2 | #define COSY_MTracking
|
---|
3 |
|
---|
4 | #include "coord.h"
|
---|
5 |
|
---|
6 | #ifndef COSY_MSlewing
|
---|
7 | #include "MSlewing.h"
|
---|
8 | #endif
|
---|
9 |
|
---|
10 | #ifndef MARS_MThread
|
---|
11 | #include "MThread.h"
|
---|
12 | #endif
|
---|
13 |
|
---|
14 | class SlaStars;
|
---|
15 |
|
---|
16 | class MTracking : public MSlewing, public MyThreadX
|
---|
17 | {
|
---|
18 | private:
|
---|
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 |
|
---|
43 | public:
|
---|
44 | MTracking(MCosy *cosy) : MSlewing(cosy), MyThreadX("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.