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

Last change on this file since 5569 was 4865, checked in by rwagner, 20 years ago
*** empty log message ***
File size: 971 bytes
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;
11
12class MDriveCom : public MCeCoCom
13{
14private:
15 MsgQueue *fQueue;
16
17 bool ReadAngle(TString &str, Double_t &d);
18 bool ReadPosition(TString &str, Double_t &d1, Double_t &d2);
19
20 bool InterpreteCmd(TString cmd, TString str);
21 void Print(TString &str, Double_t deg) const;
22
23 bool CommandRADEC(TString &str);
24 bool CommandZDAZ(TString &str);
25
26public:
27 enum
28 {
29 kError = 0x01,
30 kMoving = 0x02,
31 kTracking = 0x04,
32 kStopping = 0x08,
33 kStopped = 0x10,
34 kStandby = 0x20,
35 kMonitoring = 0x40
36 };
37
38 MDriveCom(MsgQueue *q, MLog &out=gLog) : MCeCoCom("DRIVE-REPORT", out), fQueue(q) {}
39
40 bool SendReport(UInt_t stat, RaDec rd, ZdAz so, ZdAz is, ZdAz er);
41 bool SendStargReport(UInt_t stat, ZdAz miss);
42 bool SendStatus(const char *stat);
43};
44
45#endif
46
47
48
49
50
51
52
53
54
55
56
Note: See TracBrowser for help on using the repository browser.