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

Last change on this file since 19712 was 19436, checked in by tbretz, 6 years ago
Added a new state to simplify detection of close-to-target 'Approaching'
File size: 2.0 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 kApproaching,
22 kTracking,
23 kOnTrack,
24
25 kPositioningFailed = /*StateMachineImp::kSM_Error*/0x100+1,
26 kAllowedRangeExceeded,
27 kInvalidCoordinates,
28 //kSpeedLimitExceeded,
29
30 kHardwareWarning = 0x1ff,
31 kHardwareError,
32 };
33 };
34
35 struct DimPointing
36 {
37 } __attribute__((__packed__));
38
39 struct DimTracking
40 {
41 } __attribute__((__packed__));
42/*
43 struct DimStarguider
44 {
45 double fMissZd;
46 double fMissAz;
47
48 double fNominalZd;
49 double fNominalAz;
50
51 double fCenterX;
52 double fCenterY;
53
54 double fBrightness;
55
56 uint16_t fNumCorrelated;
57 uint16_t fNumLeds;
58 uint16_t fNumRings;
59 uint16_t fNumStars;
60
61 } __attribute__((__packed__));
62*/
63 struct DimTPoint
64 {
65 double fRa;
66 double fDec;
67
68 double fNominalZd;
69 double fNominalAz;
70
71 double fPointingZd;
72 double fPointingAz;
73
74 double fFeedbackZd;
75 double fFeedbackAz;
76
77 uint16_t fNumLeds;
78 uint16_t fNumRings;
79
80 double fCenterX;
81 double fCenterY;
82 double fCenterMag;
83
84 double fStarX;
85 double fStarY;
86 double fStarMag;
87
88 double fRotation;
89
90 double fDx;
91 double fDy;
92
93 double fRealMag;
94
95 } __attribute__((__packed__));
96};
97#endif
Note: See TracBrowser for help on using the repository browser.