openc3-cosmos-demo 5.2.0 → 5.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23530204cfaedbd0c8ae5eb0af5a696e83da0bb20c838f0f291c7f0012dea548
4
- data.tar.gz: 1fd70065638e1fd360247607715766fc7a300015de033eed33a6a61823349ba6
3
+ metadata.gz: fca474828cfbb94f5d172b53030194160be013907dc645a089aaaccdc18a07a8
4
+ data.tar.gz: 18a7eac99f026d6646a15250c2119329084a830d04ad0ba60da02f9c5e879bd2
5
5
  SHA512:
6
- metadata.gz: 4357fd9b36217037c237d6b09925570e836169c6c188089590886df46fc97faf501db34743620f945fcdee6f541c0c7c32eb3135d898ab8199393ca1543d9db7
7
- data.tar.gz: 01e244d8ffd4504e09ee54058dd7b6b8f457bec4bf0824751c3dfb71f2097355cc17bbc254835078a1217f33c1af1ab45a56ac3a6ed9d213b9fbc8c663cc3250
6
+ metadata.gz: ebe0fb07428eb7bfbc746eea27cdc1764b0b53b65f522b61afe5115826671d55752d4af3c09b09f915aa3a4bfd02424ee5d4a2967bd2ba196ecd403d4147c19a
7
+ data.tar.gz: 8321d59bbe30cad4a7a4188c43a83d5a371100debe3196b4123d286b0f60c63abc184e2dd022bfc59b379e61465707a3ca2c8559944460a32170eb8ffa8ccf46
data/plugin.txt CHANGED
@@ -23,18 +23,18 @@ VARIABLE inst_router_port 7779
23
23
  VARIABLE log_retain_time 172800
24
24
  VARIABLE reduced_log_retain_time 2592000
25
25
 
26
- <% include_inst = (inst_target_name.strip.length > 0) %>
27
- <% include_inst2 = (inst2_target_name.strip.length > 0) %>
28
- <% include_example = (example_target_name.strip.length > 0) %>
29
- <% include_templated = (templated_target_name.strip.length > 0) %>
30
- <% include_system = (system_target_name.strip.length > 0) %>
31
- <% include_inst_int = (inst_int_name.strip.length > 0) %>
32
- <% include_inst_router = (inst_router_name.strip.length > 0) %>
33
- <% include_inst2_int = (inst2_int_name.strip.length > 0) %>
34
- <% include_example_int = (example_int_name.strip.length > 0) %>
35
- <% include_templated_int = (templated_int_name.strip.length > 0) %>
36
- <% include_example_microservice = (example_microservice_name.strip.length > 0) %>
37
- <% include_templated_microservice = (templated_microservice_name.strip.length > 0) %>
26
+ <% include_inst = (inst_target_name.to_s.strip.length > 0) %>
27
+ <% include_inst2 = (inst2_target_name.to_s.strip.length > 0) %>
28
+ <% include_example = (example_target_name.to_s.strip.length > 0) %>
29
+ <% include_templated = (templated_target_name.to_s.strip.length > 0) %>
30
+ <% include_system = (system_target_name.to_s.strip.length > 0) %>
31
+ <% include_inst_int = (inst_int_name.to_s.strip.length > 0) %>
32
+ <% include_inst_router = (inst_router_name.to_s.strip.length > 0) %>
33
+ <% include_inst2_int = (inst2_int_name.to_s.strip.length > 0) %>
34
+ <% include_example_int = (example_int_name.to_s.strip.length > 0) %>
35
+ <% include_templated_int = (templated_int_name.to_s.strip.length > 0) %>
36
+ <% include_example_microservice = (example_microservice_name.to_s.strip.length > 0) %>
37
+ <% include_templated_microservice = (templated_microservice_name.to_s.strip.length > 0) %>
38
38
 
39
39
  <% if include_inst %>
40
40
  TARGET INST <%= inst_target_name %>
@@ -69,14 +69,12 @@ VARIABLE reduced_log_retain_time 2592000
69
69
  <% if include_inst and include_inst_int %>
70
70
  INTERFACE <%= inst_int_name %> simulated_target_interface.rb sim_inst.rb
71
71
  MAP_TARGET <%= inst_target_name %>
72
- PROTOCOL READ OverrideProtocol
73
72
  <% end %>
74
73
 
75
74
  <% if include_inst2 and include_inst2_int %>
76
75
  INTERFACE <%= inst2_int_name %> simulated_target_interface.rb sim_inst.rb
77
76
  MAP_TARGET <%= inst2_target_name %>
78
77
  DONT_LOG
79
- PROTOCOL READ_WRITE OverrideProtocol
80
78
  <% end %>
81
79
 
82
80
  <% if include_example and include_example_int %>
@@ -7,23 +7,15 @@ cmd_raw_no_range_check("<%= target_name %> COLLECT with TYPE 0, TEMP 100")
7
7
  cmd_raw_no_hazardous_check("<%= target_name %> CLEAR")
