| 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 |
|
|---|
| 12 | class MLog;
|
|---|
| 13 | class RaDec;
|
|---|
| 14 | class SlaStars;
|
|---|
| 15 |
|
|---|
| 16 | class MTracking : public MSlewing, public MThread
|
|---|
| 17 | {
|
|---|
| 18 | private:
|
|---|
| 19 | ZdAz fTrackAcc;
|
|---|
| 20 |
|
|---|
| 21 | MLog *fOut;
|
|---|
| 22 |
|
|---|
| 23 | bool SetVelocity(const ZdAz &v);
|
|---|
| 24 | bool LimitSpeed(const ZdAz &vt, const SlaStars &sla) const;
|
|---|
| 25 | bool InitTracking();
|
|---|
| 26 |
|
|---|
| 27 | Int_t Thread();
|
|---|
| 28 |
|
|---|
| 29 | public:
|
|---|
| 30 | MTracking(MCosy *cosy) : MSlewing(cosy), MThread("MTracking"), fTrackAcc(0, 0), fOut(0) { }
|
|---|
| 31 |
|
|---|
| 32 | void TrackPosition(const RaDec &dst); // ra, dec [rad]
|
|---|
| 33 | void SetTrackAcc(Float_t zd, Float_t az) { fTrackAcc.Zd(zd); fTrackAcc.Az(az); }
|
|---|
| 34 |
|
|---|
| 35 | void SetOut(MLog *fout) { fOut = fout; }
|
|---|
| 36 |
|
|---|
| 37 | ClassDef(MTracking, 0)
|
|---|
| 38 | };
|
|---|
| 39 |
|
|---|
| 40 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.