cosmos 3.5.3 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Manifest.txt +3 -0
  4. data/autohotkey/procedures/script_test.rb +4 -0
  5. data/autohotkey/tools/script_runner2.ahk +13 -0
  6. data/cosmos.gemspec +2 -2
  7. data/data/crc.txt +17 -17
  8. data/demo/config/data/crc.txt +10 -7
  9. data/demo/config/targets/INST/cmd_tlm/_ccsds_cmd.txt +9 -0
  10. data/demo/config/targets/INST/cmd_tlm/_ccsds_tlm.txt +19 -0
  11. data/demo/config/targets/INST/cmd_tlm/inst_cmds.txt +19 -84
  12. data/demo/config/targets/INST/cmd_tlm/inst_tlm.txt +27 -110
  13. data/demo/config/tools/table_manager/TLMMonitoringTable_def.txt +3 -220
  14. data/demo/config/tools/tlm_extractor/_adcs_time.txt +2 -0
  15. data/demo/config/tools/tlm_extractor/tlm_extractor.txt +1 -1
  16. data/demo/config/tools/tlm_extractor/tlm_extractor2.txt +1 -1
  17. data/demo/config/tools/tlm_extractor/tlm_extractor3.txt +1 -1
  18. data/demo/config/tools/tlm_extractor/tlm_extractor4.txt +1 -1
  19. data/lib/cosmos/config/config_parser.rb +54 -1
  20. data/lib/cosmos/gui/utilities/script_module_gui.rb +31 -20
  21. data/lib/cosmos/io/json_drb.rb +33 -23
  22. data/lib/cosmos/io/json_drb_object.rb +4 -1
  23. data/lib/cosmos/io/tcpip_server.rb +1 -1
  24. data/lib/cosmos/packets/packet_config.rb +5 -1
  25. data/lib/cosmos/packets/parsers/macro_parser.rb +1 -1
  26. data/lib/cosmos/script/scripting.rb +28 -0
  27. data/lib/cosmos/streams/tcpip_socket_stream.rb +72 -19
  28. data/lib/cosmos/system/target.rb +16 -2
  29. data/lib/cosmos/tools/cmd_sender/cmd_sender.rb +28 -17
  30. data/lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_config.rb +14 -2
  31. data/lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb +1 -1
  32. data/lib/cosmos/tools/cmd_tlm_server/gui/packets_tab.rb +27 -20
  33. data/lib/cosmos/tools/cmd_tlm_server/interface_thread.rb +2 -2
  34. data/lib/cosmos/tools/script_runner/script_runner_frame.rb +40 -36
  35. data/lib/cosmos/version.rb +5 -5
  36. data/spec/config/config_parser_spec.rb +1 -1
  37. data/spec/io/json_drb_spec.rb +7 -21
  38. data/spec/packets/packet_config_spec.rb +12 -12
  39. data/spec/packets/parsers/format_string_parser_spec.rb +3 -3
  40. data/spec/packets/parsers/limits_parser_spec.rb +10 -10
  41. data/spec/packets/parsers/limits_response_parser_spec.rb +2 -2
  42. data/spec/packets/parsers/macro_parser_spec.rb +6 -6
  43. data/spec/packets/parsers/packet_parser_spec.rb +1 -1
  44. data/spec/packets/parsers/processor_parser_spec.rb +2 -2
  45. data/spec/packets/parsers/state_parser_spec.rb +1 -1
  46. data/spec/script/scripting_spec.rb +23 -0
  47. data/spec/streams/tcpip_socket_stream_spec.rb +28 -0
  48. data/spec/system/system_spec.rb +20 -20
  49. data/spec/system/target_spec.rb +10 -10
  50. data/spec/tools/cmd_tlm_server/cmd_tlm_server_config_spec.rb +30 -22
  51. metadata +9 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df21dbeb06b5f5b922a79b5c7806640c169a9e96
4
- data.tar.gz: 070302ef24249cb71e190b8e71af1f75b1ba6be8
3
+ metadata.gz: 46c831622d8bb205d35bbb73d5b72d93c9923028
4
+ data.tar.gz: 5dd0f0bbf288ba2595cb4e541b019bc1069f3ab3
5
5
  SHA512:
6
- metadata.gz: d5f38472e2de8025beca2d3e5fbaa90180a34ad7db0814f4c9361a5d7a0735ca1ef79582836e64c71aadfe1f629364020d6654224ed1230dc82328de1dac3f7b
7
- data.tar.gz: f08e5e614bdcd3a4435bd6b8c70f753e73689620eaf462a8b01ee396616d3813bbcfa813e479b81ed05751ad2117a582a1146885b4bf83e8cef334dacc242d64
6
+ metadata.gz: 0dcd9a36210998709f829d5488f4f90a7ed69029df35f20fcc080027e212b23e26911c80a6957115829ca0b97691d0df8ffd59d86825cb0af0829462e1bbb77f
7
+ data.tar.gz: 2912f264846633602ffcd2fcaeed692ed39b1ad8fc38a69678eb540b185fdc40c7b8cdf44dde502eb7a3d6701c450dd1cdf6e3e409ad8afd984d15ac6d66cfaa
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # encoding: ascii-8bit
2
2
 
3
- source 'https://rubygems.org'
3
+ source 'http://rubygems.org'
4
4
 
5
5
  gem 'ruby-termios', '~> 0.9' if RbConfig::CONFIG['target_os'] !~ /mswin|mingw|cygwin/i
6
6
  # This is commented out because wdm does not currently support Ruby 2.2
@@ -308,6 +308,8 @@ demo/config/targets/EXAMPLE/cmd_tlm/example_tlm.txt
308
308
  demo/config/targets/EXAMPLE/cmd_tlm_server.txt
309
309
  demo/config/targets/EXAMPLE/lib/example_interface.rb
310
310
  demo/config/targets/EXAMPLE/target.txt
311
+ demo/config/targets/INST/cmd_tlm/_ccsds_cmd.txt
312
+ demo/config/targets/INST/cmd_tlm/_ccsds_tlm.txt
311
313
  demo/config/targets/INST/cmd_tlm/inst_cmds.txt
312
314
  demo/config/targets/INST/cmd_tlm/inst_tlm.txt
313
315
  demo/config/targets/INST/cmd_tlm_server.txt
@@ -365,6 +367,7 @@ demo/config/tools/table_manager/MCConfigurationTable_fsw2_def.txt
365
367
  demo/config/tools/table_manager/PPSSelectionTable_def.txt
366
368
  demo/config/tools/table_manager/TLMMonitoringTable_def.txt
367
369
  demo/config/tools/test_runner/test_runner.txt
370
+ demo/config/tools/tlm_extractor/_adcs_time.txt
368
371
  demo/config/tools/tlm_extractor/tlm_extractor.txt
