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

Last change on this file since 9005 was 8875, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 928 bytes
Line 
1#ifndef COSY_MSlewing
2#define COSY_MSlewing
3
4#ifndef ROOT_TROOT
5#include <TROOT.h>
6#endif
7
8class Macs;
9class MCosy;
10class ZdAz;
11
12class MSlewing
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 Float_t fMaxResidual; // [rev] Maximum residual deviation to stop pointin
26
27 void DoRelPos(const ZdAz &rd, const Bool_t axe1, const Bool_t axe2);
28 void SetPosVelocity(const Float_t ratio, Float_t vel);
29
30public:
31 MSlewing(MCosy *cosy) : fCosy(cosy), fVel(0.1), fAcc(0.2), fDec(0.1), fMaxResidual(1./16384) { }
32
33 void SetPointAccDec(Float_t acc, Float_t dec) { fAcc = acc; fDec = dec; }
34 void SetPointVelocity(Float_t vel) { fVel = vel; }
35 int SetPosition(const ZdAz &dst, Bool_t track=kFALSE);
36 void SetMaxResidual(Float_t ac) { fMaxResidual = ac; }
37
38 ClassDef(MSlewing, 0)
39};
40
41#endif
Note: See TracBrowser for help on using the repository browser.