openc3-cosmos-demo 5.5.2 → 5.6.1
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/Rakefile +10 -4
- data/plugin.txt +3 -3
- data/targets/INST/cmd_tlm/inst_tlm.txt +3 -3
- data/targets/INST/procedures/screens.rb +33 -0
- data/targets/INST/screens/block.txt +2 -2
- data/targets/INST/screens/latest.txt +1 -1
- 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 +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13d6b362276b2f4ea60dc5dd69861fbb3b337ec57d3ba0bce62b5e3a81364dee
|
4
|
+
data.tar.gz: acf3770a7e361b0d2e02313582c5a03d3bc7692236a5b4848fdeb072fea5da7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c6c844ffc2555b580f514e7d77fcf873fd32b1112407db85197b7e89747bfc9bb74398ff217dbc05c503daaad15c7738d6e2020803ed4b232167dc07145b0f0
|
7
|
+
data.tar.gz: 9f6455f2820a84b9083b738ababc302da8c4a534926ea8d5285404dda0cfc3f3a262e082ce83561a241c8e156f9dd5bc8cdcc5661a3b35256dfb26f99ef62087
|
data/Rakefile
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
# All changes Copyright 2022, OpenC3, Inc.
|
18
18
|
# All Rights Reserved
|
19
19
|
#
|
20
|
-
# This file may also be used under the terms of a commercial license
|
20
|
+
# This file may also be used under the terms of a commercial license
|
21
21
|
# if purchased from OpenC3, Inc.
|
22
22
|
|
23
23
|
PLUGIN_NAME = Dir['*.gemspec'][0].split('.')[0..-2].join('.')
|
@@ -39,7 +39,13 @@ task :build => [:require_version] do
|
|
39
39
|
if platform == 'mswin32' or platform == 'mingw32'
|
40
40
|
puts "Warning: Building gem on Windows will lose file permissions"
|
41
41
|
end
|
42
|
-
# Build the widgets in the src directory
|
43
|
-
|
44
|
-
|
42
|
+
# Build the widgets in the src directory using sh built into Rake:
|
43
|
+
# https://rubydoc.info/gems/rake/FileUtils#sh-instance_method
|
44
|
+
sh('yarn', 'run', 'build')
|
45
|
+
sh('gem', 'build', PLUGIN_NAME)
|
46
|
+
sh('openc3cli validate *.gem') do |ok, status|
|
47
|
+
if !ok && status.exitstatus == 127 # command not found
|
48
|
+
puts "Install the openc3 gem to validate! (gem install openc3)"
|
49
|
+
end
|
50
|
+
end
|
45
51
|
end
|
data/plugin.txt
CHANGED
@@ -72,7 +72,6 @@ VARIABLE reduced_log_retain_time 2592000
|
|
72
72
|
<% if include_inst2 and include_inst2_int %>
|
73
73
|
INTERFACE <%= inst2_int_name %> simulated_target_interface.rb sim_inst.rb
|
74
74
|
MAP_TARGET <%= inst2_target_name %>
|
75
|
-
DONT_LOG
|
76
75
|
<% end %>
|
77
76
|
|
78
77
|
<% if include_example and include_example_int %>
|
@@ -82,7 +81,8 @@ VARIABLE reduced_log_retain_time 2592000
|
|
82
81
|
PROTOCOL WRITE MyRejectProtocol
|
83
82
|
MAP_TARGET <%= example_target_name %>
|
84
83
|
DONT_CONNECT
|
85
|
-
|
84
|
+
# Override the default log time of 600
|
85
|
+
LOG_STREAM 60
|
86
86
|
<% end %>
|
87
87
|
|
88
88
|
<% if include_templated and include_templated_int %>
|
@@ -94,7 +94,7 @@ VARIABLE reduced_log_retain_time 2592000
|
|
94
94
|
<% end %>
|
95
95
|
|
96
96
|
<% if include_inst and include_inst_router %>
|
97
|
-
ROUTER <%= inst_router_name %> tcpip_server_interface.rb <%= inst_router_port %> <%= inst_router_port %>
|
97
|
+
ROUTER <%= inst_router_name %> tcpip_server_interface.rb <%= inst_router_port %> <%= inst_router_port %> 10.0 nil PREIDENTIFIED
|
98
98
|
MAP_TARGET <%= inst_target_name %>
|
99
99
|
<% end %>
|
100
100
|
|
@@ -122,11 +122,11 @@ TELEMETRY <%= target_name %> PARAMS BIG_ENDIAN "Params set by SETPARAMS command"
|
|
122
122
|
|
123
123
|
TELEMETRY <%= target_name %> IMAGE BIG_ENDIAN "Packet with image data"
|
124
124
|
<%= render "_ccsds_tlm.txt", locals: {apid: 4} %>
|
125
|
-
APPEND_ITEM BYTES 32 UINT "First bytes"
|
126
|
-
FORMAT_STRING '0x%08x'
|
127
125
|
APPEND_ITEM BLOCK 8000 BLOCK "Raw Data"
|
128
126
|
APPEND_ITEM IMAGE 0 BLOCK "Image Data"
|
129
|
-
|
127
|
+
ITEM BYTES 128 32 UINT "First bytes"
|
128
|
+
FORMAT_STRING '0x%08x'
|
129
|
+
OVERLAP # Notify OpenC3 that this is intentionally overlapping the BLOCK field
|
130
130
|
ITEM PACKET_TIME 0 0 DERIVED "Ruby time based on TIMESEC and TIMEUS"
|
131
131
|
READ_CONVERSION unix_time_conversion.rb TIMESEC TIMEUS
|
132
132
|
|
@@ -0,0 +1,33 @@
|
|
1
|
+
all_screens = get_screen_list()
|
2
|
+
puts all_screens["INST"]
|
3
|
+
wait(1)
|
4
|
+
definition = get_screen_definition("INST", "ADCS")
|
5
|
+
puts definition
|
6
|
+
wait(1)
|
7
|
+
display_screen("INST", "ADCS")
|
8
|
+
wait(3)
|
9
|
+
display_screen("INST", "HS", 400, 0)
|
10
|
+
wait(3)
|
11
|
+
clear_screen("INST", "ADCS")
|
12
|
+
wait(3)
|
13
|
+
display_screen("INST", "IMAGE")
|
14
|
+
wait(3)
|
15
|
+
clear_all_screens()
|
16
|
+
wait(3)
|
17
|
+
definition = '
|
18
|
+
SCREEN AUTO AUTO 1.0
|
19
|
+
|
20
|
+
VERTICALBOX "Test Screen"
|
21
|
+
LABELVALUE INST HEALTH_STATUS TEMP1
|
22
|
+
LABELVALUE INST HEALTH_STATUS RECEIVED_TIMEFORMATTED WITH_UNITS 30
|
23
|
+
END
|
24
|
+
'
|
25
|
+
local_screen("TEST", definition)
|
26
|
+
wait(3)
|
27
|
+
clear_all_screens()
|
28
|
+
create_screen("INST", "TEST", definition)
|
29
|
+
display_screen("INST", "TEST")
|
30
|
+
wait(3)
|
31
|
+
clear_all_screens()
|
32
|
+
delete_screen("INST", "TEST")
|
33
|
+
display_screen("INST", "TEST") # Expected to fail because new screen was deleted
|
@@ -2,6 +2,6 @@ SCREEN AUTO AUTO 1.0
|
|
2
2
|
|
3
3
|
VERTICAL
|
4
4
|
TITLE "<%= target_name %> Instrument Block Data"
|
5
|
-
BLOCK <%= target_name %> IMAGE
|
6
|
-
BLOCK <%= target_name %> IMAGE
|
5
|
+
BLOCK <%= target_name %> IMAGE BLOCK
|
6
|
+
BLOCK <%= target_name %> IMAGE BLOCK 680 200 "%02X" 4 6 "0x%08X: "
|
7
7
|
END
|