openc3-demo 5.0.8 → 5.0.9

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: c126becc6f120379958038e8427d826dd24ac492e17accc24b6c31136dadd357
4
- data.tar.gz: e46d4180d9fa5bf46ab90517492ca34c25e7cde41557e2b7b6e1cd51f6194067
3
+ metadata.gz: fd50474a9d34098d31bf02421d64e124857e62629b6ea410c517e846e67087b9
4
+ data.tar.gz: 80fe1abedef74980efd34b021225468ec5d11a3cf68ea62e4bec01d03290a430
5
5
  SHA512:
6
- metadata.gz: ba3460864cd3cb3c54c3b17457ef61432feaf55177d6f492a946068c8665d5304fd519f4d4469c85f3c3acecdb424c6282b4542503a3d8f6fdb3dff01b5fa55a
7
- data.tar.gz: 7eeeee7b32eb785b0967beb040f92ee7cf996cc78b4eb996408c12d04fe7f9972472d2adc329300e29be1f332642122d6d0c5872661d8fa6d6ff78b98a43d935
6
+ metadata.gz: d6e3a765a7482134562d89e25bd187fa05b2323928b4f145cc3217b99073b9e353e76c25c863bc85b12e9c961ffeb504425923be4c9f7a6ba64102db0f8d5ef7
7
+ data.tar.gz: f6b1972484b4954e553606bb51260a28f5382a773069750d1076618d0d6d8d36072229cc8a89c44f689eb8026454c8e15bf5a615eee582dcda40baf1c87c21ce
data/plugin.txt CHANGED
@@ -17,6 +17,7 @@ VARIABLE example_microservice_name openc3-example
17
17
  VARIABLE templated_microservice_name openc3-templated
18
18
  VARIABLE example_port 9999
19
19
  VARIABLE templated_port 5025
20
+ VARIABLE inst_router_port 7779
20
21
  VARIABLE log_retain_time 172800
21
22
  VARIABLE reduced_log_retain_time 2592000
22
23
 
@@ -92,7 +93,7 @@ VARIABLE reduced_log_retain_time 2592000
92
93
  <% end %>
93
94
 
94
95
  <% if include_inst and include_inst_router %>
95
- ROUTER <%= inst_router_name %> tcpip_server_interface.rb 7779 7779 nil 10.0 PREIDENTIFIED
96
+ ROUTER <%= inst_router_name %> tcpip_server_interface.rb <%= inst_router_port %> <%= inst_router_port %> nil 10.0 PREIDENTIFIED
96
97
  MAP_TARGET <%= inst_target_name %>
97
98
  <% end %>
98
99
 
@@ -1,6 +1,6 @@
1
1
  COMMAND <%= target_name %> COLLECT BIG_ENDIAN "Starts a collect on the <%= target_name %> target"
2
2
  <%= render "_ccsds_cmd.txt", locals: {id: 1} %>
3
- PARAMETER TYPE 64 16 UINT MIN MAX 0 "Collect type"
3
+ PARAMETER TYPE 64 16 UINT MIN MAX 0 "Collect type which can be normal or special. Note the special collects are hazarous and require user confirmation."
4
4
  REQUIRED
5
5
  STATE NORMAL 0
6
6
  STATE SPECIAL 1 HAZARDOUS
@@ -30,9 +30,9 @@ class ExampleLimitsResponse < OpenC3::LimitsResponse
30
30
  def call(packet, item, old_limits_state)
31
31
  case item.limits.state
32
32
  when :RED_HIGH
33
- cmd('<%= target_name %>', 'COLLECT', 'TYPE' => 'NORMAL', 'DURATION' => 5, scope: 'DEFAULT')
33
+ cmd('<%= target_name %>', 'COLLECT', 'TYPE' => 'NORMAL', 'DURATION' => 5)
34
34
  when :RED_LOW
35
- cmd_no_hazardous_check('<%= target_name %>', 'CLEAR', scope: 'DEFAULT')
35
+ cmd_no_hazardous_check('<%= target_name %>', 'CLEAR')
36
36
  end
37
37
  end
38
38
 
@@ -18,7 +18,10 @@ VERTICAL
18
18
  NAMED_WIDGET DURATION TEXTFIELD 12 "10.0"
19
19
  END
20
20
  # This is an example of using a varible named 'type'. You can operate on variables with Javascript code.
21
- # All OpenC3 commands (api.cmd) must be separated by newlines '\n'. All code separated by semicolons is evaluated together.
21
+ # All OpenC3 commands (api.cmd) must be separated by double semicolons ';;'. All code separated by semicolons is evaluated together.
22
+ # Note: you can also request and use telemetry in screens using Javascript Promises, e.g.
23
+ # api.tlm('INST PARAMS VALUE3', 'RAW').then(dur => api.cmd('INST COLLECT with TYPE '+type+', DURATION '+dur))"
24
+ # The tlm() function returns a Promise which is resolved with then() at which point we send the command with the parameter
22
25
  BUTTON 'Start Collect' "var type=screen.get_named_widget('COLLECT_TYPE').text(); api.cmd('<%= target_name %> COLLECT with TYPE '+type+', DURATION '+screen.get_named_widget('DURATION').text())"
23
26
  END
24
27
  SETTING BACKCOLOR 163 185 163