openc3-cosmos-demo 6.1.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c888a30f0d6951c4b7c2c10f8868e8c80569e09eac181b6998777c79d824b4a0
4
- data.tar.gz: 9d7ec85c58a58937720cb368059bca004544cd1d8f6227c65c7fba83dc75d96a
3
+ metadata.gz: 384b529d200e06227c9a1fd078fe040651d3b03e2b2bbea0086798eb090783df
4
+ data.tar.gz: e6c70be49ae42fe7e5eb5edf2aeab6c5b304365ab0a008b03eecc77e378004c9
5
5
  SHA512:
6
- metadata.gz: e818d703ee7703d87cd5796da6efb4aa83b1f17a934ebd0aa25a3dc89af83640464a2193d40c45d054d82543e899291bfb3732498362dc5fed8c95f7b2f40fe3
7
- data.tar.gz: 466106a6e5effdf51249e8ad0cd7780b66350fd94450498020331b591a8f1fc4209d9d0878b8f4045b4bfe0385238dc488065985e8ab30ea0d5e726af159b58b
6
+ metadata.gz: 07d2ff5a84058ed3141698270d51d3f062d82bd4cc89a6a8fb4afa718e251e4b5fa395b115f412ab360d5e377ad0168251e4a7145578123ae6ebb060eaa9c012
7
+ data.tar.gz: 5f16bb9e101979c0d1516e4d52f69390849b38cc0db4fd641bd2903610d5a25728cf1ddc41e92447c31d10b0973280ab67d5989e337a388f5f5a09568e14c034
data/plugin.txt CHANGED
@@ -95,6 +95,7 @@ VARIABLE reduced_log_retain_time 2592000
95
95
  DONT_CONNECT
96
96
  # Override the default log time of 600
97
97
  LOG_STREAM 60
98
+ OPTION CONNECT_CMD LOG "<%= example_target_name %> START"
98
99
  <% end %>
99
100
 
100
101
  <% if include_templated and include_templated_int %>
data/requirements.txt CHANGED
@@ -1 +1 @@
1
- numpy==2.1.1
1
+ numpy==2.2.3
@@ -33,6 +33,7 @@ COMMAND <%= target_name %> SETPARAMS BIG_ENDIAN "Sets numbered parameters"
33
33
  APPEND_PARAMETER VALUE<%= i %> 16 UINT 0 5 1 "Value <%= i %> setting" LITTLE_ENDIAN
34
34
  RELATED_ITEM <%= target_name %> PARAMS VALUE<%= i %>
35
35
  <% end %>
36
+ APPEND_PARAMETER BIGINT 64 UINT MIN MAX 0 "UINT 64 parameter"
36
37
  SCREEN <%= target_name %> PARAMS
37
38
 
38
39
  SELECT_PARAMETER VALUE5
@@ -136,11 +136,11 @@ TELEMETRY <%= target_name %> PARAMS BIG_ENDIAN "Params set by SETPARAMS command"
136
136
  STATE BAD 1 RED
137
137
  <% end %>
138
138
  APPEND_ITEM IP_ADDRESS 32 UINT "Encoded IP Address"
139
- APPEND_ITEM P_2.2,2 32 UINT "Test weird characters"
140
- APPEND_ITEM P-3+3=3 32 UINT "Test weird characters"
141
- APPEND_ITEM P4!@#$%^&*? 32 UINT "Test weird characters"
142
- APPEND_ITEM P</5|\> 32 UINT "Test weird characters"
143
- APPEND_ITEM P(:6;) 32 UINT "Test weird characters"
139
+ APPEND_ITEM P_2.2,2 64 INT "Test weird characters"
140
+ APPEND_ITEM P-3+3=3 64 INT "Test weird characters"
141
+ APPEND_ITEM P4!@#$%^&*? 64 UINT "Test weird characters"
142
+ APPEND_ITEM P</5|\> 64 UINT "Test weird characters"
143
+ APPEND_ITEM P(:6;) 64 UINT "Test weird characters"
144
144
  ITEM PACKET_TIME 0 0 DERIVED "Ruby time based on TIMESEC and TIMEUS"
145
145
  READ_CONVERSION unix_time_conversion.rb TIMESEC TIMEUS
