source: trunk/MagicSoft/Cosy/tcpip/MDriveCom.h@ 7788

Last change on this file since 7788 was 7788, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef COSY_MDriveCom
2#define COSY_MDriveCom
3
4#ifndef COSY_MCeCoCom
5#include "MCeCoCom.h"
6#endif
7
8class RaDec;
9class ZdAz;
10class MsgQueue;
11class Ring;
12
13class MDriveCom : public MCeCoCom
14{
15private:
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
30public:
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.