369
372
  demo/config/tools/tlm_extractor/tlm_extractor2.txt
370
373
  demo/config/tools/tlm_extractor/tlm_extractor3.txt
@@ -14,4 +14,8 @@ step_mode
14
14
  wait 0.5
15
15
  run_mode
16
16
  show_backtrace
17
+ puts save_file_dialog()
18
+ puts open_file_dialog(Dir.pwd)
19
+ puts open_files_dialog(__FILE__, "Select something!!!")
20
+ puts open_directory_dialog()
17
21
  start("clear_util.rb")
@@ -20,6 +20,19 @@ Sleep 500
20
20
  Click 400 90 ; Go
21
21
  Sleep 500
22
22
  Click 400 90 ; Go
23
+ Sleep 1000
24
+ WinWaitActive Save File
25
+ Sleep 500
26
+ Send {Esc}
27
+ WinWaitActive Open File
28
+ Sleep 500
29
+ Send {Esc}
30
+ WinWaitActive Select something!!!
31
+ Sleep 500
32
+ Send {Esc}
33
+ WinWaitActive Open Directory
34
+ Sleep 500
35
+ Send {Esc}
23
36
  Sleep 3000
24
37
 
25
38
  WinActivate Telemetry Viewer
@@ -90,9 +90,9 @@ spec = Gem::Specification.new do |s|
90
90
  s.add_development_dependency 'listen', '~> 2.0'
91
91
  s.add_development_dependency 'guard-bundler', '~> 2.0'
92
92
  s.add_development_dependency 'guard-rspec', '~> 4.0'
93
- s.add_development_dependency 'simplecov', '~> 0.9.0'
93
+ s.add_development_dependency 'simplecov', '~> 0.10'
94
94
  s.add_development_dependency 'ruby-prof', '~> 0.15.0'
95
- s.add_development_dependency 'coveralls', '~> 0.7.0'
95
+ s.add_development_dependency 'coveralls', '~> 0.8'
96
96
  s.add_development_dependency 'benchmark-ips', '~> 2.0'
97
97
 
98
98
  s.post_install_message = "Thanks for installing Ball Aerospace COSMOS!\nStart your first project with: cosmos demo demo\n"
@@ -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" 0x196C6847
3
+ "lib/cosmos/system/target.rb" 0x0D095C3F
4
4
  "lib/cosmos/system/system.rb" 0x9437DAD9
5
5
  "lib/cosmos/win32/win32_main.rb" 0x6D33DC6A
6
6
  "lib/cosmos/win32/win32.rb" 0xEF748B06
@@ -53,7 +53,7 @@
53
53
  "lib/cosmos/gui/dialogs/tlm_details_dialog.rb" 0x18B1DB71
54
54
  "lib/cosmos/gui/dialogs/calendar_dialog.rb" 0x688D3D3B
55
55
  "lib/cosmos/gui/qt_tool.rb" 0x5EC8FC5F
56
- "lib/cosmos/gui/utilities/script_module_gui.rb" 0x42BAAA94
56
+ "lib/cosmos/gui/utilities/script_module_gui.rb" 0xA5A34AF5
57
57
  "lib/cosmos/gui/utilities/screenshot.rb" 0x65F75371
58
58
  "lib/cosmos/gui/widgets/full_text_search_line_edit.rb" 0x7AAF694C
59
59
  "lib/cosmos/gui/widgets/realtime_button_bar.rb" 0xEB0CE858
@@ -90,7 +90,7 @@
90
90
  "lib/cosmos/gui/choosers/combobox_chooser.rb" 0xAD5383D5
91
91
  "lib/cosmos/gui/choosers/float_chooser.rb" 0x23B2FA77
92
92
  "lib/cosmos/tools/script_runner/script_runner_config.rb" 0x1E46E8AA
93
- "lib/cosmos/tools/script_runner/script_runner_frame.rb" 0xB051DD25
93
+ "lib/cosmos/tools/script_runner/script_runner_frame.rb" 0x6FEE12DB
94
94
  "lib/cosmos/tools/script_runner/script_runner.rb" 0xA5890428
95
95
  "lib/cosmos/tools/script_runner/script_audit.rb" 0xB857FA4A
96
96
  "lib/cosmos/tools/cmd_extractor/cmd_extractor.rb" 0x41CF52C2
@@ -107,7 +107,7 @@
107
107
  "lib/cosmos/tools/tlm_extractor/tlm_extractor.rb" 0xBEE35D52
108
108
  "lib/cosmos/tools/tlm_extractor/tlm_extractor_config.rb" 0x7779DCEC
109
109
  "lib/cosmos/tools/tlm_extractor/text_item_chooser.rb" 0x587768C6
110
- "lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_config.rb" 0xA1C38662
110
+ "lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_config.rb" 0xEFDAD3B8
111
111
  "lib/cosmos/tools/cmd_tlm_server/api.rb" 0x217CE77F
112
112
  "lib/cosmos/tools/cmd_tlm_server/connections.rb" 0x6DC54689
113
113
  "lib/cosmos/tools/cmd_tlm_server/background_task.rb" 0x448A2191
@@ -118,13 +118,13 @@
118
118
  "lib/cosmos/tools/cmd_tlm_server/gui/status_tab.rb" 0x9136F03E
119
119
  "lib/cosmos/tools/cmd_tlm_server/gui/interfaces_tab.rb" 0xEFB119C2
120
120
  "lib/cosmos/tools/cmd_tlm_server/gui/logging_tab.rb" 0xFF291A22
121
- "lib/cosmos/tools/cmd_tlm_server/gui/packets_tab.rb" 0xD8916AE8
121
+ "lib/cosmos/tools/cmd_tlm_server/gui/packets_tab.rb" 0xD9D405D2
122
122
  "lib/cosmos/tools/cmd_tlm_server/routers.rb" 0xF8C93062
123
123
  "lib/cosmos/tools/cmd_tlm_server/packet_logging.rb" 0x166BE402
124
124
  "lib/cosmos/tools/cmd_tlm_server/commanding.rb" 0xC7C76CD8
125
125
  "lib/cosmos/tools/cmd_tlm_server/interfaces.rb" 0x10BC320E
126
- "lib/cosmos/tools/cmd_tlm_server/interface_thread.rb" 0x38E5ECE5
127
- "lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb" 0xA4795DC7
126
+ "lib/cosmos/tools/cmd_tlm_server/interface_thread.rb" 0x7215DAF9
127
+ "lib/cosmos/tools/cmd_tlm_server/cmd_tlm_server_gui.rb" 0x50E37D3B
128
128
  "lib/cosmos/tools/limits_monitor/limits_monitor.rb" 0x0321B411
129
129
  "lib/cosmos/tools/packet_viewer/packet_viewer.rb" 0x859EC490
