File: dpu_ant_messages.h

package info (click to toggle)
libgnatcoll 1.7gpl2015-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,280 kB
  • ctags: 1,124
  • sloc: ada: 134,072; python: 4,017; cpp: 1,397; ansic: 1,234; makefile: 368; sh: 152; xml: 31; sql: 6
file content (204 lines) | stat: -rw-r--r-- 3,398 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204

#ifndef _DPU_ANT_MESSAGES
#define _DPU_ANT_MESSAGES

#define C_MAX_ANT_DATA 10


typedef enum
{
  rNUL,rA,rB,rC,rD,rE,rF,rG,rH,rJ,rK,
  rL,rM,rN,rS,rT,rU,rV,rX,rY,rZ,
  rAA,rAB,rAC,rAD,rAE,rAF,rAG,rAH,rAJ,rAK,rAL
}T_REV_STATE;

typedef struct
{
  int antennaVer;
  int serialNo;
  T_REV_STATE revState;
}M_ANTENNA_IDENT;


typedef struct
{
}M_REQ_ANTENNA_IDENT;

typedef struct t_ant_ori_element_type {
  double azim;
  double tilt;
  double roll;
} t_ant_ori_element;

typedef struct {
  int hour;
  int min;
  int sec;
  int hundred_sec;
} t_ins_attitude_time;

typedef struct {
  t_ant_ori_element     ant_ori;
  t_ins_attitude_time   time;
} m_ins_attitude_data;






typedef enum {
  ant_ttu_inactive = 0
} m_ant_ttu_inactive;

typedef enum {
  ant_service_position = 0
} m_ant_service_position;

typedef enum {
  ant_not_in_ftp = 0,
  ant_in_ftp
} m_ant_in_ftp;

typedef enum {
  ant_not_in_lock = 0,
  ant_in_lock
} m_ant_in_lock;

typedef enum {
  ant_not_in_opz = 0,
  ant_in_opz
} m_ant_in_opz;

typedef enum {
  ant_not_in_new_ori = 0,
  ant_in_new_ori
} m_ant_in_new_ori;

typedef struct {
  bool ant_in_orp;
  double orp_azim;
  double orp_tilt;
} m_ant_in_orp;

typedef struct {
  bool  measured_ant_ori_table[C_MAX_ANT_DATA];
  double             time_meas_points[C_MAX_ANT_DATA];
} m_ant_ori;

typedef struct {
  double Min_Elevation; // --INS ori in mradians
  double Max_Elevation; // --INS ori in mradians
  double Min_Azimuth;   // --INS ori in mradians
  double Max_Azimuth;   // --INS ori in mradians
  double Min_Roll;      // --INS ori in mradians
  double Max_Roll;      // --INS ori in mradians
  bool Valid; // Set to false in DBC before limits are received from ttu_ins
} m_ant_ori_limits;

typedef struct {
  double        ant_time;
  double        ant_ori;
  bool          major_change;
} m_ant_ori_chg;


typedef struct m_ant_ORP_ori_type {
  double azim;
  double tilt;           //  Unit radians  -C_PI_HALF..C_PI_HALF
} m_ant_ORP_ori;

typedef struct m_ant_temp_type {
  double temp;
} m_ant_temp;

typedef struct {
} m_req_ant_orp_ori;

typedef struct {
  bool req_ant_ori_chg;
  bool req_ant_status;
  bool req_ant_temp;
  bool req_eres_values;
} m_req_ant_status;

typedef struct {
} m_req_ant_temp;

typedef struct {
} m_req_ant_ori_chg;


typedef enum {
  in_lock = 0,
  in_ftp,
  raising_or_folding,
  cs_panel_active,
  in_opz,
  in_orp,
  turning,
  turning_aborted,
  in_new_ori,
  in_service_position,
  in_ttu_inactive
} t_position_status;


typedef struct {
  t_position_status position_status;
  bool         position_error;
} m_ant_position_status;


typedef struct {
} m_req_ant_position_status;

typedef struct {
  double new_azim;
  double new_tilt;
  double new_roll;
} m_req_ant_to_new_ori;

typedef struct {
  double orp_azim;
  double orp_tilt;
} m_req_ant_to_orp;

typedef struct {
  bool active;
} m_cs_active;

typedef struct {
} m_ant_turning_aborted;


typedef struct
{
  int SysProcId;
  int TaskId;
  int InetAddr;
  int MsgId;
  int MsgLength;
} T_MsgInfo;


typedef enum {none,
              mortar,
              tube,
              rocket,
              small_arms,
              manual } t_weapon_class;

typedef enum {no_caliber,
	      light,
	      heavy} t_caliber_tag;


typedef struct {
  t_weapon_class weapon_class;
  t_caliber_tag  caliber;
  int            confidence;
} t_weapon_type;


#endif /* _DPU_ANT_MESSAGES */