cosmos 3.1.2 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/Manifest.txt +17 -1
- data/autohotkey/tools/test_runner2.ahk +1 -0
- data/autohotkey/tools/tlm_grapher.ahk +13 -1
- data/data/crc.txt +39 -30
- data/demo/config/data/crc.txt +3 -3
- data/demo/config/targets/TEMPLATED/lib/templated_interface.rb +3 -1
- data/demo/config/tools/cmd_tlm_server/cmd_tlm_server.txt +7 -1
- data/demo/config/tools/cmd_tlm_server/cmd_tlm_server2.txt +6 -1
- data/lib/cosmos.rb +2 -2
- data/lib/cosmos/gui/dialogs/about_dialog.rb +18 -5
- data/lib/cosmos/gui/dialogs/tlm_details_dialog.rb +0 -7
- data/lib/cosmos/gui/line_graph/overview_graph.rb +12 -2
- data/lib/cosmos/gui/utilities/script_module_gui.rb +11 -3
- data/lib/cosmos/interfaces/interface.rb +12 -0
- data/lib/cosmos/interfaces/stream_interface.rb +1 -21
- data/lib/cosmos/interfaces/tcpip_server_interface.rb +10 -0
- data/lib/cosmos/io/json_drb_object.rb +75 -56
- data/lib/cosmos/io/tcpip_server.rb +1 -11
- data/lib/cosmos/packet_logs.rb +1 -0
- data/lib/cosmos/packet_logs/ccsds_log_reader.rb +103 -0
- data/lib/cosmos/packets/packet.rb +70 -1
- data/lib/cosmos/packets/packet_config.rb +59 -611
- data/lib/cosmos/packets/parsers/format_string_parser.rb +58 -0
- data/lib/cosmos/packets/parsers/limits_parser.rb +146 -0
- data/lib/cosmos/packets/parsers/limits_response_parser.rb +52 -0
- data/lib/cosmos/packets/parsers/macro_parser.rb +116 -0
- data/lib/cosmos/packets/parsers/packet_item_parser.rb +215 -0
- data/lib/cosmos/packets/parsers/packet_parser.rb +123 -0
- data/lib/cosmos/packets/parsers/processor_parser.rb +63 -0
- data/lib/cosmos/packets/parsers/state_parser.rb +116 -0
- data/lib/cosmos/packets/structure.rb +59 -22
- data/lib/cosmos/packets/structure_item.rb +1 -1
- data/lib/cosmos/script/script.rb +4 -5
- data/lib/cosmos/streams/serial_stream.rb +5 -0
- data/lib/cosmos/streams/stream.rb +8 -2
- data/lib/cosmos/streams/stream_protocol.rb +1 -0
- data/lib/cosmos/streams/tcpip_client_stream.rb +37 -7
- data/lib/cosmos/streams/tcpip_socket_stream.rb +9 -6
- data/lib/cosmos/system/target.rb +3 -6
- data/lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_config.rb +57 -48
- data/lib/cosmos/tools/cmd_tlm_server/interface_thread.rb +7 -3
- data/lib/cosmos/tools/limits_monitor/limits_monitor.rb +1 -1
- data/lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_realtime_thread.rb +7 -1
- data/lib/cosmos/tools/tlm_viewer/tlm_viewer.rb +1 -2
- data/lib/cosmos/top_level.rb +22 -11
- data/lib/cosmos/utilities/message_log.rb +14 -9
- data/lib/cosmos/version.rb +5 -5
- data/spec/interfaces/cmd_tlm_server_interface_spec.rb +16 -16
- data/spec/interfaces/linc_interface_spec.rb +3 -0
- data/spec/interfaces/tcpip_client_interface_spec.rb +1 -0
- data/spec/interfaces/tcpip_server_interface_spec.rb +9 -0
- data/spec/io/json_drb_object_spec.rb +1 -1
- data/spec/io/serial_driver_spec.rb +0 -1
- data/spec/packet_logs/packet_log_writer_spec.rb +5 -3
- data/spec/packets/packet_config_spec.rb +22 -837
- data/spec/packets/packet_item_spec.rb +10 -10
- data/spec/packets/packet_spec.rb +239 -1
- data/spec/packets/parsers/format_string_parser_spec.rb +122 -0
- data/spec/packets/parsers/limits_parser_spec.rb +282 -0
- data/spec/packets/parsers/limits_response_parser_spec.rb +149 -0
- data/spec/packets/parsers/macro_parser_spec.rb +184 -0
- data/spec/packets/parsers/packet_item_parser_spec.rb +306 -0
- data/spec/packets/parsers/packet_parser_spec.rb +99 -0
- data/spec/packets/parsers/processor_parser_spec.rb +114 -0
- data/spec/packets/parsers/state_parser_spec.rb +156 -0
- data/spec/packets/structure_item_spec.rb +14 -14
- data/spec/packets/structure_spec.rb +162 -16
- data/spec/streams/fixed_stream_protocol_spec.rb +7 -4
- data/spec/streams/length_stream_protocol_spec.rb +3 -0
- data/spec/streams/preidentified_stream_protocol_spec.rb +3 -0
- data/spec/streams/serial_stream_spec.rb +12 -0
- data/spec/streams/stream_protocol_spec.rb +14 -0
- data/spec/streams/stream_spec.rb +1 -0
- data/spec/streams/tcpip_client_stream_spec.rb +3 -0
- data/spec/streams/tcpip_socket_stream_spec.rb +15 -3
- data/spec/streams/template_stream_protocol_spec.rb +5 -0
- data/spec/streams/terminated_stream_protocol_spec.rb +4 -0
- data/spec/tools/cmd_tlm_server/cmd_tlm_server_config_spec.rb +21 -1
- data/spec/tools/cmd_tlm_server/interface_thread_spec.rb +1 -1
- data/spec/tools/cmd_tlm_server/interfaces_spec.rb +1 -1
- metadata +19 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03a5fb5559e97c328a048705f0e90a85f3655899
|
4
|
+
data.tar.gz: e3c8be6334821135b794171b088571c6dbb75062
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce712ead10d1c094ca7e811705036e66e3c9b279059f91bae5b7c5e90ae4dfc15d95be6802a467dea693b1ff957b36182f89e742b0f22e7ad723ad83f26642ea
|
7
|
+
data.tar.gz: e8ce4d0a58e565a328c7d42cf821f86fdb26cc5a397ca7e3bb449c94e0f02b2aab6a93288e1342dc97d205a886f623453895ef3a6f05a024470f895efe38386b
|
data/Gemfile
CHANGED
data/Manifest.txt
CHANGED
@@ -794,6 +794,7 @@ lib/cosmos/io/tcpip_server.rb
|
|
794
794
|
lib/cosmos/io/udp_sockets.rb
|
795
795
|
lib/cosmos/io/win32_serial_driver.rb
|
796
796
|
lib/cosmos/packet_logs.rb
|
797
|
+
lib/cosmos/packet_logs/ccsds_log_reader.rb
|
797
798
|
lib/cosmos/packet_logs/meta_packet_log_writer.rb
|
798
799
|
lib/cosmos/packet_logs/packet_log_reader.rb
|
799
800
|
lib/cosmos/packet_logs/packet_log_writer.rb
|
@@ -806,6 +807,14 @@ lib/cosmos/packets/packet.rb
|
|
806
807
|
lib/cosmos/packets/packet_config.rb
|
807
808
|
lib/cosmos/packets/packet_item.rb
|
808
809
|
lib/cosmos/packets/packet_item_limits.rb
|
810
|
+
lib/cosmos/packets/parsers/format_string_parser.rb
|
811
|
+
lib/cosmos/packets/parsers/limits_parser.rb
|
812
|
+
lib/cosmos/packets/parsers/limits_response_parser.rb
|
813
|
+
lib/cosmos/packets/parsers/macro_parser.rb
|
814
|
+
lib/cosmos/packets/parsers/packet_item_parser.rb
|
815
|
+
lib/cosmos/packets/parsers/packet_parser.rb
|
816
|
+
lib/cosmos/packets/parsers/processor_parser.rb
|
817
|
+
lib/cosmos/packets/parsers/state_parser.rb
|
809
818
|
lib/cosmos/packets/structure.rb
|
810
819
|
lib/cosmos/packets/structure_item.rb
|
811
820
|
lib/cosmos/packets/telemetry.rb
|
@@ -1039,7 +1048,6 @@ spec/install/config/targets/INST/target.txt
|
|
1039
1048
|
spec/install/config/targets/META/cmd_tlm/meta_cmd.txt
|
1040
1049
|
spec/install/config/targets/META/cmd_tlm/meta_tlm.txt
|
1041
1050
|
spec/install/config/targets/SYSTEM/cmd_tlm/limits_groups.txt
|
1042
|
-
spec/install/config/tools/cmd_tlm_server/cmd_tlm_server.txt
|
1043
1051
|
spec/install/lib/README.txt
|
1044
1052
|
spec/install/userpath.txt
|
1045
1053
|
spec/interfaces/cmd_tlm_server_interface_spec.rb
|
@@ -1076,6 +1084,14 @@ spec/packets/packet_config_spec.rb
|
|
1076
1084
|
spec/packets/packet_item_limits_spec.rb
|
1077
1085
|
spec/packets/packet_item_spec.rb
|
1078
1086
|
spec/packets/packet_spec.rb
|
1087
|
+
spec/packets/parsers/format_string_parser_spec.rb
|
1088
|
+
spec/packets/parsers/limits_parser_spec.rb
|
1089
|
+
spec/packets/parsers/limits_response_parser_spec.rb
|
1090
|
+
spec/packets/parsers/macro_parser_spec.rb
|
1091
|
+
spec/packets/parsers/packet_item_parser_spec.rb
|
1092
|
+
spec/packets/parsers/packet_parser_spec.rb
|
1093
|
+
spec/packets/parsers/processor_parser_spec.rb
|
1094
|
+
spec/packets/parsers/state_parser_spec.rb
|
1079
1095
|
spec/packets/structure_item_spec.rb
|
1080
1096
|
spec/packets/structure_spec.rb
|
1081
1097
|
spec/packets/telemetry_spec.rb
|
@@ -1,4 +1,4 @@
|
|
1
|
-
SetWinDelay
|
1
|
+
SetWinDelay 1000
|
2
2
|
WinWaitActive Telemetry Grapher
|
3
3
|
|
4
4
|
Send !f
|
@@ -522,6 +522,7 @@ Sleep 500
|
|
522
522
|
Send !p
|
523
523
|
Sleep 500
|
524
524
|
Send {Down 4}{Enter} ; Edit plot data items
|
525
|
+
Sleep 500
|
525
526
|
WinWaitActive Edit
|
526
527
|
Send {Esc}
|
527
528
|
WinWaitActive Edit
|
@@ -600,26 +601,35 @@ WinWaitActive Telemetry Grapher
|
|
600
601
|
|
601
602
|
; Close down command and telemetry server
|
602
603
|
WinActivate Command and Telemetry Server
|
604
|
+
Sleep 1000
|
603
605
|
Send ^q
|
604
606
|
Sleep 500
|
605
607
|
Send {Enter}
|
608
|
+
Sleep 500
|
606
609
|
|
607
610
|
; Process a log file TG-4
|
608
611
|
WinActivate Telemetry Grapher
|
612
|
+
Sleep 500
|
609
613
|
Send ^o
|
610
614
|
WinWaitActive Process
|
615
|
+
Sleep 500
|
611
616
|
Send {Enter}
|
612
617
|
WinWaitActive Select
|
618
|
+
Sleep 500
|
613
619
|
Send bigtlm.bin{Enter}
|
614
620
|
WinWaitActive Process
|
621
|
+
Sleep 500
|
615
622
|
Click 167 375
|
616
623
|
Sleep 500
|
617
624
|
Click 380 309 ; Cancel
|
618
625
|
WinWaitActive Telemetry Grapher
|
626
|
+
Sleep 500
|
619
627
|
Send ^o
|
620
628
|
WinWaitActive Process
|
629
|
+
Sleep 500
|
621
630
|
Send {Enter}
|
622
631
|
WinWaitActive Select
|
632
|
+
Sleep 500
|
623
633
|
Send bigtlm.bin{Enter}
|
624
634
|
Sleep 500
|
625
635
|
Click 167 375
|
@@ -630,10 +640,12 @@ Send ^q
|
|
630
640
|
Sleep 500
|
631
641
|
Send {Enter}
|
632
642
|
WinWaitActive Telemetry Grapher
|
643
|
+
Sleep 500
|
633
644
|
Send ^q
|
634
645
|
Sleep 500
|
635
646
|
Send y
|
636
647
|
WinWaitActive Save
|
648
|
+
Sleep 500
|
637
649
|
Send {Enter}
|
638
650
|
Sleep 500
|
639
651
|
Send y
|
data/data/crc.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"lib/cosmos/ccsds/ccsds_parser.rb" 0x89A5FB3A
|
2
2
|
"lib/cosmos/ccsds/ccsds_packet.rb" 0xA30EE27E
|
3
|
-
"lib/cosmos/system/target.rb"
|
3
|
+
"lib/cosmos/system/target.rb" 0x52287176
|
4
4
|
"lib/cosmos/system/system.rb" 0x46C9FAA0
|
5
5
|
"lib/cosmos/win32/win32_main.rb" 0x75FB669C
|
6
6
|
"lib/cosmos/win32/win32.rb" 0xEF748B06
|
@@ -18,12 +18,13 @@
|
|
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" 0x4306956B
|
22
22
|
"lib/cosmos/packet_logs/meta_packet_log_writer.rb" 0x860D1FD8
|
23
23
|
"lib/cosmos/packet_logs/packet_log_writer.rb" 0x7C6FCFEC
|
24
24
|
"lib/cosmos/packet_logs/packet_log_writer_pair.rb" 0xB4DCA156
|
25
|
+
"lib/cosmos/packet_logs/ccsds_log_reader.rb" 0x20BEB38D
|
25
26
|
"lib/cosmos/packet_logs/packet_log_reader.rb" 0xA347D992
|
26
|
-
"lib/cosmos/utilities/message_log.rb"
|
27
|
+
"lib/cosmos/utilities/message_log.rb" 0xB34783DF
|
27
28
|
"lib/cosmos/utilities/crc.rb" 0xCDAFB844
|
28
29
|
"lib/cosmos/utilities/ruby_lex_utils.rb" 0x5FC7DF77
|
29
30
|
"lib/cosmos/utilities/logger.rb" 0xD39FB903
|
@@ -38,7 +39,7 @@
|
|
38
39
|
"lib/cosmos/gui/dialogs/exception_dialog.rb" 0xC06443BE
|
39
40
|
"lib/cosmos/gui/dialogs/tlm_edit_dialog.rb" 0xCD877DDA
|
40
41
|
"lib/cosmos/gui/dialogs/splash.rb" 0x82A89062
|
41
|
-
"lib/cosmos/gui/dialogs/about_dialog.rb"
|
42
|
+
"lib/cosmos/gui/dialogs/about_dialog.rb" 0x2222837B
|
42
43
|
"lib/cosmos/gui/dialogs/cmd_details_dialog.rb" 0x58C4A059
|
43
44
|
"lib/cosmos/gui/dialogs/scroll_text_dialog.rb" 0x7C21F1DA
|
44
45
|
"lib/cosmos/gui/dialogs/details_dialog.rb" 0x6E5FC2DE
|
@@ -49,10 +50,10 @@
|
|
49
50
|
"lib/cosmos/gui/dialogs/pry_dialog.rb" 0xA9E57481
|
50
51
|
"lib/cosmos/gui/dialogs/select_dialog.rb" 0xDBD24F83
|
51
52
|
"lib/cosmos/gui/dialogs/exception_list_dialog.rb" 0x304EE4DC
|
52
|
-
"lib/cosmos/gui/dialogs/tlm_details_dialog.rb"
|
53
|
+
"lib/cosmos/gui/dialogs/tlm_details_dialog.rb" 0xCAD1848F
|
53
54
|
"lib/cosmos/gui/dialogs/calendar_dialog.rb" 0x688D3D3B
|
54
55
|
"lib/cosmos/gui/qt_tool.rb" 0x840EF801
|
55
|
-
"lib/cosmos/gui/utilities/script_module_gui.rb"
|
56
|
+
"lib/cosmos/gui/utilities/script_module_gui.rb" 0xBD605F5C
|
56
57
|
"lib/cosmos/gui/utilities/screenshot.rb" 0x65F75371
|
57
58
|
"lib/cosmos/gui/widgets/full_text_search_line_edit.rb" 0x7AAF694C
|
58
59
|
"lib/cosmos/gui/widgets/realtime_button_bar.rb" 0xEB0CE858
|
@@ -60,7 +61,7 @@
|
|
60
61
|
"lib/cosmos/gui/line_graph/line_graph.rb" 0x6761DE9A
|
61
62
|
"lib/cosmos/gui/line_graph/line_graph_popups.rb" 0x6B6BD351
|
62
63
|
"lib/cosmos/gui/line_graph/line_graph_drawing.rb" 0x42C08FB0
|
63
|
-
"lib/cosmos/gui/line_graph/overview_graph.rb"
|
64
|
+
"lib/cosmos/gui/line_graph/overview_graph.rb" 0xEDD6D64A
|
64
65
|
"lib/cosmos/gui/line_graph/line_graph_dialog.rb" 0xF73F68CB
|
65
66
|
"lib/cosmos/gui/line_graph/lines.rb" 0x871CA030
|
66
67
|
"lib/cosmos/gui/line_graph/line_graph_script.rb" 0x9FD973A1
|
@@ -106,7 +107,7 @@
|
|
106
107
|
"lib/cosmos/tools/tlm_extractor/tlm_extractor.rb" 0xC6B38C94
|
107
108
|
"lib/cosmos/tools/tlm_extractor/tlm_extractor_config.rb" 0x7779DCEC
|
108
109
|
"lib/cosmos/tools/tlm_extractor/text_item_chooser.rb" 0x587768C6
|
109
|
-
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_config.rb"
|
110
|
+
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_config.rb" 0x167BC6BD
|
110
111
|
"lib/cosmos/tools/cmd_tlm_server/api.rb" 0xB1819524
|
111
112
|
"lib/cosmos/tools/cmd_tlm_server/connections.rb" 0x6657A0FB
|
112
113
|
"lib/cosmos/tools/cmd_tlm_server/background_task.rb" 0x448A2191
|
@@ -122,9 +123,9 @@
|
|
122
123
|
"lib/cosmos/tools/cmd_tlm_server/packet_logging.rb" 0x166BE402
|
123
124
|
"lib/cosmos/tools/cmd_tlm_server/commanding.rb" 0xC7C76CD8
|
124
125
|
"lib/cosmos/tools/cmd_tlm_server/interfaces.rb" 0x10BC320E
|
125
|
-
"lib/cosmos/tools/cmd_tlm_server/interface_thread.rb"
|
126
|
+
"lib/cosmos/tools/cmd_tlm_server/interface_thread.rb" 0x38ED08CB
|
126
127
|
"lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb" 0x138FCD7A
|
127
|
-
"lib/cosmos/tools/limits_monitor/limits_monitor.rb"
|
128
|
+
"lib/cosmos/tools/limits_monitor/limits_monitor.rb" 0xF155D8CC
|
128
129
|
"lib/cosmos/tools/packet_viewer/packet_viewer.rb" 0x12D1B643
|
129
130
|
"lib/cosmos/tools/table_manager/table_manager.rb" 0x4FC4AE95
|
130
131
|
"lib/cosmos/tools/table_manager/table.rb" 0x923A8589
|
@@ -153,7 +154,7 @@
|
|
153
154
|
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_tool.rb" 0x4F1158B4
|
154
155
|
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_data_object_editor.rb" 0xF016E145
|
155
156
|
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_plot_editor.rb" 0xE9362CE6
|
156
|
-
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_realtime_thread.rb"
|
157
|
+
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_realtime_thread.rb" 0x91299B66
|
157
158
|
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_tab.rb" 0xD0AC7888
|
158
159
|
"lib/cosmos/tools/tlm_grapher/tabbed_plots_tool/tabbed_plots_config.rb" 0x08E6FA35
|
159
160
|
"lib/cosmos/tools/tlm_grapher/tlm_grapher.rb" 0xBBFC2272
|
@@ -230,10 +231,10 @@
|
|
230
231
|
"lib/cosmos/tools/tlm_viewer/widgets/canvaslinevalue_widget.rb" 0x69740A8B
|
231
232
|
"lib/cosmos/tools/tlm_viewer/widgets/button_widget.rb" 0x189ED964
|
232
233
|
"lib/cosmos/tools/tlm_viewer/widgets/block_widget.rb" 0x03D30FA7
|
233
|
-
"lib/cosmos/tools/tlm_viewer/tlm_viewer.rb"
|
234
|
+
"lib/cosmos/tools/tlm_viewer/tlm_viewer.rb" 0x03D59CCB
|
234
235
|
"lib/cosmos/system.rb" 0x735DFB42
|
235
236
|
"lib/cosmos/conversions.rb" 0x43679D05
|
236
|
-
"lib/cosmos/version.rb"
|
237
|
+
"lib/cosmos/version.rb" 0x3FF1E990
|
237
238
|
"lib/cosmos/core_ext.rb" 0x1951B346
|
238
239
|
"lib/cosmos/interfaces.rb" 0x7E3EA326
|
239
240
|
"lib/cosmos/processors.rb" 0x5241327D
|
@@ -241,25 +242,33 @@
|
|
241
242
|
"lib/cosmos/streams/length_stream_protocol.rb" 0x400CD6F2
|
242
243
|
"lib/cosmos/streams/template_stream_protocol.rb" 0x6E466274
|
243
244
|
"lib/cosmos/streams/terminated_stream_protocol.rb" 0x5DBDE591
|
244
|
-
"lib/cosmos/streams/stream.rb"
|
245
|
-
"lib/cosmos/streams/serial_stream.rb"
|
246
|
-
"lib/cosmos/streams/stream_protocol.rb"
|
245
|
+
"lib/cosmos/streams/stream.rb" 0xFD0A41B9
|
246
|
+
"lib/cosmos/streams/serial_stream.rb" 0x9F0BBA1D
|
247
|
+
"lib/cosmos/streams/stream_protocol.rb" 0x5EA23890
|
247
248
|
"lib/cosmos/streams/fixed_stream_protocol.rb" 0x5F6F224B
|
248
|
-
"lib/cosmos/streams/tcpip_client_stream.rb"
|
249
|
-
"lib/cosmos/streams/tcpip_socket_stream.rb"
|
249
|
+
"lib/cosmos/streams/tcpip_client_stream.rb" 0x974ED23F
|
250
|
+
"lib/cosmos/streams/tcpip_socket_stream.rb" 0xD635732F
|
250
251
|
"lib/cosmos/streams/preidentified_stream_protocol.rb" 0xC258238E
|
251
252
|
"lib/cosmos/script.rb" 0x25BB611B
|
252
253
|
"lib/cosmos/config/config_parser.rb" 0x89526FF1
|
253
|
-
"lib/cosmos/packet_logs.rb"
|
254
|
+
"lib/cosmos/packet_logs.rb" 0xA2EDBB00
|
254
255
|
"lib/cosmos/packets/limits.rb" 0x66FCFD29
|
255
256
|
"lib/cosmos/packets/limits_response.rb" 0x9C5E8444
|
256
257
|
"lib/cosmos/packets/commands.rb" 0x0025C398
|
257
|
-
"lib/cosmos/packets/structure.rb"
|
258
|
+
"lib/cosmos/packets/structure.rb" 0x39FE3731
|
258
259
|
"lib/cosmos/packets/telemetry.rb" 0xF43901DF
|
259
|
-
"lib/cosmos/packets/
|
260
|
+
"lib/cosmos/packets/parsers/format_string_parser.rb" 0x8015C5E3
|
261
|
+
"lib/cosmos/packets/parsers/packet_parser.rb" 0xEA0AF2C6
|
262
|
+
"lib/cosmos/packets/parsers/packet_item_parser.rb" 0x8DB06663
|
263
|
+
"lib/cosmos/packets/parsers/processor_parser.rb" 0xEC75BA88
|
264
|
+
"lib/cosmos/packets/parsers/limits_parser.rb" 0xB9747994
|
265
|
+
"lib/cosmos/packets/parsers/state_parser.rb" 0xDD331AA5
|
266
|
+
"lib/cosmos/packets/parsers/macro_parser.rb" 0x767AD192
|
267
|
+
"lib/cosmos/packets/parsers/limits_response_parser.rb" 0x05979119
|
268
|
+
"lib/cosmos/packets/packet_config.rb" 0xFDD8F251
|
260
269
|
"lib/cosmos/packets/binary_accessor.rb" 0xF913F2EA
|
261
|
-
"lib/cosmos/packets/packet.rb"
|
262
|
-
"lib/cosmos/packets/structure_item.rb"
|
270
|
+
"lib/cosmos/packets/packet.rb" 0xF6D1CB14
|
271
|
+
"lib/cosmos/packets/structure_item.rb" 0xBDC81085
|
263
272
|
"lib/cosmos/packets/packet_item_limits.rb" 0xE187C389
|
264
273
|
"lib/cosmos/packets/packet_item.rb" 0x2A07D5B4
|
265
274
|
"lib/cosmos/processors/statistics_processor.rb" 0x29D933FE
|
@@ -268,10 +277,10 @@
|
|
268
277
|
"lib/cosmos/processors/watermark_processor.rb" 0xDADF4580
|
269
278
|
"lib/cosmos/io/stdout.rb" 0xAC9CC4B1
|
270
279
|
"lib/cosmos/io/buffered_file.rb" 0x70A3B880
|
271
|
-
"lib/cosmos/io/json_drb_object.rb"
|
280
|
+
"lib/cosmos/io/json_drb_object.rb" 0xD48FA273
|
272
281
|
"lib/cosmos/io/cosmos_snmp.rb" 0x64541158
|
273
282
|
"lib/cosmos/io/json_rpc.rb" 0x8EAA13F8
|
274
|
-
"lib/cosmos/io/tcpip_server.rb"
|
283
|
+
"lib/cosmos/io/tcpip_server.rb" 0xAB7A0F48
|
275
284
|
"lib/cosmos/io/posix_serial_driver.rb" 0x6DD5B8B4
|
276
285
|
"lib/cosmos/io/udp_sockets.rb" 0xB1B138CD
|
277
286
|
"lib/cosmos/io/serial_driver.rb" 0x9A2515F4
|
@@ -283,14 +292,14 @@
|
|
283
292
|
"lib/cosmos/io/win32_serial_driver.rb" 0xA7E055CA
|
284
293
|
"lib/cosmos/interfaces/linc_interface.rb" 0x77B8F1B2
|
285
294
|
"lib/cosmos/interfaces/cmd_tlm_server_interface.rb" 0x36E0796A
|
286
|
-
"lib/cosmos/interfaces/interface.rb"
|
287
|
-
"lib/cosmos/interfaces/stream_interface.rb"
|
295
|
+
"lib/cosmos/interfaces/interface.rb" 0x060825FA
|
296
|
+
"lib/cosmos/interfaces/stream_interface.rb" 0xDC602D7B
|
288
297
|
"lib/cosmos/interfaces/simulated_target_interface.rb" 0x15DC496F
|
289
298
|
"lib/cosmos/interfaces/serial_interface.rb" 0xC376DDA0
|
290
299
|
"lib/cosmos/interfaces/tcpip_client_interface.rb" 0x5F0DB50D
|
291
300
|
"lib/cosmos/interfaces/udp_interface.rb" 0xA991C213
|
292
|
-
"lib/cosmos/interfaces/tcpip_server_interface.rb"
|
293
|
-
"lib/cosmos/script/script.rb"
|
301
|
+
"lib/cosmos/interfaces/tcpip_server_interface.rb" 0xC8F6E908
|
302
|
+
"lib/cosmos/script/script.rb" 0x139256FE
|
294
303
|
"lib/cosmos/script/extract.rb" 0xF3243476
|
295
304
|
"lib/cosmos/core_ext/range.rb" 0x0D55D9D1
|
296
305
|
"lib/cosmos/core_ext/stringio.rb" 0x28B64FB4
|
@@ -308,4 +317,4 @@
|
|
308
317
|
"lib/cosmos/core_ext/string.rb" 0x2079C392
|
309
318
|
"lib/cosmos/core_ext/hash.rb" 0x99038BE1
|
310
319
|
"lib/cosmos/core_ext/matrix.rb" 0xC7ABFF88
|
311
|
-
"lib/cosmos.rb"
|
320
|
+
"lib/cosmos.rb" 0xE8930592
|
data/demo/config/data/crc.txt
CHANGED
@@ -51,7 +51,7 @@
|
|
51
51
|
"config/targets/TEMPLATED/cmd_tlm/templated_cmds.txt" 0x36D65799
|
52
52
|
"config/targets/TEMPLATED/cmd_tlm_server.txt" 0x727CDBEB
|
53
53
|
"config/targets/TEMPLATED/target.txt" 0xDE6DDA2D
|
54
|
-
"config/targets/TEMPLATED/lib/templated_interface.rb"
|
54
|
+
"config/targets/TEMPLATED/lib/templated_interface.rb" 0x924A3AFE
|
55
55
|
"config/targets/COSMOS/cmd_tlm/cosmos_server_tlm.txt" 0xC667CCD6
|
56
56
|
"config/targets/COSMOS/cmd_tlm/cosmos_server_cmds.txt" 0xE2F62B11
|
57
57
|
"config/targets/COSMOS/cmd_tlm_server.txt" 0xE53A4164
|
@@ -66,8 +66,8 @@
|
|
66
66
|
"config/tools/tlm_extractor/tlm_extractor2.txt" 0x210DED6A
|
67
67
|
"config/tools/tlm_extractor/tlm_extractor.txt" 0x51B791DF
|
68
68
|
"config/tools/tlm_extractor/tlm_extractor3.txt" 0x3A25E012
|
69
|
-
"config/tools/cmd_tlm_server/cmd_tlm_server.txt"
|
70
|
-
"config/tools/cmd_tlm_server/cmd_tlm_server2.txt"
|
69
|
+
"config/tools/cmd_tlm_server/cmd_tlm_server.txt" 0x5F467E20
|
70
|
+
"config/tools/cmd_tlm_server/cmd_tlm_server2.txt" 0xF1C5C3B4
|
71
71
|
"config/tools/limits_monitor/README.txt" 0x93B2C07E
|
72
72
|
"config/tools/table_manager/PPSSelectionTable_def.txt" 0xE7A1E70B
|
73
73
|
"config/tools/table_manager/ConfigTables_def.txt" 0xC38DCB2A
|
@@ -32,6 +32,8 @@ module Cosmos
|
|
32
32
|
cmd("#{@target_names[0]} GET_SETPT_VOLTAGE")
|
33
33
|
break if @sleeper.sleep(1)
|
34
34
|
end
|
35
|
+
rescue Errno::ECONNRESET
|
36
|
+
# This typically means the target disconnected
|
35
37
|
rescue Exception => err
|
36
38
|
Logger.error "Polling Thread Unexpectedly Died.\n#{err.formatted}"
|
37
39
|
end
|
@@ -42,7 +44,7 @@ module Cosmos
|
|
42
44
|
super()
|
43
45
|
# Note: This must be after super or the disconnect process will be interrupted by killing
|
44
46
|
# the thread
|
45
|
-
Cosmos.kill_thread(self, @polling_thread)
|
47
|
+
Cosmos.kill_thread(self, @polling_thread) if Thread.current != @polling_thread
|
46
48
|
@polling_thread = nil
|
47
49
|
end
|
48
50
|
|
@@ -19,14 +19,20 @@ INTERFACE COSMOS_INT cmd_tlm_server_interface.rb
|
|
19
19
|
TARGET COSMOS
|
20
20
|
DISABLE_DISCONNECT
|
21
21
|
LOG COSMOSLOG
|
22
|
+
# DONT_LOG
|
22
23
|
# DONT_CONNECT
|
23
24
|
# DONT_RECONNECT
|
24
25
|
# RECONNECT_DELAY 15.0
|
25
26
|
# LOG_RAW
|
26
27
|
|
27
28
|
ROUTER INST_ROUTER tcpip_server_interface.rb 2055 2055 10.0 nil LENGTH 32 16 7
|
29
|
+
OPTION LISTEN_ADDRESS 127.0.0.1
|
28
30
|
ROUTE INST_INT
|
29
|
-
#
|
31
|
+
# DONT_CONNECT
|
32
|
+
# DONT_RECONNECT
|
33
|
+
# DISABLE_DISCONNECT
|
34
|
+
# RECONNECT_DELAY 15.0
|
35
|
+
# LOG_RAW
|
30
36
|
|
31
37
|
BACKGROUND_TASK example_background_task.rb
|
32
38
|
|
@@ -17,6 +17,7 @@ INTERFACE COSMOS_INT cmd_tlm_server_interface.rb
|
|
17
17
|
TARGET COSMOS
|
18
18
|
DISABLE_DISCONNECT
|
19
19
|
LOG COSMOSLOG
|
20
|
+
# DONT_LOG
|
20
21
|
# DONT_CONNECT
|
21
22
|
# DONT_RECONNECT
|
22
23
|
# RECONNECT_DELAY 15.0
|
@@ -24,6 +25,10 @@ INTERFACE COSMOS_INT cmd_tlm_server_interface.rb
|
|
24
25
|
|
25
26
|
ROUTER INST_ROUTER tcpip_server_interface.rb 3055 3055 10.0 nil LENGTH 32 16 7
|
26
27
|
ROUTE INST_INT
|
27
|
-
#
|
28
|
+
# DONT_CONNECT
|
29
|
+
# DONT_RECONNECT
|
30
|
+
# DISABLE_DISCONNECT
|
31
|
+
# RECONNECT_DELAY 15.0
|
32
|
+
# LOG_RAW
|
28
33
|
|
29
34
|
BACKGROUND_TASK example_background_task.rb
|
data/lib/cosmos.rb
CHANGED
@@ -40,7 +40,7 @@ require 'cosmos/ext/platform'
|
|
40
40
|
saved_verbose = $VERBOSE; $VERBOSE = nil
|
41
41
|
begin
|
42
42
|
require 'dl'
|
43
|
-
rescue
|
43
|
+
rescue Exception
|
44
44
|
end
|
45
45
|
$VERBOSE = saved_verbose
|
46
46
|
|
@@ -58,6 +58,6 @@ require 'cosmos/system'
|
|
58
58
|
|
59
59
|
begin
|
60
60
|
require 'user_version'
|
61
|
-
rescue
|
61
|
+
rescue Exception
|
62
62
|
# Not defined
|
63
63
|
end
|
@@ -67,10 +67,9 @@ module Cosmos
|
|
67
67
|
configurable_about_text = File.read(filename)
|
68
68
|
configurable_about_text.gsub!("\r", '') unless Kernel.is_windows?
|
69
69
|
if Kernel.is_windows?
|
70
|
-
configurable_about_text += "\n" +
|
70
|
+
configurable_about_text += "\n" + "Main Application x:#{parent.x} y:#{parent.y} width:#{parent.frameGeometry.width + 16} height:#{parent.frameGeometry.height + 38}\n\n" + ABOUT_COSMOS
|
71
71
|
else
|
72
|
-
configurable_about_text += "\n" +
|
73
|
-
end
|
72
|
+
configurable_about_text += "\n" + "Main Application x:#{parent.x} y:#{parent.y} width:#{parent.frameGeometry.width} height:#{parent.frameGeometry.height}\n\n" + ABOUT_COSMOS end
|
74
73
|
|
75
74
|
# Set the application about text
|
76
75
|
about = Qt::Label.new(about_string + "\n\n" + configurable_about_text)
|
@@ -89,8 +88,22 @@ module Cosmos
|
|
89
88
|
end
|
90
89
|
|
91
90
|
self.layout = Qt::VBoxLayout.new do
|
92
|
-
|
93
|
-
|
91
|
+
scroll_area = Qt::ScrollArea.new
|
92
|
+
scroll_area.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff)
|
93
|
+
addWidget(scroll_area)
|
94
|
+
scroll_widget = Qt::Widget.new
|
95
|
+
scroll_area.setWidget(scroll_widget)
|
96
|
+
interior_layout = Qt::VBoxLayout.new
|
97
|
+
interior_layout.addLayout(icon_layout)
|
98
|
+
interior_layout.addWidget(about)
|
99
|
+
scroll_widget.setLayout(interior_layout)
|
100
|
+
if scroll_widget.minimumSizeHint.height < 800
|
101
|
+
scroll_area.setMinimumHeight(scroll_widget.minimumSizeHint.height + 80)
|
102
|
+
scroll_area.setMinimumWidth(scroll_widget.minimumSizeHint.width)
|
103
|
+
else
|
104
|
+
scroll_area.setMinimumWidth(scroll_widget.minimumSizeHint.width + 20)
|
105
|
+
end
|
106
|
+
scroll_widget.adjustSize
|
94
107
|
addLayout(button_layout)
|
95
108
|
end
|
96
109
|
|