130
130
  "lib/cosmos/tools/table_manager/table_manager.rb" 0x4FC4AE95
@@ -134,7 +134,7 @@
134
134
  "lib/cosmos/tools/table_manager/table_config.rb" 0x94E3D8AF
135
135
  "lib/cosmos/tools/opengl_builder/scene_config.rb" 0x15B59793
136
136
  "lib/cosmos/tools/opengl_builder/opengl_builder.rb" 0xB161B0F9
137
- "lib/cosmos/tools/cmd_sender/cmd_sender.rb" 0xCE30B8BE
137
+ "lib/cosmos/tools/cmd_sender/cmd_sender.rb" 0xC47CB417
138
138
  "lib/cosmos/tools/cmd_sender/cmd_sender_item_delegate.rb" 0x8297CC9D
139
139
  "lib/cosmos/tools/cmd_sender/cmd_sender_text_edit.rb" 0xB192AF6E
140
140
  "lib/cosmos/tools/test_runner/test_runner_chooser.rb" 0xB2BC3115
@@ -234,7 +234,7 @@
234
234
  "lib/cosmos/tools/tlm_viewer/tlm_viewer.rb" 0x895983E9
235
235
  "lib/cosmos/system.rb" 0x735DFB42
236
236
  "lib/cosmos/conversions.rb" 0x43679D05
237
- "lib/cosmos/version.rb" 0x46847B0C
237
+ "lib/cosmos/version.rb" 0x57B2D7DE
238
238
  "lib/cosmos/core_ext.rb" 0x1951B346
239
239
  "lib/cosmos/interfaces.rb" 0x7E3EA326
240
240
  "lib/cosmos/processors.rb" 0x5241327D
@@ -247,10 +247,10 @@
247
247
  "lib/cosmos/streams/stream_protocol.rb" 0xEC382CA0
248
248
  "lib/cosmos/streams/fixed_stream_protocol.rb" 0x5F6F224B
249
249
  "lib/cosmos/streams/tcpip_client_stream.rb" 0xA644ADBA
250
- "lib/cosmos/streams/tcpip_socket_stream.rb" 0xC66F984E
250
+ "lib/cosmos/streams/tcpip_socket_stream.rb" 0x7096E4FA
251
251
  "lib/cosmos/streams/preidentified_stream_protocol.rb" 0xC258238E
252
252
  "lib/cosmos/script.rb" 0x25BB611B
253
- "lib/cosmos/config/config_parser.rb" 0x89526FF1
253
+ "lib/cosmos/config/config_parser.rb" 0x96FBE8D7
254
254
  "lib/cosmos/packet_logs.rb" 0xA2EDBB00
255
255
  "lib/cosmos/packets/limits.rb" 0x9758BB50
256
256
  "lib/cosmos/packets/limits_response.rb" 0x9C5E8444
@@ -263,9 +263,9 @@
263
263
  "lib/cosmos/packets/parsers/processor_parser.rb" 0xEC75BA88
264
264
  "lib/cosmos/packets/parsers/limits_parser.rb" 0xFCFB27D0
265
265
  "lib/cosmos/packets/parsers/state_parser.rb" 0xCA3BFDFC
266
- "lib/cosmos/packets/parsers/macro_parser.rb" 0x8454D5AE
266
+ "lib/cosmos/packets/parsers/macro_parser.rb" 0x4CC8096D
267
267
  "lib/cosmos/packets/parsers/limits_response_parser.rb" 0x05979119
268
- "lib/cosmos/packets/packet_config.rb" 0xFDD8F251
268
+ "lib/cosmos/packets/packet_config.rb" 0x37D677AC
269
269
  "lib/cosmos/packets/binary_accessor.rb" 0x7D41D474
270
270
  "lib/cosmos/packets/packet.rb" 0x043EF800
271
271
  "lib/cosmos/packets/structure_item.rb" 0xBDC81085
@@ -277,16 +277,16 @@
277
277
  "lib/cosmos/processors/watermark_processor.rb" 0xDADF4580
278
278
  "lib/cosmos/io/stdout.rb" 0xAC9CC4B1
279
279
  "lib/cosmos/io/buffered_file.rb" 0x70A3B880
280
- "lib/cosmos/io/json_drb_object.rb" 0x9825D709
280
+ "lib/cosmos/io/json_drb_object.rb" 0x1E49F4E5
281
281
  "lib/cosmos/io/cosmos_snmp.rb" 0x64541158
282
282
  "lib/cosmos/io/json_rpc.rb" 0xAF9D95D5
283
- "lib/cosmos/io/tcpip_server.rb" 0xBAA24660
283
+ "lib/cosmos/io/tcpip_server.rb" 0x2A294912
284
284
  "lib/cosmos/io/posix_serial_driver.rb" 0x6DD5B8B4
285
285
  "lib/cosmos/io/udp_sockets.rb" 0xB1B138CD
286
286
  "lib/cosmos/io/serial_driver.rb" 0x9A2515F4
287
287
  "lib/cosmos/io/raw_logger_pair.rb" 0x7A0A3F00
288
288
  "lib/cosmos/io/raw_logger.rb" 0x42BC42CC
289
- "lib/cosmos/io/json_drb.rb" 0xEB371784
289
+ "lib/cosmos/io/json_drb.rb" 0x495EB58B
290
290
  "lib/cosmos/io/stderr.rb" 0x401624AF
291
291
  "lib/cosmos/io/io_multiplexer.rb" 0xD183938D
292
292
  "lib/cosmos/io/win32_serial_driver.rb" 0xECBFE8FD
@@ -303,7 +303,7 @@
303
303
  "lib/cosmos/script/commands.rb" 0x58ABA373
304
304
  "lib/cosmos/script/telemetry.rb" 0x2AFB0DCB
305
305
  "lib/cosmos/script/cmd_tlm_server.rb" 0x15F91C95
306
- "lib/cosmos/script/scripting.rb" 0x8569530F
306
+ "lib/cosmos/script/scripting.rb" 0xB79087E5
307
307
  "lib/cosmos/script/tools.rb" 0x8565EDC5
308
308
  "lib/cosmos/script/script.rb" 0xF1B3E1F2
309
309
  "lib/cosmos/script/extract.rb" 0xCF4666D3
@@ -23,8 +23,10 @@
23
23
  "config/targets/SYSTEM/cmd_tlm/override.txt" 0x8FE016FF
24
24
  "config/targets/SYSTEM/cmd_tlm/limits_groups.txt" 0x16AF4BA3
25
25
  "config/targets/SYSTEM/screens/status.txt" 0x89B616E5
