| Line | |
|---|
| 1 | #ifndef COSY_MSlewing
|
|---|
| 2 | #define COSY_MSlewing
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MLog
|
|---|
| 5 | #include "MLog.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class Macs;
|
|---|
| 9 | class MCosy;
|
|---|
| 10 | class ZdAz;
|
|---|
| 11 |
|
|---|
| 12 | class MSlewing : public MLog
|
|---|
| 13 | {
|
|---|
| 14 | protected:
|
|---|
| 15 | MCosy *fCosy;
|
|---|
| 16 |
|
|---|
| 17 | bool SetAccDec(Macs *mac, Float_t acc, Float_t dec);
|
|---|
| 18 | bool Break();
|
|---|
| 19 |
|
|---|
| 20 | private:
|
|---|
| 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 |
|
|---|
| 28 | public:
|
|---|
| 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.