8
8
  cmd_raw_no_checks("<%= target_name %> COLLECT with TYPE 1, TEMP 100.0")
9
9
  check("<%= target_name %> ADCS BIASX == 100")
10
- check_formatted("<%= target_name %> ADCS BIASX == 100")
11
- check_with_units("<%= target_name %> ADCS BIASX == 100")
12
- check_raw("<%= target_name %> ADCS BIASX == 100")
13
10
  check_tolerance("<%= target_name %> ADCS BIASX", 5, 0.5)
14
- check_tolerance_raw("<%= target_name %> ADCS BIASX", 5, 0.5)
15
11
  check_expression("true == false")
16
12
  wait
17
13
  wait 5
18
14
  wait("<%= target_name %> ADCS BIASX > 100", 5)
19
- wait_raw("<%= target_name %> ADCS BIASX > 100", 5)
20
15
  wait_tolerance("<%= target_name %> ADCS BIASX", 5, 0.5, 5)
21
- wait_tolerance_raw("<%= target_name %> ADCS BIASX", 5, 0.5, 5)
22
16
  wait_expression("true == false", 5)
23
17
  wait_packet("<%= target_name %>","ADCS", 2, 5)
24
18
  wait_check("<%= target_name %> ADCS BIASX == 100", 5)
25
- wait_check_raw("<%= target_name %> ADCS BIASX == 100", 5)
26
19
  wait_check_tolerance("<%= target_name %> ADCS BIASX", 5, 0.5, 5)
27
- wait_check_tolerance_raw("<%= target_name %> ADCS BIASX", 5, 0.5, 5)
28
20
  wait_check_expression("true == false", 5)
29
21
  wait_check_packet("<%= target_name %>","ADCS", 2, 5)
@@ -176,11 +176,19 @@ tlm("INST HEALTH_STATUS ARY")
176
176
  tlm("INST HEALTH_STATUS ASCIICMD")
177
177
  tlm("INST HEALTH_STATUS CCSDSAPID")
178
178
  tlm("INST HEALTH_STATUS TEMP1")
179
+ tlm("INST HEALTH_STATUS TEMP1", type: :RAW)
180
+ tlm("INST HEALTH_STATUS TEMP1", type: :CONVERTED)
181
+ tlm("INST HEALTH_STATUS TEMP1", type: :FORMATTED)
182
+ tlm("INST HEALTH_STATUS TEMP1", type: :WITH_UNITS)
179
183
 
180
184
  tlm("INST", "HEALTH_STATUS", "ARY")
181
185
  tlm("INST", "HEALTH_STATUS", "ASCIICMD")
182
186
  tlm("INST", "HEALTH_STATUS", "CCSDSAPID")
183
187
  tlm("INST", "HEALTH_STATUS", "TEMP1")
188
+ tlm("INST", "HEALTH_STATUS", "TEMP1", type: :RAW)
189
+ tlm("INST", "HEALTH_STATUS", "TEMP1", type: :CONVERTED)
190
+ tlm("INST", "HEALTH_STATUS", "TEMP1", type: :FORMATTED)
191
+ tlm("INST", "HEALTH_STATUS", "TEMP1", type: :WITH_UNITS)
184
192
 
185
193
  # tlm should fail
186
194
  tlm()
@@ -195,92 +203,27 @@ tlm("INST", "HEALTH_STATUS")
195
203
  tlm("INST", "HEALTH_STATUS", "BOB")
196
204
  tlm("INST", "HEALTH_STATUS", "ARY", "BOB")
197
205
 