26
- "config/targets/INST/cmd_tlm/inst_tlm.txt" 0x41CB35D2
27
- "config/targets/INST/cmd_tlm/inst_cmds.txt" 0x5E6ADC2F
26
+ "config/targets/INST/cmd_tlm/_ccsds_tlm.txt" 0xE833D935
27
+ "config/targets/INST/cmd_tlm/inst_tlm.txt" 0xB051D393
28
+ "config/targets/INST/cmd_tlm/inst_cmds.txt" 0xB1512DFA
29
+ "config/targets/INST/cmd_tlm/_ccsds_cmd.txt" 0x30F646E8
28
30
  "config/targets/INST/cmd_tlm_server.txt" 0x3FC45604
29
31
  "config/targets/INST/target.txt" 0x3C3A6F4A
30
32
  "config/targets/INST/screens/graphs.txt" 0x82EF35B4
@@ -62,10 +64,11 @@
62
64
  "config/tools/data_viewer/data_viewer.txt" 0xCAC3B017
63
65
  "config/tools/launcher/launcher.txt" 0x1B96FE7C
64
66
  "config/tools/launcher/launcher2.txt" 0xB0B9B1D1
65
- "config/tools/tlm_extractor/tlm_extractor4.txt" 0x7BFDC27A
66
- "config/tools/tlm_extractor/tlm_extractor2.txt" 0x210DED6A
67
- "config/tools/tlm_extractor/tlm_extractor.txt" 0x51B791DF
68
- "config/tools/tlm_extractor/tlm_extractor3.txt" 0x3A25E012
67
+ "config/tools/tlm_extractor/tlm_extractor4.txt" 0x068824C2
68
+ "config/tools/tlm_extractor/_adcs_time.txt" 0x3DAD5094
69
+ "config/tools/tlm_extractor/tlm_extractor2.txt" 0x5C780BD2
70
+ "config/tools/tlm_extractor/tlm_extractor.txt" 0x0B97FA7D
71
+ "config/tools/tlm_extractor/tlm_extractor3.txt" 0x475006AA
69
72
  "config/tools/cmd_tlm_server/cmd_tlm_server.txt" 0x5F467E20
70
73
  "config/tools/cmd_tlm_server/cmd_tlm_server2.txt" 0xF1C5C3B4
71
74
  "config/tools/limits_monitor/README.txt" 0x93B2C07E
@@ -73,7 +76,7 @@
73
76
  "config/tools/table_manager/ConfigTables_def.txt" 0xC38DCB2A
74
77
  "config/tools/table_manager/ExampleTableDefinition.txt" 0x5476588C
75
78
  "config/tools/table_manager/MCConfigurationTable_fsw1_def.txt" 0x9DE18AEA
76
- "config/tools/table_manager/TLMMonitoringTable_def.txt" 0x70DABA45
79
+ "config/tools/table_manager/TLMMonitoringTable_def.txt" 0xBD70F0A7
77
80
  "config/tools/table_manager/MCConfigurationTable_fsw2_def.txt" 0x9DE18AEA
78
81
  "config/tools/opengl_builder/README.txt" 0x93B2C07E
79
82
  "config/tools/test_runner/test_runner.txt" 0x1EB7E49C
@@ -0,0 +1,9 @@
1
+ PARAMETER CCSDSVER 0 3 UINT 0 0 0 "CCSDS primary header version number"
2
+ PARAMETER CCSDSTYPE 3 1 UINT 1 1 1 "CCSDS primary header packet type"
3
+ PARAMETER CCSDSSHF 4 1 UINT 0 0 0 "CCSDS primary header secondary header flag"
4
+ ID_PARAMETER CCSDSAPID 5 11 UINT 0 2047 999 "CCSDS primary header application id"
5
+ PARAMETER CCSDSSEQFLAGS 16 2 UINT 3 3 3 "CCSDS primary header sequence flags"
6
+ PARAMETER CCSDSSEQCNT 18 14 UINT 0 16383 0 "CCSDS primary header sequence count"
7
+ OVERFLOW TRUNCATE
8
+ PARAMETER CCSDSLENGTH 32 16 UINT 0 65535 12 "CCSDS primary header packet length"
9
+ ID_PARAMETER PKTID 48 16 UINT 0 65535 <%= id %> "Packet id"
@@ -0,0 +1,19 @@
1
+ APPEND_ITEM CCSDSVER 3 UINT "CCSDS packet version number (See CCSDS 133.0-B-1)"
2
+ APPEND_ITEM CCSDSTYPE 1 UINT "CCSDS packet type (command or telemetry)"
3
+ STATE TLM 0
4
+ STATE CMD 1
5
+ APPEND_ITEM CCSDSSHF 1 UINT "CCSDS secondary header flag"
6
+ STATE FALSE 0
7
+ STATE TRUE 1
8
+ APPEND_ID_ITEM CCSDSAPID 11 UINT <%= apid %> "CCSDS application process id"
9
+ APPEND_ITEM CCSDSSEQFLAGS 2 UINT "CCSDS sequence flags"
10
+ STATE FIRST 1
11
+ STATE CONT 0
12
+ STATE LAST 2
13
+ STATE NOGROUP 3
14
+ APPEND_ITEM CCSDSSEQCNT 14 UINT "CCSDS packet sequence count"
15
+ OVERFLOW TRUNCATE
16
+ APPEND_ITEM CCSDSLENGTH 16 UINT "CCSDS packet data length"
17
+ APPEND_ITEM TIMESEC 32 UINT "Seconds since epoch (January 1st, 1970, midnight)"
18
+ APPEND_ITEM TIMEUS 32 UINT "Microseconds of second"
19
+ APPEND_ID_ITEM PKTID 16 UINT 1 "Packet id (The combination of CCSDS_APID and PACKET_ID identify the packet)"
@@ -1,13 +1,5 @@
1
1
  COMMAND INST COLLECT BIG_ENDIAN "Starts a collect on the instrument"
2
- PARAMETER CCSDSVER 0 3 UINT 0 0 0 "CCSDS primary header version number"
3
- PARAMETER CCSDSTYPE 3 1 UINT 1 1 1 "CCSDS primary header packet type"
4
- PARAMETER CCSDSSHF 4 1 UINT 0 0 0 "CCSDS primary header secondary header flag"
5
- ID_PARAMETER CCSDSAPID 5 11 UINT 0 2047 999 "CCSDS primary header application id"
6
- PARAMETER CCSDSSEQFLAGS 16 2 UINT 3 3 3 "CCSDS primary header sequence flags"
7
- PARAMETER CCSDSSEQCNT 18 14 UINT 0 16383 0 "CCSDS primary header sequence count"
8
- OVERFLOW TRUNCATE
9
- PARAMETER CCSDSLENGTH 32 16 UINT 0 65535 12 "CCSDS primary header packet length"
10
- ID_PARAMETER PKTID 48 16 UINT 0 65535 1 "Packet id"
2
+ <%= render "_ccsds_cmd.txt", locals: {id: 1} %>
11
3
  PARAMETER TYPE 64 16 UINT 0 65535 0 "Collect type"
