Last change
on this file since 19102 was 18804, checked in by tbretz, 8 years ago |
Added a hardware error and a hardware warning.
|
File size:
2.0 KB
|
Line | |
---|
1 | #ifndef FACT_HeadersDrive
|
---|
2 | #define FACT_HeadersDrive
|
---|
3 |
|
---|
4 | namespace 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 | kHardwareWarning = 0x1ff,
|
---|
30 | kHardwareError,
|
---|
31 | };
|
---|
32 | };
|
---|
33 |
|
---|
34 | struct DimPointing
|
---|
35 | {
|
---|
36 | } __attribute__((__packed__));
|
---|
37 |
|
---|
38 | struct DimTracking
|
---|
39 | {
|
---|
40 | } __attribute__((__packed__));
|
---|
41 | /*
|
---|
42 | struct DimStarguider
|
---|
43 | {
|
---|
44 | double fMissZd;
|
---|
45 | double fMissAz;
|
---|
46 |
|
---|
47 | double fNominalZd;
|
---|
48 | double fNominalAz;
|
---|
49 |
|
---|
50 | double fCenterX;
|
---|
51 | double fCenterY;
|
---|
52 |
|
---|
53 | double fBrightness;
|
---|
54 |
|
---|
55 | uint16_t fNumCorrelated;
|
---|
56 | uint16_t fNumLeds;
|
---|
57 | uint16_t fNumRings;
|
---|
58 | uint16_t fNumStars;
|
---|
59 |
|
---|
60 | } __attribute__((__packed__));
|
---|
61 | */
|
---|
62 | struct DimTPoint
|
---|
63 | {
|
---|
64 | double fRa;
|
---|
65 | double fDec;
|
---|
66 |
|
---|
67 | double fNominalZd;
|
---|
68 | double fNominalAz;
|
---|
69 |
|
---|
70 | double fPointingZd;
|
---|
71 | double fPointingAz;
|
---|
72 |
|
---|
73 | double fFeedbackZd;
|
---|
74 | double fFeedbackAz;
|
---|
75 |
|
---|
76 | uint16_t fNumLeds;
|
---|
77 | uint16_t fNumRings;
|
---|
78 |
|
---|
79 | double fCenterX;
|
---|
80 | double fCenterY;
|
---|
81 | double fCenterMag;
|
---|
82 |
|
---|
83 | double fStarX;
|
---|
84 | double fStarY;
|
---|
85 | double fStarMag;
|
---|
86 |
|
---|
87 | double fRotation;
|
---|
88 |
|
---|
89 | double fDx;
|
---|
90 | double fDy;
|
---|
91 |
|
---|
92 | double fRealMag;
|
---|
93 |
|
---|
94 | } __attribute__((__packed__));
|
---|
95 | };
|
---|
96 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.