| 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 | bool CommandPREPS(TString &str);
|
|---|
| 28 | bool CommandARM(TString &str);
|
|---|
| 29 |
|
|---|
| 30 | public:
|
|---|
| 31 | enum
|
|---|
| 32 | {
|
|---|
| 33 | kError = 0x01,
|
|---|
| 34 | kMoving = 0x02,
|
|---|
| 35 | kTracking = 0x04,
|
|---|
| 36 | kStopping = 0x08,
|
|---|
| 37 | kStopped = 0x10,
|
|---|
| 38 | kStandby = 0x20,
|
|---|
| 39 | kMonitoring = 0x40
|
|---|
| 40 | };
|
|---|
| 41 |
|
|---|
| 42 | MDriveCom(MsgQueue *q, MLog &out=gLog) : MCeCoCom("DRIVE-REPORT", out), fQueue(q) {}
|
|---|
| 43 |
|
|---|
| 44 | bool SendReport(UInt_t stat, RaDec rd, ZdAz so, ZdAz is, ZdAz er);
|
|---|
| 45 | 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);
|
|---|
| 46 | bool SendStatus(const char *stat);
|
|---|
| 47 | };
|
|---|
| 48 |
|
|---|
| 49 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.