12
4
  REQUIRED
13
5
  STATE NORMAL 0
@@ -19,103 +11,46 @@ COMMAND INST COLLECT BIG_ENDIAN "Starts a collect on the instrument"
19
11
  UNITS Celcius C
20
12
 
21
13
  COMMAND INST ABORT BIG_ENDIAN "Aborts a collect on the instrument"
22
- PARAMETER CCSDSVER 0 3 UINT 0 0 0 "CCSDS primary header version number"
23
- PARAMETER CCSDSTYPE 3 1 UINT 1 1 1 "CCSDS primary header packet type"
24
- PARAMETER CCSDSSHF 4 1 UINT 0 0 0 "CCSDS primary header secondary header flag"
25
- ID_PARAMETER CCSDSAPID 5 11 UINT 0 2047 999 "CCSDS primary header application id"
26
- PARAMETER CCSDSSEQFLAGS 16 2 UINT 3 3 3 "CCSDS primary header sequence flags"
27
- PARAMETER CCSDSSEQCNT 18 14 UINT 0 16383 0 "CCSDS primary header sequence count"
28
- OVERFLOW TRUNCATE
29
- PARAMETER CCSDSLENGTH 32 16 UINT 0 65535 1 "CCSDS primary header packet length"
30
- ID_PARAMETER PKTID 48 16 UINT 0 65535 2 "Packet id"
14
+ <%= render "_ccsds_cmd.txt", locals: {id: 2} %>
31
15
 
32
16
  COMMAND INST CLEAR BIG_ENDIAN "Clears counters on the instrument"
33
17
  HAZARDOUS "Clearing counters may lose valuable information."
34
- PARAMETER CCSDSVER 0 3 UINT 0 0 0 "CCSDS primary header version number"
35
- PARAMETER CCSDSTYPE 3 1 UINT 1 1 1 "CCSDS primary header packet type"
36
- PARAMETER CCSDSSHF 4 1 UINT 0 0 0 "CCSDS primary header secondary header flag"
37
- ID_PARAMETER CCSDSAPID 5 11 UINT 0 2047 999 "CCSDS primary header application id"
38
- PARAMETER CCSDSSEQFLAGS 16 2 UINT 3 3 3 "CCSDS primary header sequence flags"
39
- PARAMETER CCSDSSEQCNT 18 14 UINT 0 16383 0 "CCSDS primary header sequence count"
40
- OVERFLOW TRUNCATE
41
- PARAMETER CCSDSLENGTH 32 16 UINT 0 65535 1 "CCSDS primary header packet length"
42
- ID_PARAMETER PKTID 48 16 UINT 0 65535 3 "Packet id"
18
+ <%= render "_ccsds_cmd.txt", locals: {id: 3} %>
43
19
 
44
20
  COMMAND INST SETPARAMS BIG_ENDIAN "Sets numbered parameters"
45
- PARAMETER CCSDSVER 0 3 UINT 0 0 0 "CCSDS primary header version number"
46
- PARAMETER CCSDSTYPE 3 1 UINT 1 1 1 "CCSDS primary header packet type"
47
- PARAMETER CCSDSSHF 4 1 UINT 0 0 0 "CCSDS primary header secondary header flag"
48
- ID_PARAMETER CCSDSAPID 5 11 UINT 0 2047 999 "CCSDS primary header application id"
49
- PARAMETER CCSDSSEQFLAGS 16 2 UINT 3 3 3 "CCSDS primary header sequence flags"
50
- PARAMETER CCSDSSEQCNT 18 14 UINT 0 16383 0 "CCSDS primary header sequence count"
51
- OVERFLOW TRUNCATE
52
- PARAMETER CCSDSLENGTH 32 16 UINT 0 65535 11 "CCSDS primary header packet length"
53
- ID_PARAMETER PKTID 48 16 UINT 0 65535 4 "Packet id"
54
- MACRO_APPEND_START 1 5
55
- APPEND_PARAMETER VALUE 16 UINT 0 5 0 "A value setting"
56
- MACRO_APPEND_END
21
+ <%= render "_ccsds_cmd.txt", locals: {id: 4} %>
22
+ # Old deprecated MACRO syntax:
23
+ # MACRO_APPEND_START 1 5
24
+ # APPEND_PARAMETER VALUE 16 UINT 0 5 0 "A value setting"
25
+ # MACRO_APPEND_END
26
+
27
+ # New more flexible ERB syntax:
28
+ <% (1..5).each do |i| %>
29
+ APPEND_PARAMETER VALUE<%= i %> 16 UINT 0 5 0 "Value <%= i %> setting"
30
+ <% end %>
31
+
57
32
  SELECT_PARAMETER VALUE5
58
33
  POLY_WRITE_CONVERSION 0 2
59
34
 
60
35
  COMMAND INST ASCIICMD BIG_ENDIAN "Enumerated ASCII command"
61
- PARAMETER CCSDSVER 0 3 UINT 0 0 0 "CCSDS primary header version number"
62
- PARAMETER CCSDSTYPE 3 1 UINT 1 1 1 "CCSDS primary header packet type"
63
- PARAMETER CCSDSSHF 4 1 UINT 0 0 0 "CCSDS primary header secondary header flag"
64
- ID_PARAMETER CCSDSAPID 5 11 UINT 0 2047 999 "CCSDS primary header application id"
65
- PARAMETER CCSDSSEQFLAGS 16 2 UINT 3 3 3 "CCSDS primary header sequence flags"
66
- PARAMETER CCSDSSEQCNT 18 14 UINT 0 16383 0 "CCSDS primary header sequence count"
67
- OVERFLOW TRUNCATE
68
- PARAMETER CCSDSLENGTH 32 16 UINT 0 65535 257 "CCSDS primary header packet length"
69
- ID_PARAMETER PKTID 48 16 UINT 0 65535 5 "Packet id"
36
+ <%= render "_ccsds_cmd.txt", locals: {id: 5} %>
70
37
  PARAMETER STRING 64 2048 STRING "NOOP" "Enumerated string parameter"
71
38
  STATE "NOOP" "NOOP"
72
39
  STATE "ARM LASER" "ARM LASER" HAZARDOUS "Arming the laser poses an eye safety hazard."
73
40
  STATE "FIRE LASER" "FIRE LASER" HAZARDOUS "WARNING Laser will be fired!"
74
41
 
75
42
  COMMAND INST FLTCMD BIG_ENDIAN "Command with float parameters"
