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

Last change on this file since 4823 was 4076, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 868 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 };
35
36 MDriveCom(MsgQueue *q, MLog &out=gLog) : MCeCoCom("DRIVE-REPORT", out), fQueue(q) {}
37
38 bool SendReport(UInt_t stat, RaDec rd, ZdAz so, ZdAz is, ZdAz er);
39 bool SendStatus(const char *stat);
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.