openc3-cosmos-fakesat 1.0.3 → 1.0.5

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: 4a6393c32c78795e6970af3e40e8a59f21609e63c60d5d25f4869aaa9d2195e4
4
- data.tar.gz: eac436c65ccec26ab75026c0227f1199094355dbc9057afdc5a82ec94d82e7b8
3
+ metadata.gz: edf9d18fef465eeb3a361be176d323f4691306c07b1eac20b715b81a93f2a4c9
4
+ data.tar.gz: 6eb6612a570a07a664cde168039d796cddb52d0c2d74285c41997e35420bc014
5
5
  SHA512:
6
- metadata.gz: fdf53ff5a9d5df8160268c2e3a9ab359193cbcf4f42d87e902a02e4ad73922cc8208df84b77dff13f3b70a4fa497a09143ac9f2995141b0ea5c533a3095f4ef4
7
- data.tar.gz: d2c28ad6fbe4a1c029d829432b1fc905f1bda6646a918bda50c8c82e5b87f7bce45c5a616603842666c0cee542400e15ea22faf12e94ed300615373e1721b2e8
6
+ metadata.gz: 7886e6fedaf6e649cf6e67193676ba1e1dae73d2e7cfd556d6ae84c3939efe3380f1620d0396b39ee61eed1efc70f84fe8987ab5b552ba5c285d0a46c2bf140d
7
+ data.tar.gz: ba32f846ab61946cece53323f632a84c116c4de459b907ccb970a3d6ac840951afe5e19ab614ebce2e34680611eb635a49e17acf70db86189dcb4bbb61933e1a
@@ -1,9 +1,8 @@
1
1
  PARAMETER CCSDSVER 0 3 UINT 0 0 0 "CCSDS primary header version number"
2
2
  PARAMETER CCSDSTYPE 3 1 UINT 1 1 1 "CCSDS primary header packet type"
3
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"
4
+ ID_PARAMETER CCSDSAPID 5 11 UINT 0 2047 <%= apid %> "CCSDS primary header application id"
5
5
  PARAMETER CCSDSSEQFLAGS 16 2 UINT 3 3 3 "CCSDS primary header sequence flags"
6
6
  PARAMETER CCSDSSEQCNT 18 14 UINT 0 16383 0 "CCSDS primary header sequence count"
7
7
  OVERFLOW TRUNCATE
8
8
  PARAMETER CCSDSLENGTH 32 16 UINT MIN MAX 12 "CCSDS primary header packet length"
9
- ID_PARAMETER PKTID 48 16 UINT MIN MAX <%= id %> "Packet id"
@@ -15,5 +15,4 @@
15
15
  OVERFLOW TRUNCATE
16
16
  APPEND_ITEM CCSDSLENGTH 16 UINT "CCSDS packet data length"
17
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)"
18
+ APPEND_ITEM TIMEUS 32 UINT "Microseconds of second"
@@ -1,5 +1,9 @@
1
+ COMMAND <%= target_name %> NOOP BIG_ENDIAN "NOOP"
2
+ <%= render "_ccsds_cmd.txt", locals: {apid: 1} %>
3
+ APPEND_PARAMETER IGNORE 8 UINT MIN MAX 0 "Ignored item"
4
+
1
5
  COMMAND <%= target_name %> COLLECT BIG_ENDIAN "Starts a collect on the <%= target_name %> target"
2
- <%= render "_ccsds_cmd.txt", locals: {id: 1} %>
6
+ <%= render "_ccsds_cmd.txt", locals: {apid: 2} %>
3
7
  PARAMETER TYPE 64 16 UINT MIN MAX 0 "Collect type"
4
8
  REQUIRED
5
9
  STATE NORMAL 0
@@ -11,14 +15,16 @@ COMMAND <%= target_name %> COLLECT BIG_ENDIAN "Starts a collect on the <%= targe
11
15
  UNITS Celsius C
12
16
 
13
17
  COMMAND <%= target_name %> ABORT BIG_ENDIAN "Aborts a collect on the <%= target_name %> instrument"
14
- <%= render "_ccsds_cmd.txt", locals: {id: 2} %>
18
+ <%= render "_ccsds_cmd.txt", locals: {apid: 3} %>
19
+ APPEND_PARAMETER IGNORE 8 UINT MIN MAX 0 "Ignored item"
15
20
 
16
21
  COMMAND <%= target_name %> CLEAR BIG_ENDIAN "Clears counters on the <%= target_name %> instrument"
17
22
  HAZARDOUS "Clearing counters may lose valuable information."
18
- <%= render "_ccsds_cmd.txt", locals: {id: 3} %>
23
+ <%= render "_ccsds_cmd.txt", locals: {apid: 4} %>
24
+ APPEND_PARAMETER IGNORE 8 UINT MIN MAX 0 "Ignored item"
19
25
 
20
26
  COMMAND <%= target_name %> SET_MODE BIG_ENDIAN "Change spacecraft mode"
21
- <%= render "_ccsds_cmd.txt", locals: {id: 4} %>
27
+ <%= render "_ccsds_cmd.txt", locals: {apid: 5} %>
22
28
  APPEND_PARAMETER MODE 8 UINT 0 2 0 "Desired Mode"
23
29
  REQUIRED
24
30
  STATE SAFE 0
@@ -26,44 +32,44 @@ COMMAND <%= target_name %> SET_MODE BIG_ENDIAN "Change spacecraft mode"
26
32
  STATE OPERATE 2
27
33
 
