FACT++  1.0
HeadersDrive.h
Go to the documentation of this file.
1 #ifndef FACT_HeadersDrive
2 #define FACT_HeadersDrive
3 
4 namespace Drive
5 {
6  namespace State
7  {
8  enum states_t
9  {
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
23 
24  kPositioningFailed = /*StateMachineImp::kSM_Error*/0x100+1,
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
uint16_t fNumRings
Definition: HeadersDrive.h:74
enum Drive::State::states_t __attribute__
uint16_t fNumLeds
Definition: HeadersDrive.h:73