openc3-demo 5.0.6 → 5.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/plugin.txt +2 -1
- data/targets/INST/cmd_tlm/inst_cmds.txt +1 -1
- data/targets/INST/lib/example_limits_response.rb +2 -2
- data/targets/INST/screens/commanding.txt +4 -1
- data/targets/INST/screens/graphs.txt +6 -0
- data/tools/widgets/BigWidget/BigWidget.umd.min.js +2 -2
- data/tools/widgets/BigWidget/BigWidget.umd.min.js.map +1 -1
- data/tools/widgets/HelloworldWidget/HelloworldWidget.umd.min.js +1 -1
- data/tools/widgets/HelloworldWidget/HelloworldWidget.umd.min.js.map +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd50474a9d34098d31bf02421d64e124857e62629b6ea410c517e846e67087b9
|
4
|
+
data.tar.gz: 80fe1abedef74980efd34b021225468ec5d11a3cf68ea62e4bec01d03290a430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
33
|
+
cmd('<%= target_name %>', 'COLLECT', 'TYPE' => 'NORMAL', 'DURATION' => 5)
|
34
34
|
when :RED_LOW
|
35
|
-
cmd_no_hazardous_check('<%= target_name %>', 'CLEAR'
|
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
|
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
|
@@ -4,6 +4,12 @@ VERTICAL
|
|
4
4
|
TITLE "<%= target_name %> Instrument Graphs"
|
5
5
|
|
6
6
|
MATRIXBYCOLUMNS 2
|
7
|
+
SPARKLINE <%= target_name %> HEALTH_STATUS TEMP1
|
8
|
+
SETTING SIZE 400 50
|
9
|
+
SPARKLINE <%= target_name %> HEALTH_STATUS TEMP2
|
10
|
+
SETTING SIZE 400 50
|
11
|
+
LABELSPARKLINE <%= target_name %> HEALTH_STATUS TEMP3
|
12
|
+
LABELSPARKLINE <%= target_name %> HEALTH_STATUS TEMP4
|
7
13
|
LINEGRAPH <%= target_name %> HEALTH_STATUS TEMP1
|
8
14
|
SETTING ITEM <%= target_name %> ADCS Q1
|
9
15
|
LINEGRAPH <%= target_name %> HEALTH_STATUS TEMP2
|