76
- PARAMETER CCSDSVER 0 3 UINT 0 0 0 "CCSDS primary header version number"
77
- PARAMETER CCSDSTYPE 3 1 UINT 1 1 1 "CCSDS primary header packet type"
78
- PARAMETER CCSDSSHF 4 1 UINT 0 0 0 "CCSDS primary header secondary header flag"
79
- ID_PARAMETER CCSDSAPID 5 11 UINT 0 2047 999 "CCSDS primary header application id"
80
- PARAMETER CCSDSSEQFLAGS 16 2 UINT 3 3 3 "CCSDS primary header sequence flags"
81
- PARAMETER CCSDSSEQCNT 18 14 UINT 0 16383 0 "CCSDS primary header sequence count"
82
- OVERFLOW TRUNCATE
83
- PARAMETER CCSDSLENGTH 32 16 UINT 0 65535 13 "CCSDS primary header packet length"
84
- ID_PARAMETER PKTID 48 16 UINT 0 65535 6 "Packet id"
43
+ <%= render "_ccsds_cmd.txt", locals: {id: 6} %>
85
44
  PARAMETER FLOAT32 64 32 FLOAT MIN_FLOAT32 MAX_FLOAT32 0.0 "Float32 parameter"
86
45
  PARAMETER FLOAT64 96 64 FLOAT MIN_FLOAT64 MAX_FLOAT64 0.0 "Float64 parameter"
87
46
 
88
47
  COMMAND INST ARYCMD BIG_ENDIAN "Command with array parameter"
89
- PARAMETER CCSDSVER 0 3 UINT 0 0 0 "CCSDS primary header version number"
90
- PARAMETER CCSDSTYPE 3 1 UINT 1 1 1 "CCSDS primary header packet type"
91
- PARAMETER CCSDSSHF 4 1 UINT 0 0 0 "CCSDS primary header secondary header flag"
92
- ID_PARAMETER CCSDSAPID 5 11 UINT 0 2047 999 "CCSDS primary header application id"
93
- PARAMETER CCSDSSEQFLAGS 16 2 UINT 3 3 3 "CCSDS primary header sequence flags"
94
- PARAMETER CCSDSSEQCNT 18 14 UINT 0 16383 0 "CCSDS primary header sequence count"
95
- OVERFLOW TRUNCATE
96
- PARAMETER CCSDSLENGTH 32 16 UINT 0 65535 81 "CCSDS primary header packet length"
97
- ID_PARAMETER PKTID 48 16 UINT 0 65535 6 "Packet id"
48
+ <%= render "_ccsds_cmd.txt", locals: {id: 7} %>
98
49
  ARRAY_PARAMETER ARRAY 64 32 UINT -8 "Array parameter"
99
50
  PARAMETER CRC -8 8 UINT 0 255 0 "CRC"
100
51
 
101
52
  COMMAND INST SLRPNLDEPLOY BIG_ENDIAN "Deploy solar array panels"
102
- PARAMETER CCSDSVER 0 3 UINT 0 0 0 "CCSDS primary header version number"
103
- PARAMETER CCSDSTYPE 3 1 UINT 1 1 1 "CCSDS primary header packet type"
104
- PARAMETER CCSDSSHF 4 1 UINT 0 0 0 "CCSDS primary header secondary header flag"
105
- ID_PARAMETER CCSDSAPID 5 11 UINT 0 2047 999 "CCSDS primary header application id"
106
- PARAMETER CCSDSSEQFLAGS 16 2 UINT 3 3 3 "CCSDS primary header sequence flags"
107
- PARAMETER CCSDSSEQCNT 18 14 UINT 0 16383 0 "CCSDS primary header sequence count"
108
- OVERFLOW TRUNCATE
109
- PARAMETER CCSDSLENGTH 32 16 UINT 0 65535 1 "CCSDS primary header packet length"
110
- ID_PARAMETER PKTID 48 16 UINT 0 65535 8 "Packet id"
53
+ <%= render "_ccsds_cmd.txt", locals: {id: 8} %>
111
54
 
112
55
  COMMAND INST SLRPNLRESET BIG_ENDIAN "Reset solar array panels"
113
- PARAMETER CCSDSVER 0 3 UINT 0 0 0 "CCSDS primary header version number"
114
- PARAMETER CCSDSTYPE 3 1 UINT 1 1 1 "CCSDS primary header packet type"
115
- PARAMETER CCSDSSHF 4 1 UINT 0 0 0 "CCSDS primary header secondary header flag"
116
- ID_PARAMETER CCSDSAPID 5 11 UINT 0 2047 999 "CCSDS primary header application id"
117
- PARAMETER CCSDSSEQFLAGS 16 2 UINT 3 3 3 "CCSDS primary header sequence flags"
118
- PARAMETER CCSDSSEQCNT 18 14 UINT 0 16383 0 "CCSDS primary header sequence count"
119
- OVERFLOW TRUNCATE
120
- PARAMETER CCSDSLENGTH 32 16 UINT 0 65535 1 "CCSDS primary header packet length"
121
- ID_PARAMETER PKTID 48 16 UINT 0 65535 9 "Packet id"
56
+ <%= render "_ccsds_cmd.txt", locals: {id: 9} %>
@@ -1,25 +1,7 @@
1
1
  TELEMETRY INST HEALTH_STATUS BIG_ENDIAN "Health and status from the instrument"
2
- ITEM CCSDSVER 0 3 UINT "CCSDS packet version number (See CCSDS 133.0-B-1)"
3
- ITEM CCSDSTYPE 3 1 UINT "CCSDS packet type (command or telemetry)"
4
- STATE TLM 0
5
- STATE CMD 1
6
- ITEM CCSDSSHF 4 1 UINT "CCSDS secondary header flag"
7
- STATE FALSE 0
8
- STATE TRUE 1
9
- ID_ITEM CCSDSAPID 5 11 UINT 1 "CCSDS application process id"
10
- ITEM CCSDSSEQFLAGS 16 2 UINT "CCSDS sequence flags"
11
- STATE FIRST 1
12
- STATE CONT 0
13
- STATE LAST 2
14
- STATE NOGROUP 3
15
- ITEM CCSDSSEQCNT 18 14 UINT "CCSDS packet sequence count"
16
- OVERFLOW TRUNCATE
17
- ITEM CCSDSLENGTH 32 16 UINT "CCSDS packet data length"
18
- ITEM TIMESEC 48 32 UINT "Seconds since epoch (January 1st, 1970, midnight)"
19
- ITEM TIMEUS 80 32 UINT "Microseconds of second"
20
- ID_ITEM PKTID 112 16 UINT 1 "Packet id (The combination of CCSDS_APID and PACKET_ID identify the packet)"
21
- ITEM COLLECTS 128 16 UINT "Number of collects"
22
- ITEM TEMP1 144 16 UINT "Temperature #1"
2
+ <%= render "_ccsds_tlm.txt", locals: {apid: 1} %>
3
+ APPEND_ITEM COLLECTS 16 UINT "Number of collects"
4
+ APPEND_ITEM TEMP1 16 UINT "Temperature #1"
23
5
  POLY_READ_CONVERSION -100.0 0.00305