146
146
 
@@ -14,7 +14,7 @@
14
14
  # GNU Affero General Public License for more details.
15
15
 
16
16
  # Modified by OpenC3, Inc.
17
- # All changes Copyright 2024, OpenC3, Inc.
17
+ # All changes Copyright 2025, OpenC3, Inc.
18
18
  # All Rights Reserved
19
19
  #
20
20
  # This file may also be used under the terms of a commercial license
@@ -25,6 +25,7 @@
25
25
  require 'openc3'
26
26
  require 'stringio'
27
27
  require 'base64'
28
+ require 'openc3/accessors/binary_accessor'
28
29
 
29
30
  module OpenC3
30
31
  # Simulated instrument for the demo. Populates several packets and cycles
@@ -111,11 +112,11 @@ module OpenC3
111
112
  packet.value3 = 2
112
113
  packet.value4 = 1
113
114
  packet.value5 = 0
114
- packet.write('P_2.2,2', 2)
115
- packet.write('P-3+3=3', 3)
116
- packet.write('P4!@#$%^&*?', 4)
117
- packet.write('P</5|\>', 5)
118
- packet.write('P(:6;)', 6)
115
+ packet.write('P_2.2,2', BinaryAccessor::MIN_INT64)
116
+ packet.write('P-3+3=3', BinaryAccessor::MAX_INT64)
117
+ packet.write('P4!@#$%^&*?', 0)
118
+ packet.write('P</5|\>', 1740684371613049856)
119
+ packet.write('P(:6;)', BinaryAccessor::MAX_UINT64)
119
120
 
120
121
  packet = @tlm_packets['IMAGE']
121
122
  packet.enable_method_missing
@@ -196,6 +197,7 @@ module OpenC3
196
197
  params_packet.value3 = packet.read('value3')
197
198
  params_packet.value4 = packet.read('value4')
198
199
  params_packet.value5 = packet.read('value5')
200
+ params_packet.write('P4!@#$%^&*?', packet.read('bigint'))
199
201
  when 'ASCIICMD'
200
202
  hs_packet.cmd_acpt_cnt += 1
201
203
  hs_packet.asciicmd = packet.read('string')
@@ -41,9 +41,12 @@ HORIZONTAL
41
41
  LABELVALUERANGEBAR <%= target_name %> HEALTH_STATUS TEMP2 0 100
42
42
  END
43
43
  VERTICALBOX "Limits Colors"
44
- LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP1 CONVERTED 10 NIL # No label
44
+ HORIZONTAL
45
+ LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP1 CONVERTED 10 NIL # No label
46
+ LABEL '1st Temp'
47
+ END
45
48
  LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP2 # Default is label with just item name
46
- LIMITSCOLOR <%= target_name %> HEALTH_STATUS GROUND1STATUS CONVERTED 20 TRUE # Full TGT/PKT/ITEM label
49
+ LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP3 CONVERTED 20 TRUE # Full TGT/PKT/ITEM label
47
50
  END
48
51
  END
49
52
  END
@@ -33,6 +33,7 @@ COMMAND <%= target_name %> SETPARAMS BIG_ENDIAN "Sets numbered parameters"
33
33
  APPEND_PARAMETER VALUE<%= i %> 16 UINT 0 5 1 "Value <%= i %> setting" LITTLE_ENDIAN
34
34
  RELATED_ITEM <%= target_name %> PARAMS VALUE<%= i %>
35
35
  <% end %>
36
+ APPEND_PARAMETER BIGINT 64 UINT MIN MAX 0 "UINT 64 parameter"
36
37
  SCREEN <%= target_name %> PARAMS
37
38
 
38
39
  SELECT_PARAMETER VALUE5
@@ -128,11 +128,11 @@ TELEMETRY <%= target_name %> PARAMS BIG_ENDIAN "Params set by SETPARAMS command"
128
128
  STATE BAD 1 RED
129
129
  <% end %>
130
130
  APPEND_ITEM IP_ADDRESS 32 UINT "Encoded IP Address"
