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

Last change on this file since 9517 was 9516, checked in by tbretz, 15 years ago
*** empty log message ***
File size: 1.0 KB
Line 
1#ifndef COSY_MTracking
2#define COSY_MTracking
3
4#ifndef COSY_MSlewing
5#include "MSlewing.h"
6#endif
7
8#ifndef COSY_SlaPlanets
9#include "SlaPlanets.h"
10#endif
11
12#ifndef MARS_MThread
13#include "MThread.h"
14#endif
15
16class MLog;
17class RaDec;
18class SlaStars;
19
20class MTracking : public MSlewing, public MThread
21{
22private:
23 SlaPlanets fSlalib;
24
25 ZdAz fTrackAcc;
26
27 Int_t fTrackType;
28 RaDec fTrackPos;
29
30 MLog *fOut;
31
32 void UpdateSlalib(SlaPlanets &sla);
33 void UpdateSlalib(Double_t dt);
34 void UpdateSlalib(SlaPlanets &sla, Double_t mjd);
35
36 bool SetVelocity(const ZdAz &v);
37 bool LimitSpeed(const ZdAz &vt) const;
38 bool InitTracking();
39 bool Move();
40 void Track();
41
42 Int_t Thread();
43
44public:
45 MTracking(MCosy *cosy);
46
47 void TrackPosition(const RaDec &dst); // ra, dec [rad]
48 void TrackPlanet(ePlanets_t planet); // ra, dec [rad]
49 void SetTrackAcc(Float_t zd, Float_t az) { fTrackAcc.Zd(zd); fTrackAcc.Az(az); }
50
51 void SetOut(MLog *fout) { fOut = fout; }
52
53 ClassDef(MTracking, 0)
54};
55
56#endif
Note: See TracBrowser for help on using the repository browser.