28
34
  COMMAND <%= target_name %> SLRPNLDEPLOY BIG_ENDIAN "Deploy solar array panel"
29
- <%= render "_ccsds_cmd.txt", locals: {id: 5} %>
35
+ <%= render "_ccsds_cmd.txt", locals: {apid: 6} %>
30
36
  APPEND_PARAMETER NUM 8 UINT 1 2 1 "Solar Array Number"
31
37
 
32
38
  COMMAND <%= target_name %> SLRPNLSTOW BIG_ENDIAN "Stow solar array panel"
33
- <%= render "_ccsds_cmd.txt", locals: {id: 6} %>
39
+ <%= render "_ccsds_cmd.txt", locals: {apid: 7} %>
34
40
  APPEND_PARAMETER NUM 8 UINT 1 2 1 "Solar Array Number"
35
41
 
36
42
  COMMAND <%= target_name %> SLRPNLANG BIG_ENDIAN "Set Solar Array Panel Angle"
37
- <%= render "_ccsds_cmd.txt", locals: {id: 7} %>
43
+ <%= render "_ccsds_cmd.txt", locals: {apid: 8} %>
38
44
  APPEND_PARAMETER NUM 8 UINT 1 2 1 "Solar Array Number"
39
45
  APPEND_PARAMETER ANG 32 FLOAT 0 360 0 "Solar Array Angle"
40
46
  UNITS DEGREES DEG
41
47
 
42
48
  COMMAND <%= target_name %> TABLE_LOAD BIG_ENDIAN "Load table"
43
- <%= render "_ccsds_cmd.txt", locals: {id: 8} %>
49
+ <%= render "_ccsds_cmd.txt", locals: {apid: 9} %>
44
50
  APPEND_PARAMETER DATA 80 BLOCK "" "Table data"
45
51
 
46
52
  COMMAND <%= target_name %> HTR_CTRL BIG_ENDIAN "Heater Control ON/OFF"
47
- <%= render "_ccsds_cmd.txt", locals: {id: 9} %>
53
+ <%= render "_ccsds_cmd.txt", locals: {apid: 10} %>
48
54
  APPEND_PARAMETER NUM 8 UINT 1 2 1 "Heater Number"
49
55
  APPEND_PARAMETER STATE 8 UINT 0 1 0 "Desired State"
50
56
  STATE OFF 0 HAZARDOUS
51
57
  STATE ON 1
52
58
 
53
59
  COMMAND <%= target_name %> HTR_STATE BIG_ENDIAN "Heater State ON/OFF"
54
- <%= render "_ccsds_cmd.txt", locals: {id: 10} %>
60
+ <%= render "_ccsds_cmd.txt", locals: {apid: 11} %>
55
61
  APPEND_PARAMETER NUM 8 UINT 1 2 1 "Heater Number"
56
62
  APPEND_PARAMETER STATE 8 UINT 0 1 0 "Desired State"
57
63
  STATE OFF 0
58
64
  STATE ON 1
59
65
 
60
66
  COMMAND <%= target_name %> HTR_SETPT BIG_ENDIAN "Heater Setpoint"
61
- <%= render "_ccsds_cmd.txt", locals: {id: 11} %>
67
+ <%= render "_ccsds_cmd.txt", locals: {apid: 12} %>
62
68
  APPEND_PARAMETER NUM 8 UINT 1 2 1 "Heater Number"
63
69
  APPEND_PARAMETER SETPT 32 FLOAT -100 100 0 "Setpoint"
64
70
 
65
71
  COMMAND <%= target_name %> ADCS_CTRL BIG_ENDIAN "ADCS Control of Solar Panel Angle ON/OFF"
66
- <%= render "_ccsds_cmd.txt", locals: {id: 12} %>
72
+ <%= render "_ccsds_cmd.txt", locals: {apid: 13} %>
67
73
  APPEND_PARAMETER STATE 8 UINT 0 1 0 "Desired State"
68
74
  STATE OFF 0 HAZARDOUS
69
75
  STATE ON 1
@@ -197,6 +197,9 @@ module OpenC3
197
197
  name = packet.packet_name.upcase
198
198
 
199
199
  case name
200
+ when 'NOOP'
201
+ accept_cmd()
202
+
200
203
  when 'COLLECT'
201
204
  if @mode == 'OPERATE'
202
205
  @collects += 1
@@ -8,7 +8,7 @@ IGNORE_PARAMETER CCSDSAPID
8
8
  IGNORE_PARAMETER CCSDSSEQFLAGS
9
9
  IGNORE_PARAMETER CCSDSSEQCNT
10
10
  IGNORE_PARAMETER CCSDSLENGTH
11
- IGNORE_PARAMETER PKTID
11
+ IGNORE_PARAMETER IGNORE
12
12
 
13
13
  # Ignored Items
14
14
  IGNORE_ITEM CCSDSVER
@@ -23,7 +23,6 @@ IGNORE_ITEM PACKET_TIMESECONDS
23
23
  IGNORE_ITEM RECEIVED_TIMESECONDS
24
24
  IGNORE_ITEM TIMESEC
25
25
  IGNORE_ITEM TIMEUS
26
- IGNORE_ITEM PKTID
27
26
 
28
27
  # Explicitly define command and telemetry files
29
28
  # If not given then all the files in cmd/tlm will be processed in
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openc3-cosmos-fakesat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Melton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-01-16 00:00:00.000000000 Z
12
+ date: 2023-01-18 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: " cosmos-fakesat plugin facilitating COSMOS user training\n"
15
15
  email: