cosmos 3.9.1 → 3.9.2
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/.travis.yml +4 -3
- data/Manifest.txt +7 -0
- data/autohotkey/tools/cmd_extractor.ahk +17 -0
- data/autohotkey/tools/tlm_extractor.ahk +62 -1
- data/bin/cosmos +182 -12
- data/data/crc.txt +35 -34
- data/demo/config/data/crc.txt +6 -2
- data/demo/config/targets/INST/screens/adcs.txt +1 -1
- data/demo/config/tools/cmd_tlm_server/cmd_tlm_server2.txt +1 -1
- data/demo/config/tools/example_application.css +58 -0
- data/demo/config/tools/launcher/launcher.css +7 -0
- data/demo/config/tools/launcher/launcher2.css +10 -0
- data/demo/config/tools/test_runner/test_runner.css +45 -0
- data/ext/cosmos/ext/packet/packet.c +6 -0
- data/lib/cosmos/gui/dialogs/scroll_text_dialog.rb +15 -6
- data/lib/cosmos/gui/qt_tool.rb +58 -8
- data/lib/cosmos/gui/text/ruby_editor.rb +54 -6
- data/lib/cosmos/gui/utilities/analyze_log.rb +153 -0
- data/lib/cosmos/interfaces/interface.rb +6 -0
- data/lib/cosmos/packets/packet_item_limits.rb +14 -2
- data/lib/cosmos/packets/structure_item.rb +22 -3
- data/lib/cosmos/script/cmd_tlm_server.rb +28 -0
- data/lib/cosmos/script/extract.rb +10 -9
- data/lib/cosmos/script/tools.rb +10 -4
- data/lib/cosmos/system/system.rb +2 -1
- data/lib/cosmos/tools/cmd_extractor/cmd_extractor.rb +12 -0
- data/lib/cosmos/tools/cmd_tlm_server/api.rb +84 -0
- data/lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server.rb +3 -2
- data/lib/cosmos/tools/cmd_tlm_server/commanding.rb +9 -0
- data/lib/cosmos/tools/cmd_tlm_server/gui/interfaces_tab.rb +2 -2
- data/lib/cosmos/tools/cmd_tlm_server/interface_thread.rb +26 -17
- data/lib/cosmos/tools/cmd_tlm_server/interfaces.rb +26 -0
- data/lib/cosmos/tools/cmd_tlm_server/packet_logging.rb +29 -0
- data/lib/cosmos/tools/cmd_tlm_server/routers.rb +33 -0
- data/lib/cosmos/tools/data_viewer/data_viewer.rb +1 -1
- data/lib/cosmos/tools/launcher/launcher.rb +14 -25
- data/lib/cosmos/tools/limits_monitor/limits_monitor.rb +3 -7
- data/lib/cosmos/tools/packet_viewer/packet_viewer.rb +6 -4
- data/lib/cosmos/tools/script_runner/script_runner.rb +58 -9
- data/lib/cosmos/tools/script_runner/script_runner_frame.rb +45 -19
- data/lib/cosmos/tools/table_manager/table_manager.rb +7 -7
- data/lib/cosmos/tools/test_runner/test_runner.rb +6 -0
- data/lib/cosmos/tools/tlm_extractor/tlm_extractor.rb +145 -8
- data/lib/cosmos/tools/tlm_extractor/tlm_extractor_config.rb +89 -19
- data/lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_config.rb +14 -0
- data/lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_realtime_thread.rb +1 -1
- data/lib/cosmos/tools/tlm_viewer/screen.rb +15 -3
- data/lib/cosmos/tools/tlm_viewer/tlm_viewer.rb +23 -12
- data/lib/cosmos/version.rb +4 -4
- data/spec/packets/packet_item_limits_spec.rb +33 -6
- data/spec/packets/packet_item_spec.rb +9 -9
- data/spec/packets/packet_spec.rb +18 -6
- data/spec/packets/structure_item_spec.rb +22 -4
- data/spec/script/cmd_tlm_server_spec.rb +66 -0
- data/spec/script/extract_spec.rb +144 -0
- data/spec/script/tools_spec.rb +17 -2
- data/spec/system/system_spec.rb +1 -1
- data/spec/tools/cmd_tlm_server/api_spec.rb +6 -0
- data/spec/tools/cmd_tlm_server/cmd_tlm_server_spec.rb +1 -1
- data/spec/tools/table_manager/table_item_parser_spec.rb +61 -0
- data/spec/tools/table_manager/table_item_spec.rb +1 -1
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a983d68cc93209052e7445e4f91ef35786384b9
|
4
|
+
data.tar.gz: 486a05584ea15df83c22a72ff7c62b04f6272867
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2de28ed4e8710fe8b997146fb8ab8bd7e2f3dd0c8ae7cad17f384bdce03c75c7eb70971b49f0faaca4e2eefd6fd6c08737ae11728bb71e4e99ed15cdd415b381
|
7
|
+
data.tar.gz: c29990062d02180e9f455132d045e2d89988d94e911d32af1d3025f308c11e85a433e651919c01e909951533d703f86f8dc129b7ad90afb708542ea7cb6fb25a
|
data/.travis.yml
CHANGED
data/Manifest.txt
CHANGED
@@ -354,6 +354,7 @@ demo/config/targets/TEMPLATED/target.txt
|
|
354
354
|
demo/config/tools/cmd_tlm_server/cmd_tlm_server.txt
|
355
355
|
demo/config/tools/cmd_tlm_server/cmd_tlm_server2.txt
|
356
356
|
demo/config/tools/data_viewer/data_viewer.txt
|
357
|
+
demo/config/tools/example_application.css
|
357
358
|
demo/config/tools/handbook_creator/default_toc.xsl
|
358
359
|
demo/config/tools/handbook_creator/handbook_creator.txt
|
359
360
|
demo/config/tools/handbook_creator/templates/command_packets.html.erb
|
@@ -369,7 +370,9 @@ demo/config/tools/handbook_creator/templates/pdf_header.html.erb
|
|
369
370
|
demo/config/tools/handbook_creator/templates/telemetry_packets.html.erb
|
370
371
|
demo/config/tools/handbook_creator/templates/telemetry_toc.html.erb
|
371
372
|
demo/config/tools/handbook_creator/templates/title.html.erb
|
373
|
+
demo/config/tools/launcher/launcher.css
|
372
374
|
demo/config/tools/launcher/launcher.txt
|
375
|
+
demo/config/tools/launcher/launcher2.css
|
373
376
|
demo/config/tools/launcher/launcher2.txt
|
374
377
|
demo/config/tools/limits_monitor/README.txt
|
375
378
|
demo/config/tools/opengl_builder/README.txt
|
@@ -380,6 +383,7 @@ demo/config/tools/table_manager/MCConfigurationTable_fsw1_def.txt
|
|
380
383
|
demo/config/tools/table_manager/MCConfigurationTable_fsw2_def.txt
|
381
384
|
demo/config/tools/table_manager/PPSSelectionTable_def.txt
|
382
385
|
demo/config/tools/table_manager/TLMMonitoringTable_def.txt
|
386
|
+
demo/config/tools/test_runner/test_runner.css
|
383
387
|
demo/config/tools/test_runner/test_runner.txt
|
384
388
|
demo/config/tools/tlm_extractor/_adcs_time.txt
|
385
389
|
demo/config/tools/tlm_extractor/tlm_extractor.txt
|
@@ -828,6 +832,7 @@ lib/cosmos/gui/text/completion.rb
|
|
828
832
|
lib/cosmos/gui/text/completion_line_edit.rb
|
829
833
|
lib/cosmos/gui/text/completion_text_edit.rb
|
830
834
|
lib/cosmos/gui/text/ruby_editor.rb
|
835
|
+
lib/cosmos/gui/utilities/analyze_log.rb
|
831
836
|
lib/cosmos/gui/utilities/screenshot.rb
|
832
837
|
lib/cosmos/gui/utilities/script_module_gui.rb
|
833
838
|
lib/cosmos/gui/widgets/full_text_search_line_edit.rb
|
@@ -1185,6 +1190,7 @@ spec/processors/watermark_processor_spec.rb
|
|
1185
1190
|
spec/script/cmd_tlm_server_spec.rb
|
1186
1191
|
spec/script/commands_disconnect_spec.rb
|
1187
1192
|
spec/script/commands_spec.rb
|
1193
|
+
spec/script/extract_spec.rb
|
1188
1194
|
spec/script/limits_spec.rb
|
1189
1195
|
spec/script/script_spec.rb
|
1190
1196
|
spec/script/scripting_spec.rb
|
@@ -1218,6 +1224,7 @@ spec/tools/cmd_tlm_server/router_thread_spec.rb
|
|
1218
1224
|
spec/tools/cmd_tlm_server/routers_spec.rb
|
1219
1225
|
spec/tools/launcher/launcher_config_spec.rb
|
1220
1226
|
spec/tools/table_manager/table_config_spec.rb
|
1227
|
+
spec/tools/table_manager/table_item_parser_spec.rb
|
1221
1228
|
spec/tools/table_manager/table_item_spec.rb
|
1222
1229
|
spec/tools/table_manager/table_parser_spec.rb
|
1223
1230
|
spec/tools/table_manager/table_spec.rb
|
@@ -29,5 +29,22 @@ Sleep 5000
|
|
29
29
|
Send !f{x} ; Exit text editor
|
30
30
|
WinActivate Command Extractor
|
31
31
|
WinWaitActive Command Extractor
|
32
|
+
Send !f{a} ; Analyze logs
|
33
|
+
WinWaitActive Warning
|
34
|
+
Sleep 500
|
35
|
+
Send {Enter} ;
|
36
|
+
WinWaitActive Log File
|
37
|
+
Click 450 305 ; Cancel
|
38
|
+
WinWaitActive Command Extractor
|
39
|
+
Send !f{a} ; Analyze logs
|
40
|
+
WinWaitActive Warning
|
41
|
+
Sleep 500
|
42
|
+
Send {Enter} ;
|
43
|
+
WinWaitActive Log File
|
44
|
+
Sleep 2000
|
45
|
+
Send {Enter} ; Done
|
46
|
+
WinWaitActive Packet Counts
|
47
|
+
Click 500 10 ; Close packet counts window
|
48
|
+
WinWaitActive Command Extractor
|
32
49
|
Send ^q
|
33
50
|
|
@@ -92,6 +92,14 @@ WinWaitActive Log
|
|
92
92
|
Click 455 307 ; Cancel
|
93
93
|
WinWaitActive Telemetry Extractor
|
94
94
|
|
95
|
+
; Add another packet so there will be common items in the shared column dialog
|
96
|
+
Click 100, 347 ; Target dropdown
|
97
|
+
Sleep 500
|
98
|
+
Click 100, 391 ; Select INST2 target
|
99
|
+
Sleep 500
|
100
|
+
Click 640 350 ; Add Packet INST2 ADCS
|
101
|
+
Sleep 500
|
102
|
+
|
95
103
|
Send ^f ; Toggle fill down checkbox
|
96
104
|
Sleep 500
|
97
105
|
Send ^m^m ; Check and uncheck Matlab header checkbox (we leave checked below)
|
@@ -100,7 +108,35 @@ Send ^u ; Check unique only
|
|
100
108
|
Sleep 500
|
101
109
|
Send !m ; Mode
|
102
110
|
Sleep 500
|
103
|
-
Send
|
111
|
+
Send a ; Shared columns (all)
|
112
|
+
Sleep 500
|
113
|
+
Send !m ; Mode
|
114
|
+
Sleep 500
|
115
|
+
Send s ; Shared columns (selected)
|
116
|
+
Sleep 500
|
117
|
+
Send !m ; Mode
|
118
|
+
Sleep 500
|
119
|
+
Send e ; Select shared columns
|
120
|
+
WinWaitActive Select Common Items
|
121
|
+
Sleep 500
|
122
|
+
Send {Enter} ; Cancel
|
123
|
+
WinWaitActive Telemetry Extractor
|
124
|
+
Send !m ; Mode
|
125
|
+
Sleep 500
|
126
|
+
Send e ; Select shared columns
|
127
|
+
WinWaitActive Select Common Items
|
128
|
+
Sleep 500
|
129
|
+
Click 88,51 ; Select TIMEFORMATTED item
|
130
|
+
Sleep 500
|
131
|
+
Click 125, 250 ; save
|
132
|
+
WinWaitActive Telemetry Extractor
|
133
|
+
Send !m ; Mode
|
134
|
+
Sleep 500
|
135
|
+
Send c ; Full column names
|
136
|
+
Sleep 500
|
137
|
+
Send !m ; Mode
|
138
|
+
Sleep 500
|
139
|
+
Send n ; Normal columns
|
104
140
|
Sleep 500
|
105
141
|
Click 180 405 ; Click in Downsample
|
106
142
|
Send +{Left 3}5.0{Enter} ; Downsample to 5 seconds
|
@@ -259,6 +295,31 @@ WinWaitActive Confirm
|
|
259
295
|
Send {Tab}{Enter}
|
260
296
|
WinWaitActive Telemetry Extractor
|
261
297
|
|
298
|
+
; Test Log Analyze
|
299
|
+
Send !f{a} ; Analyze logs
|
300
|
+
WinWaitActive Warning
|
301
|
+
Sleep 500
|
302
|
+
Send {Enter} ;
|
303
|
+
WinWaitActive Warning
|
304
|
+
Sleep 500
|
305
|
+
Send {Enter} ;
|
306
|
+
WinWaitActive Log File
|
307
|
+
Click 450 305 ; Cancel
|
308
|
+
WinWaitActive Telemetry Extractor
|
309
|
+
Send !f{a} ; Analyze logs
|
310
|
+
WinWaitActive Warning
|
311
|
+
Sleep 500
|
312
|
+
Send {Enter} ;
|
313
|
+
WinWaitActive Warning
|
314
|
+
Sleep 500
|
315
|
+
Send {Enter} ;
|
316
|
+
WinWaitActive Log File
|
317
|
+
Sleep 4000
|
318
|
+
Send {Enter} ; Done
|
319
|
+
WinWaitActive Packet Counts
|
320
|
+
Click 265 10 ; Close packet counts window
|
321
|
+
WinWaitActive Telemetry Extractor
|
322
|
+
|
262
323
|
; Test Batch Mode
|
263
324
|
Click 665 713 ; Clear Time Start
|
264
325
|
Sleep 100
|
data/bin/cosmos
CHANGED
@@ -22,6 +22,7 @@ def print_usage
|
|
22
22
|
puts " cosmos install directory_name # Creates a barebones COSMOS user directory"
|
23
23
|
puts " cosmos demo directory_name # Creates a demo COSMOS user directory"
|
24
24
|
puts " cosmos docs # Launches the documentation server"
|
25
|
+
puts " cosmos generate target <NAME> # Generate a COSMOS target"
|
25
26
|
puts ""
|
26
27
|
puts "Other Tools included with COSMOS:"
|
27
28
|
puts " rubysloc # Counts Ruby SLOC recursively"
|
@@ -51,6 +52,184 @@ def install(install_type, install_folder)
|
|
51
52
|
end
|
52
53
|
end
|
53
54
|
|
55
|
+
def gen_tgt(target)
|
56
|
+
%Q(# If you have custom limits responses or conversions you require them here
|
57
|
+
#REQUIRE #{target}_limits_response.rb
|
58
|
+
#REQUIRE #{target}_conversion.rb
|
59
|
+
|
60
|
+
# Ignored Parameters
|
61
|
+
# (parameters you don't want to see by default in various tools)
|
62
|
+
IGNORE_PARAMETER ID
|
63
|
+
|
64
|
+
# Ignored Items
|
65
|
+
# (items you don't want to see by default in various tools)
|
66
|
+
IGNORE_ITEM ID
|
67
|
+
|
68
|
+
# You can explicitly define the command and telemetry files
|
69
|
+
# you want to process and the order they are processed.
|
70
|
+
# If not then all files in cmd_tlm are processed in alphabetical order
|
71
|
+
#COMMANDS cmd.txt
|
72
|
+
#TELEMETRY tlm.txt
|
73
|
+
)
|
74
|
+
end
|
75
|
+
|
76
|
+
def gen_int(target)
|
77
|
+
%Q(# This is a segment of the main config/tools/cmd_tlm_server/cmd_tlm_server.txt
|
78
|
+
# that will be used when that files specifies AUTO_INTERFACE_TARGETS or INTERFACE_TARGET #{target}.
|
79
|
+
|
80
|
+
# Modify this according to your actual target connection
|
81
|
+
# Please see the COSMOS Interface Configuration documentation
|
82
|
+
|
83
|
+
INTERFACE #{target}_INT tcpip_client_interface.rb localhost 8080 8081 10.0 nil BURST 4 0xDEADBEEF
|
84
|
+
TARGET #{target}
|
85
|
+
)
|
86
|
+
end
|
87
|
+
|
88
|
+
def gen_cmd(target)
|
89
|
+
%Q(COMMAND #{target} COMMAND BIG_ENDIAN "Packet description"
|
90
|
+
# Keyword Name BitSize Type Min Max Default Description
|
91
|
+
APPEND_ID_PARAMETER ID 16 INT 1 1 1 "Identifier"
|
92
|
+
APPEND_PARAMETER VALUE 32 FLOAT 0 10.5 2.5 "Value"
|
93
|
+
APPEND_PARAMETER BOOL 8 UINT MIN MAX 0 "Boolean"
|
94
|
+
STATE FALSE 0
|
95
|
+
STATE TRUE 1
|
96
|
+
APPEND_PARAMETER LABEL 0 STRING "COSMOS" "The label to apply"
|
97
|
+
)
|
98
|
+
end
|
99
|
+
|
100
|
+
def gen_tlm(target)
|
101
|
+
%Q(TELEMETRY #{target} STATUS BIG_ENDIAN "Telemetry description"
|
102
|
+
# Keyword Name BitSize Type ID Description
|
103
|
+
APPEND_ID_ITEM ID 16 INT 1 "Identifier"
|
104
|
+
APPEND_ITEM VALUE 32 FLOAT "Value"
|
105
|
+
APPEND_ITEM BOOL 8 UINT "Boolean"
|
106
|
+
STATE FALSE 0
|
107
|
+
STATE TRUE 1
|
108
|
+
APPEND_ITEM LABEL 0 STRING "The label to apply"
|
109
|
+
)
|
110
|
+
end
|
111
|
+
|
112
|
+
def gen_lib(target)
|
113
|
+
%Q(# This class can be used in your scripts like so:
|
114
|
+
# require '#{target.downcase}'
|
115
|
+
# #{target.downcase} = #{target.capitalize}.new
|
116
|
+
# #{target.downcase}.utility
|
117
|
+
# For more information see the COSMOS scripting guide
|
118
|
+
|
119
|
+
class #{target.capitalize}
|
120
|
+
def utility
|
121
|
+
end
|
122
|
+
end
|
123
|
+
)
|
124
|
+
end
|
125
|
+
|
126
|
+
def gen_proc(target)
|
127
|
+
%Q(# Script Runner test script
|
128
|
+
cmd("#{target} COMMAND")
|
129
|
+
wait_check("#{target} STATUS BOOL == 'FALSE'", 5)
|
130
|
+
)
|
131
|
+
end
|
132
|
+
|
133
|
+
def gen_test(target)
|
134
|
+
%Q(# To add this test to Test Runner edit config/tools/test_runner/test_runner.txt
|
135
|
+
# Add this line:
|
136
|
+
# REQUIRE_UTILITY '#{target.downcase}_test'
|
137
|
+
#
|
138
|
+
# Test Runner test script
|
139
|
+
class #{target.capitalize}Test < Cosmos::Test
|
140
|
+
# def setup
|
141
|
+
# # Implement group level setup
|
142
|
+
# end
|
143
|
+
|
144
|
+
def test_command
|
145
|
+
cmd("#{target} COMMAND")
|
146
|
+
wait_check("#{target} STATUS BOOL == 'FALSE'", 5)
|
147
|
+
end
|
148
|
+
|
149
|
+
# def teardown
|
150
|
+
# # Implement group level teardown
|
151
|
+
# end
|
152
|
+
end
|
153
|
+
|
154
|
+
class #{target.capitalize}Suite < Cosmos::TestSuite
|
155
|
+
# def setup
|
156
|
+
# # Implement suite level setup
|
157
|
+
# end
|
158
|
+
|
159
|
+
def initialize
|
160
|
+
super()
|
161
|
+
add_test('#{target.capitalize}Test')
|
162
|
+
end
|
163
|
+
|
164
|
+
# def teardown
|
165
|
+
# # Implement suite level teardown
|
166
|
+
# end
|
167
|
+
end
|
168
|
+
)
|
169
|
+
end
|
170
|
+
|
171
|
+
def gen_screen(target)
|
172
|
+
%Q(SCREEN AUTO AUTO 1.0
|
173
|
+
|
174
|
+
TITLE "Status"
|
175
|
+
|
176
|
+
VERTICALBOX
|
177
|
+
SECTIONHEADER "Information"
|
178
|
+
LABELVALUE #{target} STATUS VALUE
|
179
|
+
LABELVALUE #{target} STATUS BOOL
|
180
|
+
END
|
181
|
+
)
|
182
|
+
end
|
183
|
+
|
184
|
+
def generate(args)
|
185
|
+
case args[0]
|
186
|
+
when 'target'
|
187
|
+
unless File.exist?('./config/targets/')
|
188
|
+
puts "generator must be run at the root of the COSMOS user installation"
|
189
|
+
return
|
190
|
+
end
|
191
|
+
if args.length != 2
|
192
|
+
puts "Usage: cosmos generate target <NAME>"
|
193
|
+
return
|
194
|
+
end
|
195
|
+
target = args[1].upcase
|
196
|
+
target_path = File.join("./config/targets/#{target}")
|
197
|
+
if File.exist?(target_path)
|
198
|
+
puts "Warning! Target #{target} already exists! Completely DELETE existing target? (N/y)"
|
199
|
+
STDOUT.flush # Output the warning
|
200
|
+
name = STDIN.gets.chomp
|
201
|
+
if name != 'y'
|
202
|
+
puts "Aborting generator"
|
203
|
+
return
|
204
|
+
end
|
205
|
+
FileUtils.rm_rf target_path
|
206
|
+
sleep 1 # Allow the delete to occur
|
207
|
+
end
|
208
|
+
FileUtils.mkdir(target_path)
|
209
|
+
File.open(File.join(target_path, 'target.txt'), 'w') { |file| file.write(gen_tgt(target)) }
|
210
|
+
File.open(File.join(target_path, 'cmd_tlm_server.txt'), 'w') { |file| file.write(gen_int(target)) }
|
211
|
+
FileUtils.mkdir(File.join(target_path, 'cmd_tlm'))
|
212
|
+
File.open(File.join(target_path, 'cmd_tlm', 'cmd.txt'), 'w') { |file| file.write(gen_cmd(target)) }
|
213
|
+
File.open(File.join(target_path, 'cmd_tlm', 'tlm.txt'), 'w') { |file| file.write(gen_tlm(target)) }
|
214
|
+
FileUtils.mkdir(File.join(target_path, 'lib'))
|
215
|
+
File.open(File.join(target_path, 'lib', "#{target.downcase}.rb"), 'w') { |file| file.write(gen_lib(target)) }
|
216
|
+
FileUtils.mkdir(File.join(target_path, 'procedures'))
|
217
|
+
File.open(File.join(target_path, 'procedures', "#{target.downcase}_script.rb"), 'w') { |file| file.write(gen_proc(target)) }
|
218
|
+
File.open(File.join(target_path, 'procedures', "#{target.downcase}_test.rb"), 'w') { |file| file.write(gen_test(target)) }
|
219
|
+
FileUtils.mkdir(File.join(target_path, 'screens'))
|
220
|
+
File.open(File.join(target_path, 'screens', "status.txt"), 'w') { |file| file.write(gen_screen(target)) }
|
221
|
+
|
222
|
+
puts "Target #{target} successfully generated!\n"
|
223
|
+
puts "Edit config/system/system.txt add add the line 'DECLARE_TARGET #{target}'"
|
224
|
+
# AUTO_INTERFACE_TARGETS # Use cmd_tlm_server.txt from all targets declared in system.txt
|
225
|
+
puts "You may also have to edit your config/tools/cmd_tlm_server/cmd_tlm_server.txt"
|
226
|
+
puts "and interface the target unless you're using AUTO_INTERFACE_TARGETS."
|
227
|
+
puts "See the COSMOS System Configuration documentation for more details.\n"
|
228
|
+
else # Unknown generator
|
229
|
+
puts "Unknown generator #{args[0]}"
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
54
233
|
if not ARGV[0].nil? # argument(s) given
|
55
234
|
|
56
235
|
# Handle each task
|
@@ -64,29 +243,20 @@ if not ARGV[0].nil? # argument(s) given
|
|
64
243
|
thread.join
|
65
244
|
|
66
245
|
when 'install'
|
67
|
-
####################################
|
68
246
|
# Create a COSMOS barebones user directory
|
69
|
-
####################################
|
70
247
|
install('', 'install')
|
71
248
|
|
72
249
|
when 'demo'
|
73
|
-
####################################
|
74
250
|
# Create a COSMOS demo user directory
|
75
|
-
####################################
|
76
251
|
install('Demo', 'demo')
|
77
252
|
|
78
|
-
when '
|
79
|
-
|
80
|
-
# Print Usage
|
81
|
-
####################################
|
253
|
+
when 'generate'
|
254
|
+
generate(ARGV[1..-1])
|
82
255
|
|
256
|
+
when 'help'
|
83
257
|
print_usage()
|
84
258
|
|
85
259
|
else # Unknown task
|
86
|
-
####################################
|
87
|
-
# Unknown task
|
88
|
-
####################################
|
89
|
-
|
90
260
|
puts "Unknown task: #{ARGV[0]}\n"
|
91
261
|
print_usage()
|
92
262
|
end
|
data/data/crc.txt
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
"lib/cosmos/processors/processor.rb" 0x1FEB7030
|
19
19
|
"lib/cosmos/processors/statistics_processor.rb" 0xE732AE7F
|
20
20
|
"lib/cosmos/processors/watermark_processor.rb" 0x8829E260
|
21
|
-
"lib/cosmos/version.rb"
|
21
|
+
"lib/cosmos/version.rb" 0x26575DA9
|
22
22
|
"lib/cosmos/conversions/new_packet_log_conversion.rb" 0x4AA03555
|
23
23
|
"lib/cosmos/conversions/segmented_polynomial_conversion.rb" 0xC498CE81
|
24
24
|
"lib/cosmos/conversions/processor_conversion.rb" 0xC72B73BD
|
@@ -56,12 +56,12 @@
|
|
56
56
|
"lib/cosmos/gui/dialogs/find_replace_dialog.rb" 0xE5BA1A34
|
57
57
|
"lib/cosmos/gui/dialogs/progress_dialog.rb" 0x0E0358D9
|
58
58
|
"lib/cosmos/gui/dialogs/tlm_details_dialog.rb" 0xFD3D4089
|
59
|
-
"lib/cosmos/gui/dialogs/scroll_text_dialog.rb"
|
59
|
+
"lib/cosmos/gui/dialogs/scroll_text_dialog.rb" 0x65A1806D
|
60
60
|
"lib/cosmos/gui/dialogs/cmd_details_dialog.rb" 0xCC67DC8A
|
61
61
|
"lib/cosmos/gui/dialogs/tlm_edit_dialog.rb" 0x4610C6FD
|
62
62
|
"lib/cosmos/gui/dialogs/exception_list_dialog.rb" 0xC3CB4034
|
63
63
|
"lib/cosmos/gui/text/completion_line_edit.rb" 0x16E0A174
|
64
|
-
"lib/cosmos/gui/text/ruby_editor.rb"
|
64
|
+
"lib/cosmos/gui/text/ruby_editor.rb" 0xA5114083
|
65
65
|
"lib/cosmos/gui/text/completion_text_edit.rb" 0xCF57B24D
|
66
66
|
"lib/cosmos/gui/text/completion.rb" 0x38329713
|
67
67
|
"lib/cosmos/gui/opengl/moon_model.rb" 0xC84B01EC
|
@@ -77,8 +77,9 @@
|
|
77
77
|
"lib/cosmos/gui/opengl/gl_viewport.rb" 0x49CAD811
|
78
78
|
"lib/cosmos/gui/opengl/gl_material.rb" 0xA2356712
|
79
79
|
"lib/cosmos/gui/opengl/gl_shape.rb" 0x91186908
|
80
|
-
"lib/cosmos/gui/qt_tool.rb"
|
80
|
+
"lib/cosmos/gui/qt_tool.rb" 0x72292154
|
81
81
|
"lib/cosmos/gui/qt.rb" 0x28A1B8BE
|
82
|
+
"lib/cosmos/gui/utilities/analyze_log.rb" 0x293FA18B
|
82
83
|
"lib/cosmos/gui/utilities/screenshot.rb" 0x3E15E6FF
|
83
84
|
"lib/cosmos/gui/utilities/script_module_gui.rb" 0xEEFA7D92
|
84
85
|
"lib/cosmos/gui/choosers/file_chooser.rb" 0x575A4333
|
@@ -105,8 +106,8 @@
|
|
105
106
|
"lib/cosmos/packets/packet_config.rb" 0xCC77F76F
|
106
107
|
"lib/cosmos/packets/packet_item.rb" 0x6C30F01E
|
107
108
|
"lib/cosmos/packets/limits.rb" 0x93BE03A8
|
108
|
-
"lib/cosmos/packets/packet_item_limits.rb"
|
109
|
-
"lib/cosmos/packets/structure_item.rb"
|
109
|
+
"lib/cosmos/packets/packet_item_limits.rb" 0xC4534EAB
|
110
|
+
"lib/cosmos/packets/structure_item.rb" 0x12BF9916
|
110
111
|
"lib/cosmos/core_ext.rb" 0x1951B346
|
111
112
|
"lib/cosmos/streams/stream_protocol.rb" 0xEC382CA0
|
112
113
|
"lib/cosmos/streams/tcpip_client_stream.rb" 0xA644ADBA
|
@@ -126,7 +127,7 @@
|
|
126
127
|
"lib/cosmos/interfaces/serial_interface.rb" 0xC376DDA0
|
127
128
|
"lib/cosmos/interfaces/stream_interface.rb" 0xDC602D7B
|
128
129
|
"lib/cosmos/interfaces/simulated_target_interface.rb" 0x15DC496F
|
129
|
-
"lib/cosmos/interfaces/interface.rb"
|
130
|
+
"lib/cosmos/interfaces/interface.rb" 0x15466B1B
|
130
131
|
"lib/cosmos/interfaces/linc_interface.rb" 0xEFBDE194
|
131
132
|
"lib/cosmos/interfaces/tcpip_server_interface.rb" 0xC8F6E908
|
132
133
|
"lib/cosmos/interfaces/tcpip_client_interface.rb" 0x5F0DB50D
|
@@ -135,16 +136,16 @@
|
|
135
136
|
"lib/cosmos/packet_logs/packet_log_reader.rb" 0x6DA9EED7
|
136
137
|
"lib/cosmos/packet_logs/packet_log_writer.rb" 0x75E82380
|
137
138
|
"lib/cosmos/packet_logs/ccsds_log_reader.rb" 0x0B80AEA6
|
138
|
-
"lib/cosmos/system/system.rb"
|
139
|
+
"lib/cosmos/system/system.rb" 0x9C0C244B
|
139
140
|
"lib/cosmos/system/target.rb" 0x423D4370
|
140
141
|
"lib/cosmos/script/scripting.rb" 0x04B4FFF9
|
141
142
|
"lib/cosmos/script/telemetry.rb" 0x12573CAD
|
142
143
|
"lib/cosmos/script/commands.rb" 0x5AE615BF
|
143
|
-
"lib/cosmos/script/extract.rb"
|
144
|
-
"lib/cosmos/script/cmd_tlm_server.rb"
|
144
|
+
"lib/cosmos/script/extract.rb" 0x456A8C23
|
145
|
+
"lib/cosmos/script/cmd_tlm_server.rb" 0x41C35E5A
|
145
146
|
"lib/cosmos/script/limits.rb" 0x9CED41D8
|
146
147
|
"lib/cosmos/script/script.rb" 0xF1B3E1F2
|
147
|
-
"lib/cosmos/script/tools.rb"
|
148
|
+
"lib/cosmos/script/tools.rb" 0x3C9C1D99
|
148
149
|
"lib/cosmos/ccsds/ccsds_packet.rb" 0xA30EE27E
|
149
150
|
"lib/cosmos/ccsds/ccsds_parser.rb" 0x89A5FB3A
|
150
151
|
"lib/cosmos/win32/excel.rb" 0xB4D4195E
|
@@ -169,12 +170,12 @@
|
|
169
170
|
"lib/cosmos/core_ext/range.rb" 0x5D3E08D1
|
170
171
|
"lib/cosmos/core_ext/file.rb" 0x9D899F88
|
171
172
|
"lib/cosmos/core_ext/kernel.rb" 0xF6437996
|
172
|
-
"lib/cosmos/tools/launcher/launcher.rb"
|
173
|
+
"lib/cosmos/tools/launcher/launcher.rb" 0xCCADD3C6
|
173
174
|
"lib/cosmos/tools/launcher/launcher_multitool.rb" 0x1020A3D0
|
174
175
|
"lib/cosmos/tools/launcher/launcher_tool.rb" 0xE2F186A7
|
175
176
|
"lib/cosmos/tools/launcher/launcher_config.rb" 0x569C343D
|
176
177
|
"lib/cosmos/tools/table_manager/table_item.rb" 0x98E1F9F5
|
177
|
-
"lib/cosmos/tools/table_manager/table_manager.rb"
|
178
|
+
"lib/cosmos/tools/table_manager/table_manager.rb" 0x678800F2
|
178
179
|
"lib/cosmos/tools/table_manager/table_config.rb" 0xB2CBF85C
|
179
180
|
"lib/cosmos/tools/table_manager/table_manager_core.rb" 0xEA6F255F
|
180
181
|
"lib/cosmos/tools/table_manager/table_item_parser.rb" 0xA0F4A6F0
|
@@ -183,7 +184,7 @@
|
|
183
184
|
"lib/cosmos/tools/replay/replay.rb" 0x79D68481
|
184
185
|
"lib/cosmos/tools/replay/replay_server.rb" 0x307A7329
|
185
186
|
"lib/cosmos/tools/tlm_viewer/tlm_viewer_config.rb" 0x90964EBE
|
186
|
-
"lib/cosmos/tools/tlm_viewer/tlm_viewer.rb"
|
187
|
+
"lib/cosmos/tools/tlm_viewer/tlm_viewer.rb" 0x9347719C
|
187
188
|
"lib/cosmos/tools/tlm_viewer/widgets/labeltrendlimitsbar_widget.rb" 0xD8A2AADE
|
188
189
|
"lib/cosmos/tools/tlm_viewer/widgets/matrixbycolumns_widget.rb" 0x219D3181
|
189
190
|
"lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb" 0x5935BAC8
|
@@ -246,37 +247,37 @@
|
|
246
247
|
"lib/cosmos/tools/tlm_viewer/widgets/canvasdot_widget.rb" 0x9454DCA0
|
247
248
|
"lib/cosmos/tools/tlm_viewer/widgets/canvaslabelvalue_widget.rb" 0x5784F28C
|
248
249
|
"lib/cosmos/tools/tlm_viewer/widgets.rb" 0xED06BC7C
|
249
|
-
"lib/cosmos/tools/tlm_viewer/screen.rb"
|
250
|
-
"lib/cosmos/tools/data_viewer/data_viewer.rb"
|
250
|
+
"lib/cosmos/tools/tlm_viewer/screen.rb" 0x36F35313
|
251
|
+
"lib/cosmos/tools/data_viewer/data_viewer.rb" 0x0AD36F5A
|
251
252
|
"lib/cosmos/tools/data_viewer/dump_component.rb" 0x6942C5D6
|
252
253
|
"lib/cosmos/tools/data_viewer/data_viewer_component.rb" 0x3525E13F
|
253
254
|
"lib/cosmos/tools/test_runner/test.rb" 0x264AB62E
|
254
255
|
"lib/cosmos/tools/test_runner/results_writer.rb" 0x1546565F
|
255
256
|
"lib/cosmos/tools/test_runner/test_runner_chooser.rb" 0xB2BC3115
|
256
|
-
"lib/cosmos/tools/test_runner/test_runner.rb"
|
257
|
+
"lib/cosmos/tools/test_runner/test_runner.rb" 0x552EC1E6
|
257
258
|
"lib/cosmos/tools/tlm_extractor/text_item_chooser.rb" 0x587768C6
|
258
|
-
"lib/cosmos/tools/tlm_extractor/tlm_extractor.rb"
|
259
|
+
"lib/cosmos/tools/tlm_extractor/tlm_extractor.rb" 0x878B146C
|
259
260
|
"lib/cosmos/tools/tlm_extractor/tlm_extractor_processor.rb" 0x2AA9C2F5
|
260
|
-
"lib/cosmos/tools/tlm_extractor/tlm_extractor_config.rb"
|
261
|
+
"lib/cosmos/tools/tlm_extractor/tlm_extractor_config.rb" 0x188E919F
|
261
262
|
"lib/cosmos/tools/cmd_tlm_server/background_tasks.rb" 0xF4182B10
|
262
|
-
"lib/cosmos/tools/cmd_tlm_server/routers.rb"
|
263
|
+
"lib/cosmos/tools/cmd_tlm_server/routers.rb" 0xEBB57C08
|
263
264
|
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_config.rb" 0xADDA02A6
|
264
265
|
"lib/cosmos/tools/cmd_tlm_server/gui/targets_tab.rb" 0xC1D7D2BF
|
265
266
|
"lib/cosmos/tools/cmd_tlm_server/gui/logging_tab.rb" 0xFF291A22
|
266
267
|
"lib/cosmos/tools/cmd_tlm_server/gui/status_tab.rb" 0xE0667118
|
267
268
|
"lib/cosmos/tools/cmd_tlm_server/gui/packets_tab.rb" 0xD9D405D2
|
268
|
-
"lib/cosmos/tools/cmd_tlm_server/gui/interfaces_tab.rb"
|
269
|
-
"lib/cosmos/tools/cmd_tlm_server/commanding.rb"
|
269
|
+
"lib/cosmos/tools/cmd_tlm_server/gui/interfaces_tab.rb" 0x9363C9AB
|
270
|
+
"lib/cosmos/tools/cmd_tlm_server/commanding.rb" 0xF8EAED9C
|
270
271
|
"lib/cosmos/tools/cmd_tlm_server/background_task.rb" 0xC2141E7E
|
271
272
|
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb" 0x50E37D3B
|
272
|
-
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server.rb"
|
273
|
+
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server.rb" 0xB5B61323
|
273
274
|
"lib/cosmos/tools/cmd_tlm_server/connections.rb" 0x6DC54689
|
274
|
-
"lib/cosmos/tools/cmd_tlm_server/api.rb"
|
275
|
-
"lib/cosmos/tools/cmd_tlm_server/packet_logging.rb"
|
276
|
-
"lib/cosmos/tools/cmd_tlm_server/interfaces.rb"
|
275
|
+
"lib/cosmos/tools/cmd_tlm_server/api.rb" 0x5C103F37
|
276
|
+
"lib/cosmos/tools/cmd_tlm_server/packet_logging.rb" 0xCE912CF1
|
277
|
+
"lib/cosmos/tools/cmd_tlm_server/interfaces.rb" 0x0F55CAF5
|
277
278
|
"lib/cosmos/tools/cmd_tlm_server/router_thread.rb" 0x5070D428
|
278
|
-
"lib/cosmos/tools/cmd_tlm_server/interface_thread.rb"
|
279
|
-
"lib/cosmos/tools/packet_viewer/packet_viewer.rb"
|
279
|
+
"lib/cosmos/tools/cmd_tlm_server/interface_thread.rb" 0x05428CB5
|
280
|
+
"lib/cosmos/tools/packet_viewer/packet_viewer.rb" 0xEFDFB336
|
280
281
|
"lib/cosmos/tools/cmd_sender/cmd_sender.rb" 0xC47CB417
|
281
282
|
"lib/cosmos/tools/cmd_sender/cmd_sender_item_delegate.rb" 0x8297CC9D
|
282
283
|
"lib/cosmos/tools/cmd_sender/cmd_sender_text_edit.rb" 0xB192AF6E
|
@@ -300,10 +301,10 @@
|
|
300
301
|
"lib/cosmos/tools/tlm_grapher/data_object_editors/singlexy_data_object_editor.rb" 0xB39257A1
|
301
302
|
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_tab.rb" 0xD0AC7888
|
302
303
|
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_data_object_editor.rb" 0xF016E145
|
303
|
-
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_realtime_thread.rb"
|
304
|
+
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_realtime_thread.rb" 0xC9003F38
|
304
305
|
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_plot_editor.rb" 0xE9362CE6
|
305
306
|
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_tool.rb" 0xE1E3C58B
|
306
|
-
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_config.rb"
|
307
|
+
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_config.rb" 0x8E0A65A0
|
307
308
|
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_logfile_thread.rb" 0x7A0CBD87
|
308
309
|
"lib/cosmos/tools/tlm_grapher/plot_editors/singlexy_plot_editor.rb" 0xA9B7CD4C
|
309
310
|
"lib/cosmos/tools/tlm_grapher/plot_editors/linegraph_plot_editor.rb" 0x38E79C34
|
@@ -315,12 +316,12 @@
|
|
315
316
|
"lib/cosmos/tools/tlm_grapher/plots/xy_plot.rb" 0x98F7712F
|
316
317
|
"lib/cosmos/tools/opengl_builder/scene_config.rb" 0x15B59793
|
317
318
|
"lib/cosmos/tools/opengl_builder/opengl_builder.rb" 0xB161B0F9
|
318
|
-
"lib/cosmos/tools/limits_monitor/limits_monitor.rb"
|
319
|
-
"lib/cosmos/tools/cmd_extractor/cmd_extractor.rb"
|
319
|
+
"lib/cosmos/tools/limits_monitor/limits_monitor.rb" 0x379F9FE5
|
320
|
+
"lib/cosmos/tools/cmd_extractor/cmd_extractor.rb" 0xDB33EFF8
|
320
321
|
"lib/cosmos/tools/handbook_creator/handbook_creator_config.rb" 0xC4B816DE
|
321
322
|
"lib/cosmos/tools/handbook_creator/handbook_creator.rb" 0x729A16C4
|
322
|
-
"lib/cosmos/tools/script_runner/script_runner.rb"
|
323
|
-
"lib/cosmos/tools/script_runner/script_runner_frame.rb"
|
323
|
+
"lib/cosmos/tools/script_runner/script_runner.rb" 0xD755BD12
|
324
|
+
"lib/cosmos/tools/script_runner/script_runner_frame.rb" 0x6107EB5F
|
324
325
|
"lib/cosmos/tools/script_runner/script_audit.rb" 0xB857FA4A
|
325
326
|
"lib/cosmos/tools/script_runner/script_runner_config.rb" 0x1E46E8AA
|
326
327
|
"lib/cosmos/conversions.rb" 0x43679D05
|