-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscenario_v1.ads
245 lines (198 loc) · 13.2 KB
/
scenario_v1.ads
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
with Ada.Real_Time; use Ada.Real_Time;
with devicesfss_v1; use devicesfss_v1;
package Scenario_V1 is
---------------------------------------------------------------------
------ Access time for devices
---------------------------------------------------------------------
WCET_Distance: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(5);
WCET_Light: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(5);
WCET_Joystick: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(5);
WCET_PilotPresence: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(5);
WCET_PilotButton: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(5);
WCET_Power: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(4);
WCET_Speed: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(7);
WCET_Altitude: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(18);
WCET_Pitch: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(20);
WCET_Roll: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(18);
WCET_Display: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(15);
WCET_Alarm: constant Ada.Real_Time.Time_Span := Ada.Real_Time.Milliseconds(5);
---------------------------------------------------------------------
------ SCENARIO -----------------------------------------------------
---------------------------------------------------------------------
--Initial_Altitude: Altitude_Samples_Type := 5000;
---------------------------------------------------------------------
------ DISTANCE OK---------------------------------------------------
cantidad_datos_Distancia: constant := 200;
type Indice_Secuencia_Distancia is mod cantidad_datos_Distancia;
type tipo_Secuencia_Distancia is array (Indice_Secuencia_Distancia) of Distance_Samples_Type;
Distance_Simulation: tipo_Secuencia_Distancia := -- next sample every 100ms.
( 5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 1s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 2s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 3s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 4s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 5s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 6s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 7s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 8s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 9s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 10s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 11s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 12s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 13s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 14s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 15s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 16s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 17s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 18s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555, -- 19s.
5555,5555,5555,5555,5555, 5555,5555,5555,5555,5555); -- 20s.
---------------------------------------------------------------------
------ LIGHT OK------------------------------------------------------
cantidad_datos_Light: constant := 200;
type Indice_Secuencia_Light is mod cantidad_datos_Light;
type tipo_Secuencia_Light is array (Indice_Secuencia_Light) of Light_Samples_Type;
Light_Intensity_Simulation: tipo_Secuencia_Light := -- 1 muestra cada 100ms.
( 700,700,700,700,700, 700,700,700,700,700, -- 1s.
700,700,700,700,700, 700,700,700,700,700, -- 2s.
700,700,700,700,700, 700,700,700,700,700, -- 3s.
700,700,700,700,700, 700,700,700,700,700, -- 4s.
700,700,700,700,700, 700,700,700,700,700, -- 5s.
700,700,700,700,700, 700,700,700,700,700, -- 6s.
700,700,700,700,700, 700,700,700,700,700, -- 7s.
700,700,700,700,700, 700,700,700,700,700, -- 8s.
700,700,700,700,700, 700,700,700,700,700, -- 9s.
700,700,700,700,700, 700,700,700,700,700, -- 10s.
700,700,700,700,700, 700,700,700,700,700, -- 11s.
700,700,700,700,700, 700,700,700,700,700, -- 12s.
700,700,700,700,700, 700,700,700,700,700, -- 13s.
700,700,700,700,700, 700,700,700,700,700, -- 14s.
700,700,700,700,700, 700,700,700,700,700, -- 15s.
700,700,700,700,700, 700,700,700,700,700, -- 16s.
700,700,700,700,700, 700,700,700,700,700, -- 17s.
700,700,700,700,700, 700,700,700,700,700, -- 18s.
700,700,700,700,700, 700,700,700,700,700, -- 19s.
700,700,700,700,700, 700,700,700,700,700); -- 20s.
---------------------------------------------------------------------
------ JOYSTICK OK---------------------------------------------------
cantidad_datos_Joystick: constant := 200;
type Indice_Secuencia_Joystick is mod cantidad_datos_Joystick;
type tipo_Secuencia_Joystick is array (Indice_Secuencia_Joystick)
of Joystick_Samples_Type;
Joystick_Simulation: tipo_Secuencia_Joystick := -- 1 muestra cada 100ms.
((-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30), -- 1s
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30), -- 5s
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30), --10s
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30), --15s
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30),
(-30,+00),(-30,+35),(-30,+30),(-30,+30),(-30,+30),
(-30,+30),(-30,+30),(-30,+30),(-30,+30),(-30,+30)); --20 mantiene recto
---------------------------------------------------------------------
------ POWER OK------------------------------------------------------
cantidad_datos_Power: constant := 200;
type Indice_Secuencia_Power is mod cantidad_datos_Power;
type tipo_Secuencia_Power is array (Indice_Secuencia_Power) of Power_Samples_Type;
Power_Simulation: tipo_Secuencia_Power := -- next sample every 100ms.
( 1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 1s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 2s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 3s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 4s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 5s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 6s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 7s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 8s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 9s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 10s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 11s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 12s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 13s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 14s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 15s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 16s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 17s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 18s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022, -- 19s.
1022,1022,1022,1022,1022, 1022,1022,1022,1022,1022 ); -- 20s.
---------------------------------------------------------------------
------ PILOT'S PRESENCE ---------------------------------------------
cantidad_datos_PilotPresence: constant := 200;
type Indice_Secuencia_PilotPresence is mod cantidad_datos_PilotPresence;
type tipo_Secuencia_PilotPresence is array (Indice_Secuencia_PilotPresence) of PilotPresence_Samples_Type;
PilotPresence_Simulation: tipo_Secuencia_PilotPresence := -- 1 muestra cada 100ms.
( 1,1,1,1,1, 1,1,1,1,1, -- 1s.
1,1,1,1,1, 1,1,1,1,1, -- 2s.
1,1,1,1,1, 1,1,1,1,1, -- 3s.
1,1,1,1,1, 1,1,1,1,1, -- 4s.
1,1,1,1,1, 1,1,1,1,1, -- 5s.
1,1,1,1,1, 1,1,1,1,1, -- 6s.
1,1,1,1,1, 1,1,1,1,1, -- 7s.
1,1,1,1,1, 1,1,1,1,1, -- 8s.
1,1,1,1,1, 1,1,1,1,1, -- 9s.
1,1,1,1,1, 1,1,1,1,1, -- 10s.
1,1,1,1,1, 1,1,1,1,1, -- 11s.
1,1,1,1,1, 1,1,1,1,1, -- 12s.
1,1,1,1,1, 1,1,1,1,1, -- 13s.
1,1,1,1,1, 1,1,1,1,1, -- 14s.
1,1,1,1,1, 1,1,1,1,1, -- 15s.
1,1,1,1,1, 1,1,1,1,1, -- 16s.
1,1,1,1,1, 1,1,1,1,1, -- 17s.
1,1,1,1,1, 1,1,1,1,1, -- 18s.
1,1,1,1,1, 1,1,1,1,1, -- 19s.
1,1,1,1,1, 1,1,1,1,1); -- 20s.
cantidad_datos_PilotButton: constant := 200;
type Indice_Secuencia_PilotButton is mod cantidad_datos_PilotButton;
type tipo_Secuencia_PilotButton is array (Indice_Secuencia_PilotButton) of PilotButton_Samples_Type;
PilotButton_Simulation: tipo_Secuencia_PilotButton := -- 1 muestra cada 100ms.
( 0,0,0,0,0, 0,0,0,0,0, -- 1s.
0,0,0,0,0, 1,1,1,0,0, -- 2s.
0,0,0,0,0, 0,0,0,0,0, -- 3s.
0,0,0,0,0, 0,0,0,0,0, -- 4s.
1,1,1,1,0, 0,0,0,0,0, -- 5s.
0,0,0,0,0, 0,0,0,0,0, -- 6s.
0,0,0,0,0, 0,0,0,0,0, -- 7s.
0,0,0,0,0, 0,0,0,0,0, -- 8s.
0,0,0,0,0, 0,0,0,0,0, -- 9s.
0,0,0,0,0, 0,0,0,0,0, -- 10s.
0,0,0,0,0, 0,0,0,0,0, -- 11s.
0,0,0,0,0, 1,1,1,1,1, -- 12s.
0,0,0,0,0, 0,0,0,0,0, -- 13s.
0,0,0,0,0, 0,0,0,0,0, -- 14s.
0,0,0,0,0, 0,0,0,0,0, -- 15s.
0,0,0,0,0, 0,0,0,0,0, -- 16s.
0,0,0,0,0, 0,0,0,0,0, -- 17s.
0,0,0,0,0, 0,0,0,0,0, -- 18s.
0,0,0,0,0, 0,0,0,0,0, -- 19s.
0,0,0,0,0, 0,0,0,0,0); -- 20s.
end Scenario_V1;