source: trunk/MagicSoft/Cosy/main/MSlewing.h@ 8817

Last change on this file since 8817 was 8815, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 778 bytes
Line 
1#ifndef COSY_MSlewing
2#define COSY_MSlewing
3
4#ifndef MARS_MLog
5#include "MLog.h"
6#endif
7
8class Macs;
9class MCosy;
10class ZdAz;
11
12class MSlewing : public MLog
13{
14protected:
15 MCosy *fCosy;
16
17 bool SetAccDec(Macs *mac, Float_t acc, Float_t dec);
18 bool Break();
19
20private:
21 Float_t fVel;
22 Float_t fAcc;
23 Float_t fDec;
24
25 void DoRelPos(const ZdAz &rd, const Bool_t axe1, const Bool_t axe2);
26 void SetPosVelocity(const Float_t ratio, Float_t vel);
27
28public:
29 MSlewing(MCosy *cosy) : fCosy(cosy), fVel(0.1), fAcc(0.2), fDec(0.1) { }
30
31 void SetPointAccDec(Float_t acc, Float_t dec) { fAcc = acc; fDec = dec; }
32 void SetPointVelocity(Float_t vel) { fVel = vel; }
33 int SetPosition(const ZdAz &dst, Bool_t track=kFALSE);
34
35 ClassDef(MSlewing, 0)
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.