Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
meta:
id: cubesatsim
endian: be
seq:
- id: ax25_header
doc-ref: 'https://www.tapr.org/pub_ax25.html'
type: hdr
size: 15
- id: frametype
type:
switch-on: ax25_header.ctrl
cases:
0x03: ui_frame
# 0x13: ui_frame
# 0x00: i_frame
# 0x02: i_frame
# 0x10: i_frame
# 0x12: i_frame
# 0x11: s_frame
types:
dest_address:
seq:
- id: dest_address_str
type: str
size: 6
encoding: ASCII
src_address:
seq:
- id: src_address_str
type: str
size: 6
encoding: ASCII
hdr:
seq:
- id: dest_address
type: dest_address
process: ror(1)
size: 6
- id: u_dest_ssid
type: u1
- id: src_address
type: src_address
process: ror(1)
size: 6
- id: u_src_ssid
type: u1
- id: ctrl
type: u1
instances:
src_ssid:
value: (u_src_ssid & 0x0f) >> 1
dest_ssid:
value: (u_dest_ssid & 0x0f) >> 1
i_frame:
seq:
- id: pid
type: u1
- id: ax25_info
size-eos: true
ui_frame:
seq:
- id: pid
type: u1
- id: ax25_info
size-eos: true
type: cubesatsim_data
cubesatsim_data:
seq:
- id: data_type
type: u2
- id: payload
type:
switch-on: data_type
cases:
_: cubesatsim_ao_7
0x6869: cubesatsim_ao_7
cubesatsim_ao_7:
seq:
- id: ao_7_magic
contents: ' hi '
- id: channel_1a_id
contents: '1'
- id: channel_1a_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_1a
size: 1
- id: channel_1b_id
contents: '1'
- id: channel_1b_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_1b
size: 1
- id: channel_1c_id
contents: '1'
- id: channel_1c_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_1c
size: 1
- id: channel_1d_id
contents: '1'
- id: channel_1d_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_1d
size: 1
- id: channel_2a_id
contents: '2'
- id: channel_2a_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_2a
size: 1
- id: channel_2b_id
contents: '2'
- id: channel_2b_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_2b
size: 1
- id: channel_2c_id
contents: '2'
- id: channel_2c_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_2c
size: 1
- id: channel_2d_id
contents: '2'
- id: channel_2d_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_2d
size: 1
- id: channel_3a_id
contents: '3'
- id: channel_3a_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_3a
size: 1
- id: channel_3b_id
contents: '3'
- id: channel_3b_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_3b
size: 1
- id: channel_3c_id
contents: '3'
- id: channel_3c_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_3c
size: 1
- id: channel_3d_id
contents: '3'
- id: channel_3d_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_3d
size: 1
- id: channel_4a_id
contents: '4'
- id: channel_4a_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_4a
size: 1
- id: channel_4b_id
contents: '4'
- id: channel_4b_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_4b
size: 1
- id: channel_4c_id
contents: '4'
- id: channel_4c_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_4c
size: 1
- id: channel_4d_id
contents: '4'
- id: channel_4d_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_4d
size: 1
- id: channel_5a_id
contents: '5'
- id: channel_5a_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_5a
size: 1
- id: channel_5b_id
contents: '5'
- id: channel_5b_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_5b
size: 1
- id: channel_5c_id
contents: '5'
- id: channel_5c_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_5c
size: 1
- id: channel_5d_id
contents: '5'
- id: channel_5d_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_5d
size: 1
- id: channel_6a_id
contents: '6'
- id: channel_6a_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_6a
size: 1
- id: channel_6b_id
contents: '6'
- id: channel_6b_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_6b
size: 1
- id: channel_6c_id
contents: '6'
- id: channel_6c_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_6c
size: 1
- id: channel_6d_id
contents: '6'
- id: channel_6d_val_raw
type: u1
repeat: expr
repeat-expr: 2
- id: delim_6d
size: 1
instances:
channel_1a_val:
value: ((channel_1a_val_raw[0] - 0x30) * 10 + (channel_1a_val_raw[1] - 0x30)) * 29.5
doc: 'value * 29.5 [mA]'
channel_1b_val:
value: 1970 - (20 * ((channel_1b_val_raw[0] - 0x30) * 10 + (channel_1b_val_raw[1] - 0x30)))
doc: '1970 - (20 * value) [mA]'
channel_1c_val:
value: 1970 - (20 * ((channel_1c_val_raw[0] - 0x30) * 10 + (channel_1c_val_raw[1] - 0x30)))
doc: '1970 - (20 * value) [mA]'
channel_1d_val:
value: (channel_1d_val_raw[0] - 0x30) * 10 + (channel_1d_val_raw[1] - 0x30)
doc: '1970 - (20 * value) [mA]'
channel_2a_val:
value: 1970 - (20 * ((channel_2a_val_raw[0] - 0x30) * 10 + (channel_2a_val_raw[1] - 0x30)))
doc: '1970 - (20 * value) [mA]'
channel_2b_val:
value: 8 * ((1 - 0.01 * ((channel_2b_val_raw[0] - 0x30) * 10 + (channel_2b_val_raw[1] - 0x30))) * (1 - 0.01 * ((channel_2b_val_raw[0] - 0x30) * 10 + (channel_2b_val_raw[1] - 0x30))))
doc: '8 * (1 - 0.01 * value)^2 [W]'
channel_2c_val:
value: 15.16 * ((channel_2c_val_raw[0] - 0x30) * 10 + (channel_2c_val_raw[1] - 0x30))
doc: '15.16 * value [h]'
channel_2d_val:
value: 40 * (((channel_2d_val_raw[0] - 0x30) * 10 + (channel_2d_val_raw[1] - 0x30)) - 50)
doc: '40 * (value - 50) [mA]'
channel_3a_val:
value: 0.1 * ((channel_3a_val_raw[0] - 0x30) * 10 + (channel_3a_val_raw[1] - 0x30)) + 6.4
doc: '0.1 * value + 6.4 [V]'
channel_3b_val:
value: 0.1 * ((channel_3b_val_raw[0] - 0x30) * 10 + (channel_3b_val_raw[1] - 0x30))
doc: '0.1 * value [V]'
channel_3c_val:
value: 0.15 * ((channel_3c_val_raw[0] - 0x30) * 10 + (channel_3c_val_raw[1] - 0x30))
doc: '0.15 * value [V]'
channel_3d_val:
value: 95.8 - 1.48 * ((channel_3d_val_raw[0] - 0x30) * 10 + (channel_3d_val_raw[1] - 0x30))
doc: '95.8 - 1.48 * value [°C]'
channel_4a_val:
value: 95.8 - 1.48 * ((channel_4a_val_raw[0] - 0x30) * 10 + (channel_4a_val_raw[1] - 0x30))
doc: '95.8 - 1.48 * value [°C]'
channel_4b_val:
value: 95.8 - 1.48 * ((channel_4b_val_raw[0] - 0x30) * 10 + (channel_4b_val_raw[1] - 0x30))
doc: '95.8 - 1.48 * value [°C]'
channel_4c_val:
value: 95.8 - 1.48 * ((channel_4c_val_raw[0] - 0x30) * 10 + (channel_4c_val_raw[1] - 0x30))
doc: '95.8 - 1.48 * value [°C]'
channel_4d_val:
value: 95.8 - 1.48 * ((channel_4d_val_raw[0] - 0x30) * 10 + (channel_4d_val_raw[1] - 0x30))
doc: '95.8 - 1.48 * value [°C]'
channel_5a_val:
value: 95.8 - 1.48 * ((channel_5a_val_raw[0] - 0x30) * 10 + (channel_5a_val_raw[1] - 0x30))
doc: '95.8 - 1.48 * value [°C]'
channel_5b_val:
value: 11.67 * ((channel_5b_val_raw[0] - 0x30) * 10 + (channel_5b_val_raw[1] - 0x30))
doc: '11.67 * value [mA]'
channel_5c_val:
value: 95.8 - 1.48 * ((channel_5c_val_raw[0] - 0x30) * 10 + (channel_5c_val_raw[1] - 0x30))
doc: '95.8 - 1.48 * value [°C]'
channel_5d_val:
value: 11 + 0.82 * ((channel_5d_val_raw[0] - 0x30) * 10 + (channel_5d_val_raw[1] - 0x30))
doc: '11 + 0.82 * value [mA]'
channel_6a_val:
value: (((channel_6a_val_raw[0] - 0x30) * 10 + (channel_6a_val_raw[1] - 0x30)) * ((channel_6a_val_raw[0] - 0x30) * 10 + (channel_6a_val_raw[1] - 0x30))) / 1.56
doc: 'value^2 / 1.56 [mA]'
channel_6b_val:
value: 0.1 * (((channel_6b_val_raw[0] - 0x30) * 10 + (channel_6b_val_raw[1] - 0x30)) * ((channel_6b_val_raw[0] - 0x30) * 10 + (channel_6b_val_raw[1] - 0x30))) + 35
doc: '0.1 * value^2 + 35 [mA]'
channel_6c_val:
value: 0.041 * (((channel_6c_val_raw[0] - 0x30) * 10 + (channel_6c_val_raw[1] - 0x30)) * ((channel_6c_val_raw[0] - 0x30) * 10 + (channel_6c_val_raw[1] - 0x30)))
doc: '0.041 * value^2 [mA]'
channel_6d_val:
value: 0.01 * ((channel_6d_val_raw[0] - 0x30) * 10 + (channel_6d_val_raw[1] - 0x30))
doc: '0.01 * value'