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

Last change on this file since 18597 was 18530, checked in by tbretz, 8 years ago
Added a range check for the given source coordinates (0-24, -90-90)
File size: 1.9 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 kUnavailable, // IndraDrives not connected
14 kAvailable, // IndraDrives connected, but not in Af
15 kBlocked, // Drive blocked by manual operation of emergency button
16 kArmed, // IndraDrives Af, not yet initialized
17 kInitialized, // IndraDrives Af, initialized
18 kStopping,
19 kParking,
20 kMoving,
21 kTracking,
22 kOnTrack,
23
24 kPositioningFailed = /*StateMachineImp::kSM_Error*/0x100+1,
25 kAllowedRangeExceeded,
26 kInvalidCoordinates,
27 //kSpeedLimitExceeded,
28 };
29 };
30
31 struct DimPointing
32 {
33 } __attribute__((__packed__));
34
35 struct DimTracking
36 {
37 } __attribute__((__packed__));
38/*
39 struct DimStarguider
40 {
41 double fMissZd;
42 double fMissAz;
43
44 double fNominalZd;
45 double fNominalAz;
46
47 double fCenterX;
48 double fCenterY;
49
50 double fBrightness;
51
52 uint16_t fNumCorrelated;
53 uint16_t fNumLeds;
54 uint16_t fNumRings;
55 uint16_t fNumStars;
56
57 } __attribute__((__packed__));
58*/
59 struct DimTPoint
60 {
61 double fRa;
62 double fDec;
63
64 double fNominalZd;
65 double fNominalAz;
66
67 double fPointingZd;
68 double fPointingAz;
69
70 double fFeedbackZd;
71 double fFeedbackAz;
72
73 uint16_t fNumLeds;
74 uint16_t fNumRings;
75
76 double fCenterX;
77 double fCenterY;
78 double fCenterMag;
79
80 double fStarX;
81 double fStarY;
82 double fStarMag;
83
84 double fRotation;
85
86 double fDx;
87 double fDy;
88
89 double fRealMag;
90
91 } __attribute__((__packed__));
92};
93#endif
Note: See TracBrowser for help on using the repository browser.