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 | class Ring;
|
---|
12 | class MLog;
|
---|
13 |
|
---|
14 | class MDriveCom : public MCeCoCom
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | MsgQueue *fQueue;
|
---|
18 |
|
---|
19 | bool ReadAngle(TString &str, Double_t &d);
|
---|
20 | bool ReadPosition(TString &str, Double_t &d1, Double_t &d2);
|
---|
21 |
|
---|
22 | bool InterpreteCmd(TString cmd, TString str);
|
---|
23 | void Print(TString &str, Double_t deg) const;
|
---|
24 |
|
---|
25 | bool CommandRADEC(TString &str);
|
---|
26 | bool CommandGRB(TString &str);
|
---|
27 | bool CommandZDAZ(TString &str);
|
---|
28 | bool CommandPREPS(TString &str);
|
---|
29 | bool CommandARM(TString &str);
|
---|
30 |
|
---|
31 | public:
|
---|
32 | enum
|
---|
33 | {
|
---|
34 | kError = 0x01,
|
---|
35 | kMoving = 0x02,
|
---|
36 | kTracking = 0x04,
|
---|
37 | kStopping = 0x08,
|
---|
38 | kStopped = 0x10,
|
---|
39 | kStandby = 0x20,
|
---|
40 | kMonitoring = 0x40
|
---|
41 | };
|
---|
42 |
|
---|
43 | MDriveCom(MsgQueue *q, MLog *out) : MCeCoCom(out), fQueue(q) {}
|
---|
44 |
|
---|
45 | bool SendReport(UInt_t stat, RaDec rd, ZdAz so, ZdAz is, ZdAz er);
|
---|
46 | bool SendStargReport(UInt_t stat, ZdAz miss, ZdAz nompos, Ring center, Int_t num, Int_t n, Double_t bright, Double_t mjd, Double_t x, Double_t y);
|
---|
47 | bool SendStatus(const char *stat);
|
---|
48 | };
|
---|
49 |
|
---|
50 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.