198
- # tlm_raw
199
- tlm_raw("INST HEALTH_STATUS ARY")
200
- tlm_raw("INST HEALTH_STATUS ASCIICMD")
201
- tlm_raw("INST HEALTH_STATUS CCSDSAPID")
202
- tlm_raw("INST HEALTH_STATUS TEMP1")
203
-
204
- tlm_raw("INST", "HEALTH_STATUS", "ARY")
205
- tlm_raw("INST", "HEALTH_STATUS", "ASCIICMD")
206
- tlm_raw("INST", "HEALTH_STATUS", "CCSDSAPID")
207
- tlm_raw("INST", "HEALTH_STATUS", "TEMP1")
208
-
209
- # tlm_raw should fail
210
- tlm_raw()
211
- tlm_raw("BOB")
212
- tlm_raw("INST")
213
- tlm_raw("INST BOB")
214
- tlm_raw("INST HEALTH_STATUS")
215
- tlm_raw("INST HEALTH_STATUS BOB")
216
- tlm_raw("INST HEALTH_STATUS ARY BOB")
217
- tlm_raw("INST", "BOB")
218
- tlm_raw("INST", "HEALTH_STATUS")
219
- tlm_raw("INST", "HEALTH_STATUS", "BOB")
220
- tlm_raw("INST", "HEALTH_STATUS", "ARY", "BOB")
221
-
222
- # tlm_formatted
223
- tlm_formatted("INST HEALTH_STATUS ARY")
224
- tlm_formatted("INST HEALTH_STATUS ASCIICMD")
225
- tlm_formatted("INST HEALTH_STATUS CCSDSAPID")
226
- tlm_formatted("INST HEALTH_STATUS TEMP1")
227
-
228
- tlm_formatted("INST", "HEALTH_STATUS", "ARY")
229
- tlm_formatted("INST", "HEALTH_STATUS", "ASCIICMD")
230
- tlm_formatted("INST", "HEALTH_STATUS", "CCSDSAPID")
231
- tlm_formatted("INST", "HEALTH_STATUS", "TEMP1")
232
-
233
- # tlm_formatted should fail
234
- tlm_formatted()
235
- tlm_formatted("BOB")
236
- tlm_formatted("INST")
237
- tlm_formatted("INST BOB")
238
- tlm_formatted("INST HEALTH_STATUS")
239
- tlm_formatted("INST HEALTH_STATUS BOB")
240
- tlm_formatted("INST HEALTH_STATUS ARY BOB")
241
- tlm_formatted("INST", "BOB")
242
- tlm_formatted("INST", "HEALTH_STATUS")
243
- tlm_formatted("INST", "HEALTH_STATUS", "BOB")
244
- tlm_formatted("INST", "HEALTH_STATUS", "ARY", "BOB")
245
-
246
- # tlm_with_units
247
- tlm_with_units("INST HEALTH_STATUS ARY")
248
- tlm_with_units("INST HEALTH_STATUS ASCIICMD")
249
- tlm_with_units("INST HEALTH_STATUS CCSDSAPID")
250
- tlm_with_units("INST HEALTH_STATUS TEMP1")
251
-
252
- tlm_with_units("INST", "HEALTH_STATUS", "ARY")
253
- tlm_with_units("INST", "HEALTH_STATUS", "ASCIICMD")
254
- tlm_with_units("INST", "HEALTH_STATUS", "CCSDSAPID")
255
- tlm_with_units("INST", "HEALTH_STATUS", "TEMP1")
256
-
257
- # tlm_with_units should fail
258
- tlm_with_units()
259
- tlm_with_units("BOB")
260
- tlm_with_units("INST")
261
- tlm_with_units("INST BOB")
262
- tlm_with_units("INST HEALTH_STATUS")
263
- tlm_with_units("INST HEALTH_STATUS BOB")
264
- tlm_with_units("INST HEALTH_STATUS ARY BOB")
265
- tlm_with_units("INST", "BOB")
266
- tlm_with_units("INST", "HEALTH_STATUS")
267
- tlm_with_units("INST", "HEALTH_STATUS", "BOB")
268
- tlm_with_units("INST", "HEALTH_STATUS", "ARY", "BOB")
269
-
270
206
  # override_tlm
271
207
  override_tlm("INST HEALTH_STATUS ARY = [0,0,0,0,0,0,0,0,0,0]")
272
208
  override_tlm("INST HEALTH_STATUS ASCIICMD = 'HI'")
273
209
  override_tlm("INST HEALTH_STATUS CCSDSAPID = 1000")
274
210
  override_tlm("INST HEALTH_STATUS TEMP1 = 15")
211
+ data = Array.new(131072 / 8) { rand(0..255) }.pack("C*")
212
+ override_tlm("INST", "IMAGE", "IMAGE", data)
275
213
 
276
- # override_tlm_raw
277
- override_tlm_raw("INST HEALTH_STATUS ARY = [0,0,0,0,0,0,0,0,0,0]")
278
- override_tlm_raw("INST HEALTH_STATUS ASCIICMD = 'HI'")
279
- override_tlm_raw("INST HEALTH_STATUS CCSDSAPID = 1000")
280
- override_tlm_raw("INST HEALTH_STATUS TEMP1 = 10000")
214
+ wait_check("INST HEALTH_STATUS ARY == [1,2,3]", 5)
215
+ wait_check("INST HEALTH_STATUS ASCIICMD == 'HI'", 5)
216
+ wait_check("INST HEALTH_STATUS CCSDSAPID == 1000", 5)
217
+ wait_check("INST HEALTH_STATUS TEMP1 == 15", 5)
281
218
 
282
219
  # normalize_tlm
283
220
  normalize_tlm("INST HEALTH_STATUS ARY")
284
221
  normalize_tlm("INST HEALTH_STATUS ASCIICMD")
285
222
  normalize_tlm("INST HEALTH_STATUS CCSDSAPID")
286
223
  normalize_tlm("INST HEALTH_STATUS TEMP1")
224
+ normalize_tlm("INST IMAGE IMAGE")
225
+
226
+ wait_check("INST HEALTH_STATUS ARY != [1,2,3]", 5)
227
+ wait_check("INST HEALTH_STATUS ASCIICMD != 'HI'", 5)
228
+ wait_check("INST HEALTH_STATUS CCSDSAPID != 1000", 5)
229
+ wait_check("INST HEALTH_STATUS TEMP1 != 15", 5)