24
6
  POLY_WRITE_CONVERSION 32768.885246 327.86885
25
7
  UNITS CELCIUS C
@@ -27,33 +9,33 @@ TELEMETRY INST HEALTH_STATUS BIG_ENDIAN "Health and status from the instrument"
27
9
  LIMITS DEFAULT 1 ENABLED -80.0 -70.0 60.0 80.0 -20.0 20.0
28
10
  LIMITS TVAC 1 ENABLED -80.0 -30.0 30.0 80.0
29
11
  LIMITS_RESPONSE example_limits_response.rb
30
- ITEM TEMP2 160 16 UINT "Temperature #2"
12
+ APPEND_ITEM TEMP2 16 UINT "Temperature #2"
31
13
  POLY_READ_CONVERSION -100.0 0.00305
32
14
  POLY_WRITE_CONVERSION 32768.885246 327.86885
33
15
  UNITS CELCIUS C
34
16
  FORMAT_STRING "%0.3f"
35
17
  LIMITS DEFAULT 1 ENABLED -60.0 -55.0 30.0 35.0
36
18
  LIMITS TVAC 1 ENABLED -60.0 20.0 30.0 35.0
37
- ITEM TEMP3 176 16 UINT "Temperature #3"
19
+ APPEND_ITEM TEMP3 16 UINT "Temperature #3"
38
20
  POLY_READ_CONVERSION -100.0 0.00305
39
21
  POLY_WRITE_CONVERSION 32768.885246 327.86885
40
22
  UNITS CELCIUS C
41
23
  FORMAT_STRING "%0.3f"
42
24
  LIMITS DEFAULT 1 ENABLED -25.0 -10.0 50.0 55.0
43
25
  LIMITS TVAC 1 ENABLED -15.0 -10.0 20.0 30.0
44
- ITEM TEMP4 192 16 UINT "Temperature #4"
26
+ APPEND_ITEM TEMP4 16 UINT "Temperature #4"
45
27
  POLY_READ_CONVERSION -100.0 0.00305
46
28
  POLY_WRITE_CONVERSION 32768.885246 327.86885
47
29
  UNITS CELCIUS C
48
30
  FORMAT_STRING "%0.3f"
49
31
  LIMITS DEFAULT 1 ENABLED -80.0 -70.0 60.0 80.0
50
- ARRAY_ITEM ARY 208 8 UINT 80 "Array data"
32
+ APPEND_ARRAY_ITEM ARY 8 UINT 80 "Array data"
51
33
  UNITS VOLTS V
52
34
  APPEND_ITEM DURATION 32 FLOAT "Most recent collect duration"
53
35
  APPEND_ITEM COLLECT_TYPE 16 UINT "Most recent collect type"
54
36
  STATE NORMAL 0
55
37
  STATE SPECIAL 1
56
- APPEND_ARRAY_ITEM ARY2 64 FLOAT 640 "Double array"
38
+ APPEND_ARRAY_ITEM ARY2 64 FLOAT 640 "Double array"
57
39
  UNITS CELCIUS C
58
40
  APPEND_ITEM ASCIICMD 2048 STRING "Most recent ASCIICMD string"
59
41
  STATE "NOOP" "NOOP"
@@ -88,25 +70,7 @@ TELEMETRY INST HEALTH_STATUS BIG_ENDIAN "Health and status from the instrument"
88
70
 
89
71
  TELEMETRY INST ADCS BIG_ENDIAN "Position and attitude data"
90
72
  META TYPE 'struct adcs'
91
- ITEM CCSDSVER 0 3 UINT "CCSDS packet version number (See CCSDS 133.0-B-1)"
92
- ITEM CCSDSTYPE 3 1 UINT "CCSDS packet type (command or telemetry)"
93
- STATE TLM 0
94
- STATE CMD 1
95
- ITEM CCSDSSHF 4 1 UINT "CCSDS secondary header flag"
96
- STATE FALSE 0
97
- STATE TRUE 1
98
- ID_ITEM CCSDSAPID 5 11 UINT 2 "CCSDS APPLICATION PROCESS ID"
99
- ITEM CCSDSSEQFLAGS 16 2 UINT "CCSDS sequence flags"
100
- STATE FIRST 1
101
- STATE CONT 0
102
- STATE LAST 2
103
- STATE NOGROUP 3
104
- ITEM CCSDSSEQCNT 18 14 UINT "CCSDS packet sequence count"
105
- OVERFLOW TRUNCATE
106
- ITEM CCSDSLENGTH 32 16 UINT "CCSDS packet data length"
107
- ITEM TIMESEC 48 32 UINT "Seconds since epoch (January 1st, 1970, midnight)"
108
- ITEM TIMEUS 80 32 UINT "Microseconds of second"
109
- ID_ITEM PKTID 112 16 UINT 1 "Packet id (The combination of CCSDS_APID and PACKET_ID identify the packet)"
73
+ <%= render "_ccsds_tlm.txt", locals: {apid: 2} %>
110
74
  ITEM POSX 128 32 FLOAT "Position X"
111
75
  UNITS METERS M
112
76
  ITEM POSY 160 32 FLOAT "Position Y"
@@ -137,11 +101,9 @@ TELEMETRY INST ADCS BIG_ENDIAN "Position and attitude data"
137
101
  FORMAT_STRING "%0.6f"
138
102
  ITEM BIASZ 512 32 FLOAT "Body Z rate bias"
139
103
  FORMAT_STRING "%0.6f"
140
- ITEM STAR1ID 544 16 UINT "Star 1 id"
141
- ITEM STAR2ID 560 16 UINT "Star 2 id"
142
- ITEM STAR3ID 576 16 UINT "Star 3 id"
143
- ITEM STAR4ID 592 16 UINT "Star 4 id"
144
- ITEM STAR5ID 608 16 UINT "Star 5 id"
104
+ <% (1..5).each do |i| %>
105
+ APPEND_ITEM STAR<%= i %>ID 16 UINT "Star <%= i %> id"
106
+ <% end %>
145
107
  ITEM POSPROGRESS 624 32 FLOAT "Position file progress"
146
108
  FORMAT_STRING "%0.2f"
147
109
  ITEM ATTPROGRESS 656 32 FLOAT "Attitude file progress"
@@ -153,30 +115,21 @@ TELEMETRY INST ADCS BIG_ENDIAN "Position and attitude data"
153
115
  READ_CONVERSION unix_time_formatted_conversion.rb TIMESEC TIMEUS
154
116
 
