source: trunk/FACT++/src/HeadersDrive.h@ 14084

Last change on this file since 14084 was 14018, checked in by tbretz, 12 years ago
Added automatic parking if sun-rise has been passed and a locked state to ensure that no other command will be accepted for example from a running script.
File size: 1.3 KB
Line 
1#ifndef FACT_HeadersDrive
2#define FACT_HeadersDrive
3
4namespace Drive
5{
6 namespace State
7 {
8 enum states_t
9 {
10 kDisconnected = 1,
11 kConnected,
12 kLocked,
13 kNotReady,
14 kReady,
15 kArmed,
16 kMoving,
17 kTracking,
18 };
19 };
20
21 struct DimPointing
22 {
23 } __attribute__((__packed__));
24
25 struct DimTracking
26 {
27 } __attribute__((__packed__));
28
29 struct DimStarguider
30 {
31 double fMissZd;
32 double fMissAz;
33
34 double fNominalZd;
35 double fNominalAz;
36
37 double fCenterX;
38 double fCenterY;
39
40 double fBrightness;
41
42 uint16_t fNumCorrelated;
43 uint16_t fNumLeds;
44 uint16_t fNumRings;
45 uint16_t fNumStars;
46
47 } __attribute__((__packed__));
48
49 struct DimTPoint
50 {
51 double fRa;
52 double fDec;
53
54 double fNominalZd;
55 double fNominalAz;
56
57 double fPointingZd;
58 double fPointingAz;
59
60 double fFeedbackZd;
61 double fFeedbackAz;
62
63 uint16_t fNumLeds;
64 uint16_t fNumRings;
65
66 double fCenterX;
67 double fCenterY;
68 double fCenterMag;
69
70 double fStarX;
71 double fStarY;
72 double fStarMag;
73
74 double fRealMag;
75
76 } __attribute__((__packed__));
77};
78#endif
Note: See TracBrowser for help on using the repository browser.