openc3-cosmos-script-engine-cstol 1.0.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.
data/plugin.txt ADDED
@@ -0,0 +1,10 @@
1
+ VARIABLE test_mode false
2
+
3
+ SCRIPT_ENGINE .prc cstol_script_engine.py
4
+
5
+ <% include_test = (test_mode.to_s.strip.downcase == "true") %>
6
+ <% if include_test %>
7
+
8
+ TARGET CSTOL_TEST CSTOL_TEST
9
+
10
+ <% end %>
@@ -0,0 +1,65 @@
1
+ PROC collect
2
+
3
+ DECLARE VARIABLE $var = "test"
4
+
5
+ BEGIN
6
+
7
+ WRITE $$CURRENT_TIME
8
+ WRITE $$OWLT
9
+ WRITE $$SC_TIME
10
+ WRITE $$ERROR
11
+ WRITE $$CHECK_INTERVAL
12
+ WRITE $$CLP_STP_INTERVAL
13
+ CHECK $$STEP_INTERVAL
14
+ CHECK $$CLP_STEP_MODE
15
+ CHECK $$STEP_MODE
16
+ CHECK $$LOOP_COUNT
17
+
18
+ WRITE $var
19
+
20
+ HERE:
21
+ RUN "ls"
22
+ SWITCH ON EXAMPLE_INT
23
+ WAIT 1
24
+ LOAD EXAMPLE_INT AT 0 FROM "INST/procedures/collect.rb"
25
+ SEND "hello" TO EXAMPLE_INT
26
+
27
+ LOOP
28
+ ASK $number "Enter a Number"
29
+ WRITE $number
30
+
31
+ IF $number > 1
32
+ LET $clearscreens = TRUE
33
+ DISPLAY "INST ADCS"
34
+ DISPLAY "INST HS"
35
+ ELSE IF $number < 0
36
+ LET $clearscreens = TRUE
37
+ DISPLAY "INST IMAGE"
38
+ ELSE
39
+ LET $clearscreens = FALSE
40
+ ENDIF
41
+
42
+ LET $collects = INST COLLECTS
43
+ CMD INST COLLECT with TYPE NORMAL
44
+ WAIT INST COLLECTS > $collects
45
+ CHECK INST COLLECTS VS $collects + 1
46
+
47
+ IF $clearscreens
48
+ CLEAR "INST ADCS"
49
+ CLEAR ALL
50
+ ENDIF
51
+
52
+ IF $$LOOP_COUNT > 2
53
+ ESCAPE
54
+ ENDIF
55
+
56
+ IF $number > 100
57
+ RETURN
58
+ ENDIF
59
+ ENDLOOP
60
+
61
+ IF $number > 10
62
+ GOTO HERE
63
+ ENDIF
64
+
65
+ ENDPROC
@@ -0,0 +1,7 @@
1
+ PROC test
2
+
3
+ BEGIN
4
+
5
+ START "CSTOL_TEST/procedures/collect.prc"
6
+
7
+ ENDPROC
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: openc3-cosmos-script-engine-cstol
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Ryan Melton
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-10-17 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: " This plugin provides a script engine to support CSTOL in Script Runner\n"
14
+ email:
15
+ - ryan@openc3.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE.txt
21
+ - README.md
22
+ - Rakefile
23
+ - lib/cstol_script_engine.py
24
+ - plugin.txt
25
+ - targets/CSTOL_TEST/procedures/collect.prc
26
+ - targets/CSTOL_TEST/procedures/test.prc
27
+ homepage: https://github.com/OpenC3/openc3-cosmos-script-engine-cstol
28
+ licenses:
29
+ - Nonstandard
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubygems_version: 3.5.22
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: OpenC3 Script Engine CSTOL
50
+ test_files: []