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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc2738b6f1bad4eae1536aace0e87f2fa09185618a431a0a41e87035adca40fa
4
- data.tar.gz: 246ff45f251f462ef9a00890c111c40d034c116efd23a5514391a459e59b3e2f
3
+ metadata.gz: a0e597c5df7d668585f0c8c435f29ae674f1f5f4fd52a4799c36613115b5a168
4
+ data.tar.gz: c918c822ec2d2d926fcd1c6b9d1098e00648d55b21ab5c169389d728841d46e6
5
5
  SHA512:
6
- metadata.gz: 512bb79994c26f20ff54885f789fdab1664f0131116df00e7626b71425af4559e01f912930e1aeb1bde691a8754561ecb5dbda8c50f0945646aefe87d2e9b3f6
7
- data.tar.gz: 89e027be21b73c953a3698257bd737efc5711e16329fd71035f84431eb01ef2f691e78f81162e29deb32dd5cb08caea5267a5b095f9becd3b524534ed5f53e55
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
- system("yarn run build")
44
- system("gem build #{PLUGIN_NAME}")
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
- LOG_RAW
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 %> nil 10.0 PREIDENTIFIED
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
@@ -2,7 +2,7 @@ SCREEN AUTO AUTO 1.0
2
2
 
3
3
  VERTICAL
4
4
 
5
- TITLE "<%= @target_name %> Instrument Latest Header"
5
+ TITLE "<%= target_name %> Instrument Latest Header"
6
6
 
7
7
  VERTICALBOX "Header"
8
8
  LABELVALUE INST LATEST CCSDSVER