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