Line | |
---|
1 | #ifndef COSY_MDriveCom
|
---|
2 | #define COSY_MDriveCom
|
---|
3 |
|
---|
4 | #ifndef COSY_MCeCoCom
|
---|
5 | #include "MCeCoCom.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class RaDec;
|
---|
9 | class ZdAz;
|
---|
10 | class MsgQueue;
|
---|
11 |
|
---|
12 | class MDriveCom : public MCeCoCom
|
---|
13 | {
|
---|
14 | private:
|
---|
15 | MsgQueue *fQueue;
|
---|
16 |
|
---|
17 | bool ReadAngle(TString &str, Double_t &d);
|
---|
18 | bool ReadPosition(TString &str, Double_t &d1, Double_t &d2);
|
---|
19 |
|
---|
20 | bool InterpreteCmd(TString cmd, TString str);
|
---|
21 | void Print(TString &str, Double_t deg) const;
|
---|
22 |
|
---|
23 | bool CommandRADEC(TString &str);
|
---|
24 | bool CommandZDAZ(TString &str);
|
---|
25 |
|
---|
26 | public:
|
---|
27 | enum
|
---|
28 | {
|
---|
29 | kError = 0x01,
|
---|
30 | kMoving = 0x02,
|
---|
31 | kTracking = 0x04,
|
---|
32 | kStopping = 0x08,
|
---|
33 | kStopped = 0x10
|
---|
34 | };
|
---|
35 |
|
---|
36 | MDriveCom(MsgQueue *q, MLog &out=gLog) : MCeCoCom("DRIVE-REPORT", out), fQueue(q) {}
|
---|
37 |
|
---|
38 | bool SendReport(UInt_t stat, RaDec rd, ZdAz so, ZdAz is, ZdAz er);
|
---|
39 | bool SendStatus(const char *stat);
|
---|
40 | };
|
---|
41 |
|
---|
42 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.