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 |
|
---|
14 | class SlaStars;
|
---|
15 |
|
---|
16 | class MTracking : public MPointing, public MThread
|
---|
17 | {
|
---|
18 | private:
|
---|
19 | Float_t fTrackAcc;
|
---|
20 | Float_t fTrackDec;
|
---|
21 |
|
---|
22 | ZdAz fOffset; // Offset between se and re coordinate system [re]
|
---|
23 |
|
---|
24 | MLog *fOut;
|
---|
25 |
|
---|
26 | bool RequestRePos();
|
---|
27 | bool SetVelocity(const ZdAz &v);
|
---|
28 | bool LimitSpeed(ZdAz *vt, const SlaStars &sla) const;
|
---|
29 | bool InitTracking();
|
---|
30 | //void StopTracking();
|
---|
31 |
|
---|
32 | void *Thread();
|
---|
33 |
|
---|
34 | public:
|
---|
35 | MTracking(MCosy *cosy, const Log &log) : MPointing(cosy, log), MThread(kFALSE), fTrackAcc(0.1), fTrackDec(0.1), fOut(0) { }
|
---|
36 |
|
---|
37 | void TrackPosition(const RaDec &dst); // ra, dec [rad]
|
---|
38 | void SetTrackAccDec(Float_t acc, Float_t dec) { fTrackAcc=0.1; fTrackDec=0.1; }
|
---|
39 |
|
---|
40 | void SetOut(MLog *fout) { fOut = fout; }
|
---|
41 | //void TalkThreadTracking();
|
---|
42 |
|
---|
43 | ClassDef(MTracking, 0)
|
---|
44 | };
|
---|
45 |
|
---|
46 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.