openc3-cosmos-demo 5.20.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/targets/INST/cmd_tlm/inst_tlm.txt +5 -0
- data/targets/INST/lib/sim_inst.rb +5 -0
- data/targets/INST/procedures/screens.rb +7 -7
- data/targets/INST/screens/params.txt +11 -4
- data/targets/INST2/cmd_tlm/inst_tlm.txt +5 -0
- data/targets/INST2/lib/helper.py +1 -1
- data/targets/INST2/lib/sim_inst.py +5 -0
- data/targets/INST2/procedures/calendar.py +1 -1
- data/targets/INST2/procedures/collect.py +1 -1
- data/targets/INST2/procedures/my_script_suite.py +4 -4
- data/targets/INST2/procedures/screens.py +7 -7
- data/targets/INST2/screens/params.txt +11 -4
- data/tools/widgets/BigWidget/BigWidget.umd.min.js +1417 -2
- data/tools/widgets/BigWidget/BigWidget.umd.min.js.map +1 -1
- data/tools/widgets/DataviewerquaternionWidget/DataviewerquaternionWidget.umd.min.js +1428 -3
- data/tools/widgets/DataviewerquaternionWidget/DataviewerquaternionWidget.umd.min.js.map +1 -1
- data/tools/widgets/DataviewertimeWidget/DataviewertimeWidget.umd.min.js +1417 -2
- data/tools/widgets/DataviewertimeWidget/DataviewertimeWidget.umd.min.js.map +1 -1
- data/tools/widgets/HelloworldWidget/HelloworldWidget.umd.min.js +1417 -2
- data/tools/widgets/HelloworldWidget/HelloworldWidget.umd.min.js.map +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 954adcc24aa1b9b2f67520c01f942a658ee77f495711d13cae07f1b8b79dbaf1
|
4
|
+
data.tar.gz: 84f6a082c584a30b7419f5b33da190721811cd393114908e4adcb58319a890e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec87bbaab66a8ce1e6fa035dc90dbc5450f47b49a8a91570dc88973d85d220c9f017a937a8eb902f993e7b0d941b0ec6f1bd7a247e9ce7e92f585768aa5f370c
|
7
|
+
data.tar.gz: 8a2c98ed09515aa9f58b7893573f7910b572f55fd5b476f22c7098acb9faf53081ad337efd689602518fc5ff679cef6677d297ea3cf7c18130a51c930c15892a
|
@@ -127,6 +127,11 @@ TELEMETRY <%= target_name %> PARAMS BIG_ENDIAN "Params set by SETPARAMS command"
|
|
127
127
|
STATE GOOD 0 GREEN
|
128
128
|
STATE BAD 1 RED
|
129
129
|
<% end %>
|
130
|
+
APPEND_ITEM P_2.2,2 32 UINT "Test weird characters"
|
131
|
+
APPEND_ITEM P-3+3=3 32 UINT "Test weird characters"
|
132
|
+
APPEND_ITEM P4!@#$%^&*? 32 UINT "Test weird characters"
|
133
|
+
APPEND_ITEM P</5|\> 32 UINT "Test weird characters"
|
134
|
+
APPEND_ITEM P(:6;) 32 UINT "Test weird characters"
|
130
135
|
ITEM PACKET_TIME 0 0 DERIVED "Ruby time based on TIMESEC and TIMEUS"
|
131
136
|
READ_CONVERSION unix_time_conversion.rb TIMESEC TIMEUS
|
132
137
|
|
@@ -111,6 +111,11 @@ module OpenC3
|
|
111
111
|
packet.value3 = 2
|
112
112
|
packet.value4 = 1
|
113
113
|
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)
|
114
119
|
|
115
120
|
packet = @tlm_packets['IMAGE']
|
116
121
|
packet.enable_method_missing
|
@@ -5,15 +5,15 @@ definition = get_screen_definition("INST", "ADCS")
|
|
5
5
|
puts definition
|
6
6
|
wait(1)
|
7
7
|
display_screen("INST", "ADCS")
|
8
|
-
wait(
|
8
|
+
wait(2)
|
9
9
|
display_screen("INST", "HS", 400, 0)
|
10
|
-
wait(
|
10
|
+
wait(2)
|
11
11
|
clear_screen("INST", "ADCS")
|
12
|
-
wait(
|
12
|
+
wait(2)
|
13
13
|
display_screen("INST", "IMAGE")
|
14
|
-
wait(
|
14
|
+
wait(2)
|
15
15
|
clear_all_screens()
|
16
|
-
wait(
|
16
|
+
wait(2)
|
17
17
|
definition = '
|
18
18
|
SCREEN AUTO AUTO 1.0
|
19
19
|
|
@@ -23,11 +23,11 @@ VERTICALBOX "Test Screen"
|
|
23
23
|
END
|
24
24
|
'
|
25
25
|
local_screen("TEST", definition)
|
26
|
-
wait(
|
26
|
+
wait(2)
|
27
27
|
clear_all_screens()
|
28
28
|
create_screen("INST", "TEST", definition)
|
29
29
|
display_screen("INST", "TEST")
|
30
|
-
wait(
|
30
|
+
wait(2)
|
31
31
|
clear_all_screens()
|
32
32
|
delete_screen("INST", "TEST")
|
33
33
|
display_screen("INST", "TEST") # Expected to fail because new screen was deleted
|
@@ -3,7 +3,7 @@ SCREEN AUTO AUTO 1.0
|
|
3
3
|
VERTICAL
|
4
4
|
TITLE Params
|
5
5
|
|
6
|
-
HORIZONTAL
|
6
|
+
HORIZONTAL 20
|
7
7
|
MATRIXBYCOLUMNS 3
|
8
8
|
LABEL VALUE5
|
9
9
|
SETTING WIDTH 100 # Only need width on the first row
|
@@ -60,10 +60,17 @@ VERTICAL
|
|
60
60
|
SETTING LED_COLOR GOOD GREEN
|
61
61
|
SETTING LED_COLOR BAD RED
|
62
62
|
END
|
63
|
-
|
63
|
+
VERTICAL
|
64
|
+
LABELVALUE <%= target_name %> PARAMS P_2.2,2
|
65
|
+
LABELVALUE <%= target_name %> PARAMS P-3+3=3
|
66
|
+
LABELVALUE <%= target_name %> PARAMS P4!@#$%^&*?
|
67
|
+
LABELVALUE <%= target_name %> PARAMS P</5|\>
|
68
|
+
LABELVALUE <%= target_name %> PARAMS P(:6;)
|
69
|
+
END
|
64
70
|
END
|
65
71
|
|
66
|
-
|
67
|
-
|
72
|
+
HORIZONTAL
|
73
|
+
LABEL "Packet Time"
|
74
|
+
VALUE <%= target_name %> PARAMS PACKET_TIMEFORMATTED WITH_UNITS 25
|
68
75
|
END
|
69
76
|
END
|
@@ -119,6 +119,11 @@ TELEMETRY <%= target_name %> PARAMS BIG_ENDIAN "Params set by SETPARAMS command"
|
|
119
119
|
STATE GOOD 0 GREEN
|
120
120
|
STATE BAD 1 RED
|
121
121
|
<% end %>
|
122
|
+
APPEND_ITEM P_2.2,2 32 UINT "Test weird characters"
|
123
|
+
APPEND_ITEM P-3+3=3 32 UINT "Test weird characters"
|
124
|
+
APPEND_ITEM P4!@#$%^&*? 32 UINT "Test weird characters"
|
125
|
+
APPEND_ITEM P</5|\> 32 UINT "Test weird characters"
|
126
|
+
APPEND_ITEM P(:6;) 32 UINT "Test weird characters"
|
122
127
|
ITEM PACKET_TIME 0 0 DERIVED "Python time based on TIMESEC and TIMEUS"
|
123
128
|
READ_CONVERSION openc3/conversions/unix_time_conversion.py TIMESEC TIMEUS
|
124
129
|
|
data/targets/INST2/lib/helper.py
CHANGED
@@ -114,6 +114,11 @@ class SimInst(SimulatedTarget):
|
|
114
114
|
packet.write("value3", 2)
|
115
115
|
packet.write("value4", 1)
|
116
116
|
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)
|
117
122
|
|
118
123
|
packet = self.tlm_packets["IMAGE"]
|
119
124
|
packet.write("CcsdsSeqFlags", "NOGROUP")
|
@@ -21,7 +21,7 @@ print(
|
|
21
21
|
) # => {"name":"Mine", "color":"#4287f5", "scope":"DEFAULT", "updated_at":1698763720728596964}
|
22
22
|
|
23
23
|
now = datetime.now(timezone.utc)
|
24
|
-
start =
|
24
|
+
start = now + timedelta(hours=1)
|
25
25
|
stop = start + timedelta(hours=1) # Stop plus 1hr
|
26
26
|
act = create_timeline_activity("Mine", kind="reserve", start=start, stop=stop)
|
27
27
|
print(act) # =>
|
@@ -1,6 +1,8 @@
|
|
1
1
|
from openc3.script.suite import Group, Suite
|
2
2
|
|
3
3
|
load_utility("INST2/procedures/utilities/clear.py")
|
4
|
+
# Load a target file library (not instrumented)
|
5
|
+
from INST2.lib.helper import Helper
|
4
6
|
|
5
7
|
|
6
8
|
class ExampleGroup(Group):
|
@@ -30,6 +32,8 @@ class ExampleGroup(Group):
|
|
30
32
|
raise SkipScript
|
31
33
|
|
32
34
|
def helper(self):
|
35
|
+
helper = Helper()
|
36
|
+
helper.print_help()
|
33
37
|
if RunningScript.manual:
|
34
38
|
answer = ask("Are you sure?")
|
35
39
|
else:
|
@@ -43,7 +47,3 @@ class MySuite(Suite):
|
|
43
47
|
def __init__(self):
|
44
48
|
super().__init__()
|
45
49
|
self.add_group(ExampleGroup)
|
46
|
-
|
47
|
-
|
48
|
-
print("Running")
|
49
|
-
MySuite().run()
|
@@ -5,15 +5,15 @@ definition = get_screen_definition("INST2", "ADCS")
|
|
5
5
|
print(definition)
|
6
6
|
wait(1)
|
7
7
|
display_screen("INST2", "ADCS")
|
8
|
-
wait(
|
8
|
+
wait(2)
|
9
9
|
display_screen("INST2", "HS", 400, 0)
|
10
|
-
wait(
|
10
|
+
wait(2)
|
11
11
|
clear_screen("INST2", "ADCS")
|
12
|
-
wait(
|
12
|
+
wait(2)
|
13
13
|
display_screen("INST2", "IMAGE")
|
14
|
-
wait(
|
14
|
+
wait(2)
|
15
15
|
clear_all_screens()
|
16
|
-
wait(
|
16
|
+
wait(2)
|
17
17
|
definition = """
|
18
18
|
SCREEN AUTO AUTO 1.0
|
19
19
|
|
@@ -23,11 +23,11 @@ VERTICALBOX "Test Screen"
|
|
23
23
|
END
|
24
24
|
"""
|
25
25
|
local_screen("TEST", definition)
|
26
|
-
wait(
|
26
|
+
wait(2)
|
27
27
|
clear_all_screens()
|
28
28
|
create_screen("INST2", "TEST", definition)
|
29
29
|
display_screen("INST2", "TEST")
|
30
|
-
wait(
|
30
|
+
wait(2)
|
31
31
|
clear_all_screens()
|
32
32
|
delete_screen("INST2", "TEST")
|
33
33
|
display_screen("INST2", "TEST") # Expected to fail because new screen was deleted
|
@@ -3,7 +3,7 @@ SCREEN AUTO AUTO 1.0
|
|
3
3
|
VERTICAL
|
4
4
|
TITLE Params
|
5
5
|
|
6
|
-
HORIZONTAL
|
6
|
+
HORIZONTAL 20
|
7
7
|
MATRIXBYCOLUMNS 3
|
8
8
|
LABEL VALUE5
|
9
9
|
SETTING WIDTH 100 # Only need width on the first row
|
@@ -60,10 +60,17 @@ VERTICAL
|
|
60
60
|
SETTING LED_COLOR GOOD GREEN
|
61
61
|
SETTING LED_COLOR BAD RED
|
62
62
|
END
|
63
|
-
|
63
|
+
VERTICAL
|
64
|
+
LABELVALUE <%= target_name %> PARAMS P_2.2,2
|
65
|
+
LABELVALUE <%= target_name %> PARAMS P-3+3=3
|
66
|
+
LABELVALUE <%= target_name %> PARAMS P4!@#$%^&*?
|
67
|
+
LABELVALUE <%= target_name %> PARAMS P</5|\>
|
68
|
+
LABELVALUE <%= target_name %> PARAMS P(:6;)
|
69
|
+
END
|
64
70
|
END
|
65
71
|
|
66
|
-
|
67
|
-
|
72
|
+
HORIZONTAL
|
73
|
+
LABEL "Packet Time"
|
74
|
+
VALUE <%= target_name %> PARAMS PACKET_TIMEFORMATTED WITH_UNITS 25
|
68
75
|
END
|
69
76
|
END
|