155
117
  TELEMETRY INST PARAMS BIG_ENDIAN "Params set by SETPARAMS command"
156
- ITEM CCSDSVER 0 3 UINT "CCSDS packet version number (See CCSDS 133.0-B-1)"
157
- ITEM CCSDSTYPE 3 1 UINT "CCSDS packet type (command or telemetry)"
158
- STATE TLM 0
159
- STATE CMD 1
160
- ITEM CCSDSSHF 4 1 UINT "CCSDS secondary header flag"
161
- STATE FALSE 0
162
- STATE TRUE 1
163
- ID_ITEM CCSDSAPID 5 11 UINT 3 "CCSDS application process id"
164
- ITEM CCSDSSEQFLAGS 16 2 UINT "CCSDS sequence flags"
165
- STATE FIRST 1
166
- STATE CONT 0
167
- STATE LAST 2
168
- STATE NOGROUP 3
169
- ITEM CCSDSSEQCNT 18 14 UINT "CCSDS packet sequence count"
170
- OVERFLOW TRUNCATE
171
- ITEM CCSDSLENGTH 32 16 UINT "CCSDS packet data length"
172
- ITEM TIMESEC 48 32 UINT "Seconds since epoch (January 1st, 1970, midnight)"
173
- ITEM TIMEUS 80 32 UINT "Microseconds of second"
174
- ID_ITEM PKTID 112 16 UINT 1 "Packet id (The combination of CCSDS_APID and PACKET_ID identify the packet)"
175
- MACRO_APPEND_START 5 1
176
- APPEND_ITEM Value 16 UINT "Value setting"
118
+ <%= render "_ccsds_tlm.txt", locals: {apid: 3} %>
119
+ # Old deprecated MACRO syntax:
120
+ #MACRO_APPEND_START 5 1
121
+ # APPEND_ITEM Value 16 UINT "Value setting"
122
+ # STATE GOOD 0 GREEN
123
+ # STATE BAD 1 RED
124
+ #MACRO_APPEND_END
125
+
126
+ # New more flexible ERB syntax:
127
+ <% (1..5).each do |i| %>
128
+ APPEND_ITEM VALUE<%= i %> 16 UINT "Value <%= i %> setting"
177
129
  STATE GOOD 0 GREEN
178
130
  STATE BAD 1 RED
179
- MACRO_APPEND_END
131
+ <% end %>
132
+
180
133
  ITEM TIMESECONDS 0 0 DERIVED "Derived floating-point time since epoch in seconds"
181
134
  READ_CONVERSION unix_time_seconds_conversion.rb TIMESEC TIMEUS
182
135
  FORMAT_STRING '%0.6f'
@@ -184,25 +137,7 @@ TELEMETRY INST PARAMS BIG_ENDIAN "Params set by SETPARAMS command"
184
137
  READ_CONVERSION unix_time_formatted_conversion.rb TIMESEC TIMEUS
185
138
 
186
139
  TELEMETRY INST IMAGE BIG_ENDIAN "Packet with image data"
187
- ITEM CCSDSVER 0 3 UINT "CCSDS packet version number (See CCSDS 133.0-B-1)"
188
- ITEM CCSDSTYPE 3 1 UINT "CCSDS packet type (command or telemetry)"
189
- STATE TLM 0
190
- STATE CMD 1
191
- ITEM CCSDSSHF 4 1 UINT "CCSDS secondary header flag"
192
- STATE FALSE 0
193
- STATE TRUE 1
194
- ID_ITEM CCSDSAPID 5 11 UINT 4 "CCSDS application process id"
195
- ITEM CCSDSSEQFLAGS 16 2 UINT "CCSDS sequence flags"
196
- STATE FIRST 1
197
- STATE CONT 0
198
- STATE LAST 2
199
- STATE NOGROUP 3
200
- ITEM CCSDSSEQCNT 18 14 UINT "CCSDS packet sequence count"
201
- OVERFLOW TRUNCATE
202
- ITEM CCSDSLENGTH 32 16 UINT "CCSDS packet data length"
203
- ITEM TIMESEC 48 32 UINT "Seconds since epoch (January 1st, 1970, midnight)"
204
- ITEM TIMEUS 80 32 UINT "Microseconds of second"
205
- ID_ITEM PKTID 112 16 UINT 1 "Packet id (The combination of CCSDS_APID and PACKET_ID identify the packet)"
140
+ <%= render "_ccsds_tlm.txt", locals: {apid: 4} %>
206
141
  ITEM IMAGE 128 800 BLOCK "10x10 Image Data"
207
142
  ITEM TIMESECONDS 0 0 DERIVED "Derived floating-point time since epoch in seconds"
208
143
  READ_CONVERSION unix_time_seconds_conversion.rb TIMESEC TIMEUS
@@ -211,25 +146,7 @@ TELEMETRY INST IMAGE BIG_ENDIAN "Packet with image data"
211
146
  READ_CONVERSION unix_time_formatted_conversion.rb TIMESEC TIMEUS
212
147
 
213
148
  TELEMETRY INST MECH BIG_ENDIAN "Mechanism status"
214
- ITEM CCSDSVER 0 3 UINT "CCSDS packet version number (See CCSDS 133.0-B-1)"
215
- ITEM CCSDSTYPE 3 1 UINT "CCSDS packet type (command or telemetry)"
216
- STATE TLM 0
217
- STATE CMD 1
218
- ITEM CCSDSSHF 4 1 UINT "CCSDS secondary header flag"
219
- STATE FALSE 0
220
- STATE TRUE 1
221
- ID_ITEM CCSDSAPID 5 11 UINT 5 "CCSDS application process id"
222
- ITEM CCSDSSEQFLAGS 16 2 UINT "CCSDS sequence flags"
223
- STATE FIRST 1
224
- STATE CONT 0
225
- STATE LAST 2
226
- STATE NOGROUP 3
227
- ITEM CCSDSSEQCNT 18 14 UINT "CCSDS packet sequence count"
228
- OVERFLOW TRUNCATE
229
- ITEM CCSDSLENGTH 32 16 UINT "CCSDS packet data length"
230
- ITEM TIMESEC 48 32 UINT "Seconds since epoch (January 1st, 1970, midnight)"
231
- ITEM TIMEUS 80 32 UINT "Microseconds of second"
232
- ID_ITEM PKTID 112 16 UINT 1 "Packet id (The combination of CCSDS_APID and PACKET_ID identify the packet)"
149
+ <%= render "_ccsds_tlm.txt", locals: {apid: 5} %>
233
150
  APPEND_ITEM SLRPNL1 32 FLOAT "Solar panel 1 angle"
234
151
  UNITS DEGREES DEG
235
152
  APPEND_ITEM SLRPNL2 32 FLOAT "Solar panel 2 angle"