131
- APPEND_ITEM P_2.2,2 32 UINT "Test weird characters"
132
- APPEND_ITEM P-3+3=3 32 UINT "Test weird characters"
133
- APPEND_ITEM P4!@#$%^&*? 32 UINT "Test weird characters"
134
- APPEND_ITEM P</5|\> 32 UINT "Test weird characters"
135
- APPEND_ITEM P(:6;) 32 UINT "Test weird characters"
131
+ APPEND_ITEM P_2.2,2 64 INT "Test weird characters"
132
+ APPEND_ITEM P-3+3=3 64 INT "Test weird characters"
133
+ APPEND_ITEM P4!@#$%^&*? 64 UINT "Test weird characters"
134
+ APPEND_ITEM P</5|\> 64 UINT "Test weird characters"
135
+ APPEND_ITEM P(:6;) 64 UINT "Test weird characters"
136
136
  ITEM PACKET_TIME 0 0 DERIVED "Python time based on TIMESEC and TIMEUS"
137
137
  READ_CONVERSION openc3/conversions/unix_time_conversion.py TIMESEC TIMEUS
138
138
 
@@ -1,4 +1,4 @@
1
- # Copyright 2024 OpenC3, Inc.
1
+ # Copyright 2025 OpenC3, Inc.
2
2
  # All Rights Reserved.
3
3
  #
4
4
  # This program is free software; you can modify and/or redistribute it
@@ -25,6 +25,7 @@ from openc3.packets.structure import Structure
25
25
  from openc3.packets.packet import Packet
26
26
  from openc3.system.system import System
27
27
  from openc3.top_level import kill_thread
28
+ from openc3.accessors.binary_accessor import BinaryAccessor
28
29
 
29
30
 
30
31
  # Simulated instrument for the demo. Populates several packets and cycles
@@ -114,11 +115,11 @@ class SimInst(SimulatedTarget):
114
115
  packet.write("value3", 2)
115
116
  packet.write("value4", 1)
116
117
  packet.write("value5", 0)
117
- packet.write('P_2.2,2', 2)
118
- packet.write('P-3+3=3', 3)
119
- packet.write('P4!@#$%^&*?', 4)
120
- packet.write('P</5|\>', 5)
121
- packet.write('P(:6;)', 6)
118
+ packet.write('P_2.2,2', BinaryAccessor.MIN_INT64)
119
+ packet.write('P-3+3=3', BinaryAccessor.MAX_INT64)
120
+ packet.write('P4!@#$%^&*?', 0)
121
+ packet.write('P</5|\>', 1740684371613049856)
122
+ packet.write('P(:6;)', BinaryAccessor.MAX_UINT64)
122
123
 
123
124
  packet = self.tlm_packets["IMAGE"]
124
125
  packet.write("CcsdsSeqFlags", "NOGROUP")
@@ -187,6 +188,7 @@ class SimInst(SimulatedTarget):
187
188
  params_packet.write("value3", packet.read("value3"))
188
189
  params_packet.write("value4", packet.read("value4"))
189
190
  params_packet.write("value5", packet.read("value5"))
191
+ params_packet.write('P4!@#$%^&*?', packet.read('bigint'))
190
192
  case "ASCIICMD":
191
193
  hs_packet.write("cmd_acpt_cnt", hs_packet.read("cmd_acpt_cnt") + 1)
192
194
  hs_packet.write("asciicmd", packet.read("string"))
@@ -41,9 +41,12 @@ HORIZONTAL
41
41
  LABELVALUERANGEBAR <%= target_name %> HEALTH_STATUS TEMP2 0 100
42
42
  END
43
43
  VERTICALBOX "Limits Colors"
44
- LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP1 CONVERTED 10 NIL # No label
44
+ HORIZONTAL
45
+ LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP1 CONVERTED 10 NIL # No label
46
+ LABEL '1st Temp'
47
+ END
45
48
  LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP2 # Default is label with just item name
46
- LIMITSCOLOR <%= target_name %> HEALTH_STATUS GROUND1STATUS CONVERTED 20 TRUE # Full TGT/PKT/ITEM label
49
+ LIMITSCOLOR <%= target_name %> HEALTH_STATUS TEMP3 CONVERTED 20 TRUE # Full TGT/PKT/ITEM label
47
50
  END
48
51
  END
49
52
  END