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

Last change on this file since 6893 was 6841, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.1 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
28public:
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);
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.