openc3-cosmos-demo 5.5.2 → 5.6.0
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/procedures/screens.rb +33 -0
- 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: a0e597c5df7d668585f0c8c435f29ae674f1f5f4fd52a4799c36613115b5a168
|
4
|
+
data.tar.gz: c918c822ec2d2d926fcd1c6b9d1098e00648d55b21ab5c169389d728841d46e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4938f7d49277281a47327d50ff64b6465d76b873e4fd4fd66d2d2431ff1b238bc08497cd46aaa0cc10767232954741218329753070d4798c1e11df6ffa63105
|
7
|
+
data.tar.gz: 34ca8754776d32fd42cc4f4e7aa8792f6c595e406c65df800e9ec1578d7b812debc744f4a04420a89b3c1ae31e86b696328d00df645864bcd8d5c4d81e41c1b1
|
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
|
|
@@ -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
|