cosmos 3.1.1 → 3.1.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/Manifest.txt +6 -0
- data/autohotkey/config/tools/handbook_creator/templates/command_packets.html.erb +1 -1
- data/autohotkey/config/tools/handbook_creator/templates/footer.html.erb +2 -2
- data/autohotkey/config/tools/handbook_creator/templates/header.html.erb +4 -4
- data/autohotkey/tools/autohotkey.rb +1 -1
- data/autohotkey/tools/cmd_tlm_server.ahk +1 -0
- data/autohotkey/tools/packet_viewer.ahk +45 -2
- data/data/crc.txt +20 -15
- data/demo/Rakefile +16 -0
- data/demo/config/data/crc.txt +3 -3
- data/demo/config/tools/handbook_creator/templates/footer.html.erb +2 -2
- data/demo/config/tools/handbook_creator/templates/header.html.erb +4 -4
- data/demo/procedures/example_test.rb +1 -1
- data/install/Rakefile +16 -0
- data/install/config/data/crc.txt +2 -2
- data/install/config/tools/handbook_creator/templates/footer.html.erb +2 -2
- data/install/config/tools/handbook_creator/templates/header.html.erb +4 -4
- data/lib/cosmos/gui/dialogs/tlm_details_dialog.rb +64 -57
- data/lib/cosmos/gui/line_graph/line_graph_scaling.rb +0 -9
- data/lib/cosmos/gui/qt.rb +22 -18
- data/lib/cosmos/packet_logs/packet_log_writer.rb +6 -2
- data/lib/cosmos/script/script.rb +1 -1
- data/lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_config.rb +0 -1
- data/lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb +99 -784
- data/lib/cosmos/tools/cmd_tlm_server/gui/interfaces_tab.rb +189 -0
- data/lib/cosmos/tools/cmd_tlm_server/gui/logging_tab.rb +176 -0
- data/lib/cosmos/tools/cmd_tlm_server/gui/packets_tab.rb +144 -0
- data/lib/cosmos/tools/cmd_tlm_server/gui/status_tab.rb +240 -0
- data/lib/cosmos/tools/cmd_tlm_server/gui/targets_tab.rb +90 -0
- data/lib/cosmos/tools/launcher/launcher_config.rb +142 -110
- data/lib/cosmos/tools/test_runner/results_writer.rb +1 -1
- data/lib/cosmos/tools/test_runner/test_runner.rb +3 -2
- data/lib/cosmos/tools/tlm_grapher/data_objects/data_object.rb +18 -2
- data/lib/cosmos/tools/tlm_grapher/data_objects/housekeeping_data_object.rb +4 -9
- data/lib/cosmos/tools/tlm_grapher/data_objects/xy_data_object.rb +5 -5
- data/lib/cosmos/top_level.rb +1 -1
- data/lib/cosmos/version.rb +4 -4
- data/run_gui_tests.bat +33 -31
- data/spec/core_ext/time_spec.rb +51 -0
- data/spec/script/script_spec.rb +96 -0
- data/spec/tools/cmd_tlm_server/commanding_spec.rb +28 -0
- data/spec/tools/cmd_tlm_server/connections_spec.rb +88 -0
- data/spec/tools/cmd_tlm_server/router_thread_spec.rb +78 -25
- data/spec/tools/launcher/launcher_config_spec.rb +460 -0
- data/spec/top_level/top_level_spec.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3b5933b0b42e6b0a29439cad8a1c5caeb1331d0
|
4
|
+
data.tar.gz: f12282bd56e9d88999a8c1aec6ef0fb652f63a49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45e4e2ab72b0069f1616b8af96342dacf2731778047f8f4ebea2cab592dbbc60283d2f023fc7f471dec61ab66d3dcaa22c40cf7fd20d1810d2e40bb53efe213e
|
7
|
+
data.tar.gz: 54ff36f53c2187b1dc92253194d91c27a47c224c5346dfe565baed10ac461a6d9ec23db2323db18c7af82fe4dd846bb53a54a8b6288ce09423be98f6034dfdd9
|
data/Manifest.txt
CHANGED
@@ -843,6 +843,11 @@ lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_config.rb
|
|
843
843
|
lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb
|
844
844
|
lib/cosmos/tools/cmd_tlm_server/commanding.rb
|
845
845
|
lib/cosmos/tools/cmd_tlm_server/connections.rb
|
846
|
+
lib/cosmos/tools/cmd_tlm_server/gui/interfaces_tab.rb
|
847
|
+
lib/cosmos/tools/cmd_tlm_server/gui/logging_tab.rb
|
848
|
+
lib/cosmos/tools/cmd_tlm_server/gui/packets_tab.rb
|
849
|
+
lib/cosmos/tools/cmd_tlm_server/gui/status_tab.rb
|
850
|
+
lib/cosmos/tools/cmd_tlm_server/gui/targets_tab.rb
|
846
851
|
lib/cosmos/tools/cmd_tlm_server/interface_thread.rb
|
847
852
|
lib/cosmos/tools/cmd_tlm_server/interfaces.rb
|
848
853
|
lib/cosmos/tools/cmd_tlm_server/packet_logging.rb
|
@@ -1105,6 +1110,7 @@ spec/tools/cmd_tlm_server/interfaces_spec.rb
|
|
1105
1110
|
spec/tools/cmd_tlm_server/packet_logging_spec.rb
|
1106
1111
|
spec/tools/cmd_tlm_server/router_thread_spec.rb
|
1107
1112
|
spec/tools/cmd_tlm_server/routers_spec.rb
|
1113
|
+
spec/tools/launcher/launcher_config_spec.rb
|
1108
1114
|
spec/top_level/top_level_spec.rb
|
1109
1115
|
spec/utilities/crc_spec.rb
|
1110
1116
|
spec/utilities/csv_spec.rb
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<!-- Bootstrap core JavaScript
|
4
4
|
================================================== -->
|
5
5
|
<!-- Placed at the end of the document so the pages load faster -->
|
6
|
-
<script src="
|
7
|
-
<script src="
|
6
|
+
<script src="<%= File.join('assets', 'js', 'jquery-1.10.2.min.js') %>"></script>
|
7
|
+
<script src="<%= File.join('assets', 'js', 'bootstrap.min.js') %>"></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -10,14 +10,14 @@
|
|
10
10
|
<title><%= title %></title>
|
11
11
|
|
12
12
|
<!-- Bootstrap core CSS -->
|
13
|
-
<link href="
|
13
|
+
<link href="<%= File.join('assets', 'css', 'bootstrap.min.css') %>" rel="stylesheet">
|
14
14
|
<!-- Bootstrap theme -->
|
15
|
-
<link href="
|
15
|
+
<link href="<%= File.join('assets', 'css', 'bootstrap-theme.min.css') %>" rel="stylesheet">
|
16
16
|
|
17
17
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
18
18
|
<!--[if lt IE 9]>
|
19
|
-
<script src="
|
20
|
-
<script src="
|
19
|
+
<script src="<%= File.join('assets', 'js', 'html5shiv.js') %>"></script>
|
20
|
+
<script src="<%= File.join('assets', 'js', 'respond.min.js') %>"></script>
|
21
21
|
<![endif]-->
|
22
22
|
</head>
|
23
23
|
|
@@ -30,7 +30,7 @@ def autohotkey(command_name, ahk_script = nil)
|
|
30
30
|
# Clean up CTS log files
|
31
31
|
Dir["autohotkey/outputs/logs/*"].each do |file|
|
32
32
|
next if File.basename(file) == "cmd.bin" || File.basename(file) == "tlm.bin" ||
|
33
|
-
File.basename(file) == "bigtlm.bin"
|
33
|
+
File.basename(file) == "bigtlm.bin" || File.basename(file).include?('exception')
|
34
34
|
File.delete file
|
35
35
|
end
|
36
36
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
SetWinDelay 500
|
2
|
+
SetTitleMatchMode 2 ; Contain the title anywhere to match
|
1
3
|
WinWaitActive Packet Viewer
|
2
4
|
Sleep 2000
|
3
5
|
Run ruby.exe %A_ScriptDir%/CmdTlmServer
|
@@ -125,13 +127,54 @@ Sleep 500
|
|
125
127
|
Send {Enter}
|
126
128
|
Sleep 2000
|
127
129
|
|
130
|
+
Click right 380, 595 ; TEMP1 details
|
131
|
+
Sleep 500
|
132
|
+
Send {Tab}{Enter}
|
133
|
+
WinWaitActive TEMP1
|
134
|
+
|
135
|
+
WinActivate Packet Viewer
|
136
|
+
WinWaitActive Packet Viewer
|
137
|
+
Click right 380, 685 ; ARY details
|
138
|
+
Sleep 500
|
139
|
+
Send {Tab}{Enter}
|
140
|
+
WinWaitActive ARY
|
141
|
+
|
142
|
+
WinActivate Packet Viewer
|
143
|
+
WinWaitActive Packet Viewer
|
144
|
+
Click right 380, 735 ; COLLECT_TYPE details
|
145
|
+
Sleep 500
|
146
|
+
Send {Tab}{Enter}
|
147
|
+
WinWaitActive COLLECT_TYPE
|
148
|
+
|
149
|
+
WinActivate TEMP1
|
150
|
+
WinWaitActive TEMP1
|
151
|
+
Sleep 5000
|
152
|
+
|
153
|
+
Run ruby.exe %A_ScriptDir%/ScriptRunner -w 600 -t 600
|
154
|
+
Sleep 2000
|
155
|
+
WinActivate Script Runner
|
156
|
+
Sleep 500
|
157
|
+
Send set_limits("INST","HEALTH_STATUS","TEMP1",-110,-105,105,110,-100,100){ENTER}
|
158
|
+
Send set_limits_set("CUSTOM"){ENTER}
|
159
|
+
Sleep 500
|
160
|
+
Click 400, 88 ; Start
|
161
|
+
|
162
|
+
WinActivate TEMP1
|
163
|
+
WinWaitActive TEMP1
|
164
|
+
Sleep 1000
|
165
|
+
|
166
|
+
WinActivate Script Runner
|
167
|
+
WinWaitActive Script Runner
|
168
|
+
Send ^q
|
169
|
+
WinWaitActive Save
|
170
|
+
Send n
|
171
|
+
|
128
172
|
; Close down command and telemetry server
|
129
173
|
WinActivate Command and Telemetry Server
|
130
|
-
|
174
|
+
WinWaitActive Command and Telemetry Server
|
131
175
|
Send ^q
|
132
176
|
Sleep 500
|
133
177
|
Send {Enter}
|
134
|
-
Sleep 500
|
135
178
|
|
136
179
|
; Cleanup and last of the options (help menu selections)
|
137
180
|
WinActivate Packet Viewer
|
data/data/crc.txt
CHANGED
@@ -18,9 +18,9 @@
|
|
18
18
|
"lib/cosmos/conversions/polynomial_conversion.rb" 0xF6440F21
|
19
19
|
"lib/cosmos/conversions/received_count_conversion.rb" 0xD61BEB37
|
20
20
|
"lib/cosmos/utilities.rb" 0xBE9CEAF4
|
21
|
-
"lib/cosmos/top_level.rb"
|
21
|
+
"lib/cosmos/top_level.rb" 0xDC00359C
|
22
22
|
"lib/cosmos/packet_logs/meta_packet_log_writer.rb" 0x860D1FD8
|
23
|
-
"lib/cosmos/packet_logs/packet_log_writer.rb"
|
23
|
+
"lib/cosmos/packet_logs/packet_log_writer.rb" 0x7C6FCFEC
|
24
24
|
"lib/cosmos/packet_logs/packet_log_writer_pair.rb" 0xB4DCA156
|
25
25
|
"lib/cosmos/packet_logs/packet_log_reader.rb" 0xA347D992
|
26
26
|
"lib/cosmos/utilities/message_log.rb" 0x005DD08A
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"lib/cosmos/utilities/csv.rb" 0x9F794965
|
33
33
|
"lib/cosmos/utilities/low_fragmentation_array.rb" 0x7E797C76
|
34
34
|
"lib/cosmos/utilities/simulated_target.rb" 0x7EE7A3FF
|
35
|
-
"lib/cosmos/gui/qt.rb"
|
35
|
+
"lib/cosmos/gui/qt.rb" 0x124A05FD
|
36
36
|
"lib/cosmos/gui/dialogs/find_replace_dialog.rb" 0x4627C7A5
|
37
37
|
"lib/cosmos/gui/dialogs/set_tlm_dialog.rb" 0x02A207C9
|
38
38
|
"lib/cosmos/gui/dialogs/exception_dialog.rb" 0xC06443BE
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"lib/cosmos/gui/dialogs/pry_dialog.rb" 0xA9E57481
|
50
50
|
"lib/cosmos/gui/dialogs/select_dialog.rb" 0xDBD24F83
|
51
51
|
"lib/cosmos/gui/dialogs/exception_list_dialog.rb" 0x304EE4DC
|
52
|
-
"lib/cosmos/gui/dialogs/tlm_details_dialog.rb"
|
52
|
+
"lib/cosmos/gui/dialogs/tlm_details_dialog.rb" 0xE0AB01AD
|
53
53
|
"lib/cosmos/gui/dialogs/calendar_dialog.rb" 0x688D3D3B
|
54
54
|
"lib/cosmos/gui/qt_tool.rb" 0x840EF801
|
55
55
|
"lib/cosmos/gui/utilities/script_module_gui.rb" 0x4923717B
|
@@ -64,7 +64,7 @@
|
|
64
64
|
"lib/cosmos/gui/line_graph/line_graph_dialog.rb" 0xF73F68CB
|
65
65
|
"lib/cosmos/gui/line_graph/lines.rb" 0x871CA030
|
66
66
|
"lib/cosmos/gui/line_graph/line_graph_script.rb" 0x9FD973A1
|
67
|
-
"lib/cosmos/gui/line_graph/line_graph_scaling.rb"
|
67
|
+
"lib/cosmos/gui/line_graph/line_graph_scaling.rb" 0xBF57D9F7
|
68
68
|
"lib/cosmos/gui/text/completion_text_edit.rb" 0xCF57B24D
|
69
69
|
"lib/cosmos/gui/text/ruby_editor.rb" 0xEE6E87E6
|
70
70
|
"lib/cosmos/gui/text/completion_line_edit.rb" 0x16E0A174
|
@@ -98,7 +98,7 @@
|
|
98
98
|
"lib/cosmos/tools/data_viewer/data_viewer.rb" 0x0F59420B
|
99
99
|
"lib/cosmos/tools/launcher/launcher_multitool.rb" 0x1020A3D0
|
100
100
|
"lib/cosmos/tools/launcher/launcher_tool.rb" 0x0501F2F4
|
101
|
-
"lib/cosmos/tools/launcher/launcher_config.rb"
|
101
|
+
"lib/cosmos/tools/launcher/launcher_config.rb" 0xFF0CB90A
|
102
102
|
"lib/cosmos/tools/launcher/launcher.rb" 0x0FFB42EC
|
103
103
|
"lib/cosmos/tools/replay/replay_server.rb" 0x307A7329
|
104
104
|
"lib/cosmos/tools/replay/replay.rb" 0xB8521242
|
@@ -106,19 +106,24 @@
|
|
106
106
|
"lib/cosmos/tools/tlm_extractor/tlm_extractor.rb" 0xC6B38C94
|
107
107
|
"lib/cosmos/tools/tlm_extractor/tlm_extractor_config.rb" 0x7779DCEC
|
108
108
|
"lib/cosmos/tools/tlm_extractor/text_item_chooser.rb" 0x587768C6
|
109
|
-
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_config.rb"
|
109
|
+
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_config.rb" 0xA54471CD
|
110
110
|
"lib/cosmos/tools/cmd_tlm_server/api.rb" 0xB1819524
|
111
111
|
"lib/cosmos/tools/cmd_tlm_server/connections.rb" 0x6657A0FB
|
112
112
|
"lib/cosmos/tools/cmd_tlm_server/background_task.rb" 0x448A2191
|
113
113
|
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server.rb" 0x73AC5F0A
|
114
114
|
"lib/cosmos/tools/cmd_tlm_server/router_thread.rb" 0x5070D428
|
115
115
|
"lib/cosmos/tools/cmd_tlm_server/background_tasks.rb" 0xAE192026
|
116
|
+
"lib/cosmos/tools/cmd_tlm_server/gui/targets_tab.rb" 0xC1D7D2BF
|
117
|
+
"lib/cosmos/tools/cmd_tlm_server/gui/status_tab.rb" 0xFE9543B4
|
118
|
+
"lib/cosmos/tools/cmd_tlm_server/gui/interfaces_tab.rb" 0xD1671DC4
|
119
|
+
"lib/cosmos/tools/cmd_tlm_server/gui/logging_tab.rb" 0xFF291A22
|
120
|
+
"lib/cosmos/tools/cmd_tlm_server/gui/packets_tab.rb" 0xD5554174
|
116
121
|
"lib/cosmos/tools/cmd_tlm_server/routers.rb" 0xF8C93062
|
117
122
|
"lib/cosmos/tools/cmd_tlm_server/packet_logging.rb" 0x166BE402
|
118
123
|
"lib/cosmos/tools/cmd_tlm_server/commanding.rb" 0xC7C76CD8
|
119
124
|
"lib/cosmos/tools/cmd_tlm_server/interfaces.rb" 0x10BC320E
|
120
125
|
"lib/cosmos/tools/cmd_tlm_server/interface_thread.rb" 0x0668F33F
|
121
|
-
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb"
|
126
|
+
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb" 0x138FCD7A
|
122
127
|
"lib/cosmos/tools/limits_monitor/limits_monitor.rb" 0xAA19533E
|
123
128
|
"lib/cosmos/tools/packet_viewer/packet_viewer.rb" 0x12D1B643
|
124
129
|
"lib/cosmos/tools/table_manager/table_manager.rb" 0x4FC4AE95
|
@@ -132,8 +137,8 @@
|
|
132
137
|
"lib/cosmos/tools/cmd_sender/cmd_sender_item_delegate.rb" 0x8297CC9D
|
133
138
|
"lib/cosmos/tools/cmd_sender/cmd_sender_text_edit.rb" 0xB192AF6E
|
134
139
|
"lib/cosmos/tools/test_runner/test_runner_chooser.rb" 0x182F00C6
|
135
|
-
"lib/cosmos/tools/test_runner/results_writer.rb"
|
136
|
-
"lib/cosmos/tools/test_runner/test_runner.rb"
|
140
|
+
"lib/cosmos/tools/test_runner/results_writer.rb" 0xF8CF9306
|
141
|
+
"lib/cosmos/tools/test_runner/test_runner.rb" 0x4165ADBC
|
137
142
|
"lib/cosmos/tools/test_runner/test.rb" 0xD2BE7F1C
|
138
143
|
"lib/cosmos/tools/tlm_grapher/plots/xy_plot.rb" 0x98F7712F
|
139
144
|
"lib/cosmos/tools/tlm_grapher/plots/singlexy_plot.rb" 0xA01649EC
|
@@ -163,11 +168,11 @@
|
|
163
168
|
"lib/cosmos/tools/tlm_grapher/plot_gui_objects/singlexy_plot_gui_object.rb" 0x4FC1C15C
|
164
169
|
"lib/cosmos/tools/tlm_grapher/plot_gui_objects/linegraph_plot_gui_object.rb" 0xC1B25F76
|
165
170
|
"lib/cosmos/tools/tlm_grapher/plot_gui_objects/xy_plot_gui_object.rb" 0xA500650F
|
166
|
-
"lib/cosmos/tools/tlm_grapher/data_objects/xy_data_object.rb"
|
171
|
+
"lib/cosmos/tools/tlm_grapher/data_objects/xy_data_object.rb" 0xCD684000
|
167
172
|
"lib/cosmos/tools/tlm_grapher/data_objects/singlexy_data_object.rb" 0x1D037935
|
168
|
-
"lib/cosmos/tools/tlm_grapher/data_objects/housekeeping_data_object.rb"
|
173
|
+
"lib/cosmos/tools/tlm_grapher/data_objects/housekeeping_data_object.rb" 0x0485208B
|
169
174
|
"lib/cosmos/tools/tlm_grapher/data_objects/linegraph_data_object.rb" 0x58D45CBE
|
170
|
-
"lib/cosmos/tools/tlm_grapher/data_objects/data_object.rb"
|
175
|
+
"lib/cosmos/tools/tlm_grapher/data_objects/data_object.rb" 0xE3D40CD6
|
171
176
|
"lib/cosmos/tools/handbook_creator/handbook_creator_config.rb" 0x689D876A
|
172
177
|
"lib/cosmos/tools/handbook_creator/handbook_creator.rb" 0x06AD12D2
|
173
178
|
"lib/cosmos/tools/tlm_viewer/screen.rb" 0xEBC2A043
|
@@ -228,7 +233,7 @@
|
|
228
233
|
"lib/cosmos/tools/tlm_viewer/tlm_viewer.rb" 0xB7B0D77D
|
229
234
|
"lib/cosmos/system.rb" 0x735DFB42
|
230
235
|
"lib/cosmos/conversions.rb" 0x43679D05
|
231
|
-
"lib/cosmos/version.rb"
|
236
|
+
"lib/cosmos/version.rb" 0x9DA328D2
|
232
237
|
"lib/cosmos/core_ext.rb" 0x1951B346
|
233
238
|
"lib/cosmos/interfaces.rb" 0x7E3EA326
|
234
239
|
"lib/cosmos/processors.rb" 0x5241327D
|
@@ -285,7 +290,7 @@
|
|
285
290
|
"lib/cosmos/interfaces/tcpip_client_interface.rb" 0x5F0DB50D
|
286
291
|
"lib/cosmos/interfaces/udp_interface.rb" 0xA991C213
|
287
292
|
"lib/cosmos/interfaces/tcpip_server_interface.rb" 0x7E90C892
|
288
|
-
"lib/cosmos/script/script.rb"
|
293
|
+
"lib/cosmos/script/script.rb" 0xDA302537
|
289
294
|
"lib/cosmos/script/extract.rb" 0xF3243476
|
290
295
|
"lib/cosmos/core_ext/range.rb" 0x0D55D9D1
|
291
296
|
"lib/cosmos/core_ext/stringio.rb" 0x28B64FB4
|
data/demo/Rakefile
CHANGED
@@ -14,6 +14,22 @@ def create_crc_file(official)
|
|
14
14
|
count = 0
|
15
15
|
ignore = [
|
16
16
|
# Add filenames here if you don't want them to be CRCed
|
17
|
+
"tools/mac/CmdExtractor.app/Contents/MacOS/CmdExtractor",
|
18
|
+
"tools/mac/CmdSender.app/Contents/MacOS/CmdSender",
|
19
|
+
"tools/mac/CmdTlmServer.app/Contents/MacOS/CmdTlmServer",
|
20
|
+
"tools/mac/DataViewer.app/Contents/MacOS/DataViewer",
|
21
|
+
"tools/mac/HandbookCreator.app/Contents/MacOS/HandbookCreator",
|
22
|
+
"tools/mac/Launcher.app/Contents/MacOS/Launcher",
|
23
|
+
"tools/mac/LimitsMonitor.app/Contents/MacOS/LimitsMonitor",
|
24
|
+
"tools/mac/OpenGLBuilder.app/Contents/MacOS/OpenGLBuilder",
|
25
|
+
"tools/mac/PacketViewer.app/Contents/MacOS/PacketViewer",
|
26
|
+
"tools/mac/Replay.app/Contents/MacOS/Replay",
|
27
|
+
"tools/mac/ScriptRunner.app/Contents/MacOS/ScriptRunner",
|
28
|
+
"tools/mac/TableManager.app/Contents/MacOS/TableManager",
|
29
|
+
"tools/mac/TestRunner.app/Contents/MacOS/TestRunner",
|
30
|
+
"tools/mac/TlmExtractor.app/Contents/MacOS/TlmExtractor",
|
31
|
+
"tools/mac/TlmGrapher.app/Contents/MacOS/TlmGrapher",
|
32
|
+
"tools/mac/TlmViewer.app/Contents/MacOS/TlmViewer",
|
17
33
|
]
|
18
34
|
# Create the crc.txt file
|
19
35
|
crc = Cosmos::Crc32.new(Cosmos::Crc32::DEFAULT_POLY, Cosmos::Crc32::DEFAULT_SEED, true, false)
|
data/demo/config/data/crc.txt
CHANGED
@@ -85,12 +85,12 @@
|
|
85
85
|
"config/tools/handbook_creator/templates/pdf_cover.html.erb" 0x7AAB9A42
|
86
86
|
"config/tools/handbook_creator/templates/pdf_header.html.erb" 0x3020FEE1
|
87
87
|
"config/tools/handbook_creator/templates/telemetry_toc.html.erb" 0x610E3BC5
|
88
|
-
"config/tools/handbook_creator/templates/header.html.erb"
|
88
|
+
"config/tools/handbook_creator/templates/header.html.erb" 0x1E490C2A
|
89
89
|
"config/tools/handbook_creator/templates/telemetry_packets.html.erb" 0x44BD9695
|
90
90
|
"config/tools/handbook_creator/templates/command_packets.html.erb" 0x9897CA7A
|
91
91
|
"config/tools/handbook_creator/templates/limits_groups.html.erb" 0x40FDF34C
|
92
92
|
"config/tools/handbook_creator/templates/nav.html.erb" 0xDF65AAEA
|
93
|
-
"config/tools/handbook_creator/templates/footer.html.erb"
|
93
|
+
"config/tools/handbook_creator/templates/footer.html.erb" 0x0E1F9800
|
94
94
|
"config/tools/handbook_creator/templates/pdf_footer.html.erb" 0xF0D3EB77
|
95
95
|
"config/tools/handbook_creator/templates/overview.html.erb" 0xDC4DD2B8
|
96
96
|
"config/tools/tlm_viewer/tlm_viewer.txt" 0x825AF31C
|
@@ -199,7 +199,7 @@
|
|
199
199
|
"procedures/collect_util.rb" 0x3952EB08
|
200
200
|
"procedures/run_example_test.rb" 0x0F244140
|
201
201
|
"procedures/clear_util.rb" 0x5B3C1279
|
202
|
-
"procedures/example_test.rb"
|
202
|
+
"procedures/example_test.rb" 0x4FBA73C1
|
203
203
|
"procedures/cosmos_api_test.rb" 0x57AE9ED2
|
204
204
|
"procedures/test.rb" 0xCE4DA55A
|
205
205
|
"procedures/checks.rb" 0x34EEF3E2
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<!-- Bootstrap core JavaScript
|
4
4
|
================================================== -->
|
5
5
|
<!-- Placed at the end of the document so the pages load faster -->
|
6
|
-
<script src="
|
7
|
-
<script src="
|
6
|
+
<script src="<%= File.join('assets', 'js', 'jquery-1.10.2.min.js') %>"></script>
|
7
|
+
<script src="<%= File.join('assets', 'js', 'bootstrap.min.js') %>"></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -10,14 +10,14 @@
|
|
10
10
|
<title><%= title %></title>
|
11
11
|
|
12
12
|
<!-- Bootstrap core CSS -->
|
13
|
-
<link href="
|
13
|
+
<link href="<%= File.join('assets', 'css', 'bootstrap.min.css') %>" rel="stylesheet">
|
14
14
|
<!-- Bootstrap theme -->
|
15
|
-
<link href="
|
15
|
+
<link href="<%= File.join('assets', 'css', 'bootstrap-theme.min.css') %>" rel="stylesheet">
|
16
16
|
|
17
17
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
18
18
|
<!--[if lt IE 9]>
|
19
|
-
<script src="
|
20
|
-
<script src="
|
19
|
+
<script src="<%= File.join('assets', 'js', 'html5shiv.js') %>"></script>
|
20
|
+
<script src="<%= File.join('assets', 'js', 'respond.min.js') %>"></script>
|
21
21
|
<![endif]-->
|
22
22
|
</head>
|
23
23
|
|
data/install/Rakefile
CHANGED
@@ -14,6 +14,22 @@ def create_crc_file(official)
|
|
14
14
|
count = 0
|
15
15
|
ignore = [
|
16
16
|
# Add filenames here if you don't want them to be CRCed
|
17
|
+
"tools/mac/CmdExtractor.app/Contents/MacOS/CmdExtractor",
|
18
|
+
"tools/mac/CmdSender.app/Contents/MacOS/CmdSender",
|
19
|
+
"tools/mac/CmdTlmServer.app/Contents/MacOS/CmdTlmServer",
|
20
|
+
"tools/mac/DataViewer.app/Contents/MacOS/DataViewer",
|
21
|
+
"tools/mac/HandbookCreator.app/Contents/MacOS/HandbookCreator",
|
22
|
+
"tools/mac/Launcher.app/Contents/MacOS/Launcher",
|
23
|
+
"tools/mac/LimitsMonitor.app/Contents/MacOS/LimitsMonitor",
|
24
|
+
"tools/mac/OpenGLBuilder.app/Contents/MacOS/OpenGLBuilder",
|
25
|
+
"tools/mac/PacketViewer.app/Contents/MacOS/PacketViewer",
|
26
|
+
"tools/mac/Replay.app/Contents/MacOS/Replay",
|
27
|
+
"tools/mac/ScriptRunner.app/Contents/MacOS/ScriptRunner",
|
28
|
+
"tools/mac/TableManager.app/Contents/MacOS/TableManager",
|
29
|
+
"tools/mac/TestRunner.app/Contents/MacOS/TestRunner",
|
30
|
+
"tools/mac/TlmExtractor.app/Contents/MacOS/TlmExtractor",
|
31
|
+
"tools/mac/TlmGrapher.app/Contents/MacOS/TlmGrapher",
|
32
|
+
"tools/mac/TlmViewer.app/Contents/MacOS/TlmViewer",
|
17
33
|
]
|
18
34
|
# Create the crc.txt file
|
19
35
|
crc = Cosmos::Crc32.new(Cosmos::Crc32::DEFAULT_POLY, Cosmos::Crc32::DEFAULT_SEED, true, false)
|
data/install/config/data/crc.txt
CHANGED
@@ -25,12 +25,12 @@
|
|
25
25
|
"config/tools/handbook_creator/templates/pdf_cover.html.erb" 0x7AAB9A42
|
26
26
|
"config/tools/handbook_creator/templates/pdf_header.html.erb" 0x3020FEE1
|
27
27
|
"config/tools/handbook_creator/templates/telemetry_toc.html.erb" 0x610E3BC5
|
28
|
-
"config/tools/handbook_creator/templates/header.html.erb"
|
28
|
+
"config/tools/handbook_creator/templates/header.html.erb" 0x1E490C2A
|
29
29
|
"config/tools/handbook_creator/templates/telemetry_packets.html.erb" 0x44BD9695
|
30
30
|
"config/tools/handbook_creator/templates/command_packets.html.erb" 0x9897CA7A
|
31
31
|
"config/tools/handbook_creator/templates/limits_groups.html.erb" 0x40FDF34C
|
32
32
|
"config/tools/handbook_creator/templates/nav.html.erb" 0xDF65AAEA
|
33
|
-
"config/tools/handbook_creator/templates/footer.html.erb"
|
33
|
+
"config/tools/handbook_creator/templates/footer.html.erb" 0x0E1F9800
|
34
34
|
"config/tools/handbook_creator/templates/pdf_footer.html.erb" 0xF0D3EB77
|
35
35
|
"config/tools/handbook_creator/templates/overview.html.erb" 0xDC4DD2B8
|
36
36
|
"config/tools/tlm_viewer/tlm_viewer.txt" 0xD9071527
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<!-- Bootstrap core JavaScript
|
4
4
|
================================================== -->
|
5
5
|
<!-- Placed at the end of the document so the pages load faster -->
|
6
|
-
<script src="
|
7
|
-
<script src="
|
6
|
+
<script src="<%= File.join('assets', 'js', 'jquery-1.10.2.min.js') %>"></script>
|
7
|
+
<script src="<%= File.join('assets', 'js', 'bootstrap.min.js') %>"></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -10,14 +10,14 @@
|
|
10
10
|
<title><%= title %></title>
|
11
11
|
|
12
12
|
<!-- Bootstrap core CSS -->
|
13
|
-
<link href="
|
13
|
+
<link href="<%= File.join('assets', 'css', 'bootstrap.min.css') %>" rel="stylesheet">
|
14
14
|
<!-- Bootstrap theme -->
|
15
|
-
<link href="
|
15
|
+
<link href="<%= File.join('assets', 'css', 'bootstrap-theme.min.css') %>" rel="stylesheet">
|
16
16
|
|
17
17
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
18
18
|
<!--[if lt IE 9]>
|
19
|
-
<script src="
|
20
|
-
<script src="
|
19
|
+
<script src="<%= File.join('assets', 'js', 'html5shiv.js') %>"></script>
|
20
|
+
<script src="<%= File.join('assets', 'js', 'respond.min.js') %>"></script>
|
21
21
|
<![endif]-->
|
22
22
|
</head>
|
23
23
|
|
@@ -126,74 +126,22 @@ module Cosmos
|
|
126
126
|
begin
|
127
127
|
# Gather updated values
|
128
128
|
values, limits_states, limits_settings, limits_set = get_tlm_values(@item_array, VALUE_TYPES)
|
129
|
-
|
130
|
-
|
131
|
-
if limits_settings[0][4] and limits_settings[0][5]
|
132
|
-
@limits_labels[limits_set].text = "RL/#{limits_settings[0][0]} YL/#{limits_settings[0][1]} YH/#{limits_settings[0][2]} RH/#{limits_settings[0][3]} GL/#{limits_settings[0][4]} GH/#{limits_settings[0][5]}"
|
133
|
-
else
|
134
|
-
@limits_labels[limits_set].text = "RL/#{limits_settings[0][0]} YL/#{limits_settings[0][1]} YH/#{limits_settings[0][2]} RH/#{limits_settings[0][3]}"
|
135
|
-
end
|
136
|
-
elsif @limits_layout
|
137
|
-
if limits_settings[0][4] and limits_settings[0][5]
|
138
|
-
label = Qt::Label.new("RL/#{limits_settings[0][0]} YL/#{limits_settings[0][1]} YH/#{limits_settings[0][2]} RH/#{limits_settings[0][3]} GL/#{limits_settings[0][4]} GH/#{limits_settings[0][5]}")
|
139
|
-
else
|
140
|
-
label = Qt::Label.new("RL/#{limits_settings[0][0]} YL/#{limits_settings[0][1]} YH/#{limits_settings[0][2]} RH/#{limits_settings[0][3]}")
|
141
|
-
end
|
142
|
-
@limits_labels[limits_set] = label
|
143
|
-
@limits_layout.addRow(tr("#{limits_set}:"), label)
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
# Determine color
|
148
|
-
color = nil
|
149
|
-
case limits_states[0]
|
150
|
-
when :RED, :RED_HIGH
|
151
|
-
color = Cosmos::RED
|
152
|
-
when :RED_LOW
|
153
|
-
color = Cosmos::RED
|
154
|
-
when :YELLOW, :YELLOW_HIGH
|
155
|
-
color = Cosmos::YELLOW
|
156
|
-
when :YELLOW_LOW
|
157
|
-
color = Cosmos::YELLOW
|
158
|
-
when :GREEN, :GREEN_HIGH
|
159
|
-
color = Cosmos::GREEN
|
160
|
-
when :GREEN_LOW
|
161
|
-
color = Cosmos::GREEN
|
162
|
-
when :BLUE
|
163
|
-
color = Cosmos::BLUE
|
164
|
-
when :STALE
|
165
|
-
color = Cosmos::PURPLE
|
166
|
-
else
|
167
|
-
color = Cosmos::BLACK
|
168
|
-
end
|
169
|
-
|
170
|
-
# Update text fields
|
171
|
-
@raw_value.setColors(color, Cosmos::WHITE)
|
172
|
-
@raw_value.text = values[0].to_s
|
173
|
-
if @hex_raw_value
|
174
|
-
@hex_raw_value.setColors(color, Cosmos::WHITE)
|
175
|
-
set_hex_value(values[0])
|
176
|
-
end
|
177
|
-
@converted_value.setColors(color, Cosmos::WHITE)
|
178
|
-
@converted_value.text = values[1].to_s
|
179
|
-
@formatted_value.setColors(color, Cosmos::WHITE)
|
180
|
-
@formatted_value.text = values[2].to_s
|
181
|
-
@formatted_with_units_value.setColors(color, Cosmos::WHITE)
|
182
|
-
@formatted_with_units_value.text = values[3].to_s
|
183
|
-
@limits_state.setColors(color, Cosmos::WHITE)
|
184
|
-
@limits_state.text = limits_states[0].to_s
|
129
|
+
update_limits_details(limits_settings, limits_set)
|
130
|
+
update_text_fields(values, limits_states[0])
|
185
131
|
rescue DRb::DRbConnError
|
186
132
|
# Just do nothing
|
187
133
|
end
|
188
134
|
end
|
189
135
|
|
136
|
+
protected
|
137
|
+
|
190
138
|
def set_hex_value(value)
|
191
139
|
if Array === value
|
192
140
|
text = "["
|
193
141
|
value[0..-2].each do |part|
|
194
142
|
text << sprintf("0x%0#{@hex_raw_num_digits}X, ", part.to_i)
|
195
143
|
end
|
196
|
-
text << sprintf("0x%0#{@hex_raw_num_digits}X", value[-1].to_i) if
|
144
|
+
text << sprintf("0x%0#{@hex_raw_num_digits}X", value[-1].to_i) if value[-1]
|
197
145
|
text << "]"
|
198
146
|
@hex_raw_value.text = text
|
199
147
|
else
|
@@ -201,6 +149,65 @@ module Cosmos
|
|
201
149
|
end
|
202
150
|
end
|
203
151
|
|
152
|
+
def update_limits_details(limits_settings, limits_set)
|
153
|
+
if limits_settings[0]
|
154
|
+
label_text = "RL/#{limits_settings[0][0]} YL/#{limits_settings[0][1]} YH/#{limits_settings[0][2]} RH/#{limits_settings[0][3]}"
|
155
|
+
if limits_settings[0][4] and limits_settings[0][5]
|
156
|
+
label_text += " GL/#{limits_settings[0][4]} GH/#{limits_settings[0][5]}"
|
157
|
+
end
|
158
|
+
if @limits_labels[limits_set]
|
159
|
+
@limits_labels[limits_set].text = label_text
|
160
|
+
elsif @limits_layout
|
161
|
+
label = Qt::Label.new(label_text)
|
162
|
+
@limits_labels[limits_set] = label
|
163
|
+
@limits_layout.addRow(tr("#{limits_set}:"), label)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
def determine_limits_color(limit_state)
|
169
|
+
color = nil
|
170
|
+
case limit_state
|
171
|
+
when :RED, :RED_HIGH
|
172
|
+
color = Cosmos::RED
|
173
|
+
when :RED_LOW
|
174
|
+
color = Cosmos::RED
|
175
|
+
when :YELLOW, :YELLOW_HIGH
|
176
|
+
color = Cosmos::YELLOW
|
177
|
+
when :YELLOW_LOW
|
178
|
+
color = Cosmos::YELLOW
|
179
|
+
when :GREEN, :GREEN_HIGH
|
180
|
+
color = Cosmos::GREEN
|
181
|
+
when :GREEN_LOW
|
182
|
+
color = Cosmos::GREEN
|
183
|
+
when :BLUE
|
184
|
+
color = Cosmos::BLUE
|
185
|
+
when :STALE
|
186
|
+
color = Cosmos::PURPLE
|
187
|
+
else
|
188
|
+
color = Cosmos::BLACK
|
189
|
+
end
|
190
|
+
color
|
191
|
+
end
|
192
|
+
|
193
|
+
def update_text_fields(values, limits_state)
|
194
|
+
color = determine_limits_color(limits_state)
|
195
|
+
@raw_value.setColors(color, Cosmos::WHITE)
|
196
|
+
@raw_value.text = values[0].to_s
|
197
|
+
if @hex_raw_value
|
198
|
+
@hex_raw_value.setColors(color, Cosmos::WHITE)
|
199
|
+
set_hex_value(values[0])
|
200
|
+
end
|
201
|
+
@converted_value.setColors(color, Cosmos::WHITE)
|
202
|
+
@converted_value.text = values[1].to_s
|
203
|
+
@formatted_value.setColors(color, Cosmos::WHITE)
|
204
|
+
@formatted_value.text = values[2].to_s
|
205
|
+
@formatted_with_units_value.setColors(color, Cosmos::WHITE)
|
206
|
+
@formatted_with_units_value.text = values[3].to_s
|
207
|
+
@limits_state.setColors(color, Cosmos::WHITE)
|
208
|
+
@limits_state.text = limits_state.to_s
|
209
|
+
end
|
210
|
+
|
204
211
|
end # class TlmDetailsDialog
|
205
212
|
|
206
213
|
end # module Cosmos
|