fossekall-interface 0.1.65 → 0.1.66

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.
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-04-04 11:37:18. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-04-04 14:07:51. Do not edit manually!
3
3
  // The current version of typed-binary does not support 64-bit primitives.
4
4
  // So for we'll implement our own schemas. :)
5
5
  const __littleEndian = true;
@@ -0,0 +1,363 @@
1
+ {
2
+ "version": 1,
3
+ "structs": {
4
+ "BldcCommands::OpenCloseBldcPayload": {
5
+ "id": 64,
6
+ "kind": "struct",
7
+ "type": "BldcCommands::OpenCloseBldcPayload",
8
+ "fields": [
9
+ {
10
+ "name": "node::bldc::Id",
11
+ "kind": "enum",
12
+ "format_string": "<B"
13
+ },
14
+ {
15
+ "name": "BldcCommands::OpenClose",
16
+ "kind": "enum",
17
+ "format_string": "<B"
18
+ }
19
+ ],
20
+ "format_string": "<BB"
21
+ },
22
+ "BldcCommands::SetBldcPayload": {
23
+ "id": 65,
24
+ "kind": "struct",
25
+ "type": "BldcCommands::SetBldcPayload",
26
+ "fields": [
27
+ {
28
+ "name": "node::bldc::Id",
29
+ "kind": "enum",
30
+ "format_string": "<B"
31
+ },
32
+ {
33
+ "name": "angle_deg",
34
+ "kind": "primitive",
35
+ "type": "float",
36
+ "format_string": "<f"
37
+ }
38
+ ],
39
+ "format_string": "<Bf"
40
+ },
41
+ "BldcCommands::CalibratePayload": {
42
+ "id": 66,
43
+ "kind": "struct",
44
+ "type": "BldcCommands::CalibratePayload",
45
+ "fields": [
46
+ {
47
+ "name": "node::bldc::Id",
48
+ "kind": "enum",
49
+ "format_string": "<B"
50
+ }
51
+ ],
52
+ "format_string": "<B"
53
+ },
54
+ "FsmCommands::NextStatePayload": {
55
+ "id": 32,
56
+ "kind": "struct",
57
+ "type": "FsmCommands::NextStatePayload",
58
+ "fields": [
59
+ {
60
+ "name": "StateId",
61
+ "kind": "enum",
62
+ "format_string": "<B"
63
+ }
64
+ ],
65
+ "format_string": "<B"
66
+ },
67
+ "FsmCommands::PreviousStatePayload": {
68
+ "id": 33,
69
+ "kind": "struct",
70
+ "type": "FsmCommands::PreviousStatePayload",
71
+ "fields": [
72
+ {
73
+ "name": "StateId",
74
+ "kind": "enum",
75
+ "format_string": "<B"
76
+ }
77
+ ],
78
+ "format_string": "<B"
79
+ },
80
+ "FsmCommands::AbortPayload": {
81
+ "id": 34,
82
+ "kind": "struct",
83
+ "type": "FsmCommands::AbortPayload",
84
+ "fields": [
85
+ {
86
+ "name": "reserved",
87
+ "kind": "primitive",
88
+ "type": "unsigned char",
89
+ "format_string": "<B"
90
+ }
91
+ ],
92
+ "format_string": "<B"
93
+ },
94
+ "FsmCommands::StatusPayload": {
95
+ "id": 35,
96
+ "kind": "struct",
97
+ "type": "FsmCommands::StatusPayload",
98
+ "fields": [
99
+ {
100
+ "name": "reserved",
101
+ "kind": "primitive",
102
+ "type": "unsigned char",
103
+ "format_string": "<B"
104
+ }
105
+ ],
106
+ "format_string": "<B"
107
+ },
108
+ "ServoCommands::OpenCloseServoPayload": {
109
+ "id": 48,
110
+ "kind": "struct",
111
+ "type": "ServoCommands::OpenCloseServoPayload",
112
+ "fields": [
113
+ {
114
+ "name": "node::servo::Id",
115
+ "kind": "enum",
116
+ "format_string": "<B"
117
+ },
118
+ {
119
+ "name": "ServoCommands::OpenClose",
120
+ "kind": "enum",
121
+ "format_string": "<B"
122
+ },
123
+ {
124
+ "name": "duration_ms",
125
+ "kind": "primitive",
126
+ "type": "unsigned short",
127
+ "format_string": "<H"
128
+ },
129
+ {
130
+ "name": "delay_ms",
131
+ "kind": "primitive",
132
+ "type": "unsigned short",
133
+ "format_string": "<H"
134
+ },
135
+ {
136
+ "name": "actuators::servo::PositionMode",
137
+ "kind": "enum",
138
+ "format_string": "<B"
139
+ },
140
+ {
141
+ "name": "actuators::servo::StartPolicy",
142
+ "kind": "enum",
143
+ "format_string": "<B"
144
+ }
145
+ ],
146
+ "format_string": "<BBHHBB"
147
+ },
148
+ "ServoCommands::SetServoPayload": {
149
+ "id": 49,
150
+ "kind": "struct",
151
+ "type": "ServoCommands::SetServoPayload",
152
+ "fields": [
153
+ {
154
+ "name": "node::servo::Id",
155
+ "kind": "enum",
156
+ "format_string": "<B"
157
+ },
158
+ {
159
+ "name": "angle_deg",
160
+ "kind": "primitive",
161
+ "type": "float",
162
+ "format_string": "<f"
163
+ },
164
+ {
165
+ "name": "duration_ms",
166
+ "kind": "primitive",
167
+ "type": "unsigned short",
168
+ "format_string": "<H"
169
+ },
170
+ {
171
+ "name": "delay_ms",
172
+ "kind": "primitive",
173
+ "type": "unsigned short",
174
+ "format_string": "<H"
175
+ },
176
+ {
177
+ "name": "actuators::servo::PositionMode",
178
+ "kind": "enum",
179
+ "format_string": "<B"
180
+ },
181
+ {
182
+ "name": "actuators::servo::StartPolicy",
183
+ "kind": "enum",
184
+ "format_string": "<B"
185
+ }
186
+ ],
187
+ "format_string": "<BfHHBB"
188
+ },
189
+ "SolenoidCommands::OpenCloseSolenoidPayload": {
190
+ "id": 80,
191
+ "kind": "struct",
192
+ "type": "SolenoidCommands::OpenCloseSolenoidPayload",
193
+ "fields": [
194
+ {
195
+ "name": "node::solenoid::Id",
196
+ "kind": "enum",
197
+ "format_string": "<B"
198
+ },
199
+ {
200
+ "name": "SolenoidCommands::OpeningType",
201
+ "kind": "enum",
202
+ "format_string": "<B"
203
+ }
204
+ ],
205
+ "format_string": "<BB"
206
+ },
207
+ "ControlPolicyCommands::SetManualPolicyPayload": {
208
+ "id": 96,
209
+ "kind": "struct",
210
+ "type": "ControlPolicyCommands::SetManualPolicyPayload",
211
+ "fields": [
212
+ {
213
+ "name": "ControlPolicyCommands::PolicyValue",
214
+ "kind": "enum",
215
+ "format_string": "<B"
216
+ }
217
+ ],
218
+ "format_string": "<B"
219
+ },
220
+ "RegulatorCommands::SetEnabledPayload": {
221
+ "id": 112,
222
+ "kind": "struct",
223
+ "type": "RegulatorCommands::SetEnabledPayload",
224
+ "fields": [
225
+ {
226
+ "name": "node::regulator::Id",
227
+ "kind": "enum",
228
+ "format_string": "<B"
229
+ },
230
+ {
231
+ "name": "RegulatorCommands::RegulatorValue",
232
+ "kind": "enum",
233
+ "format_string": "<B"
234
+ }
235
+ ],
236
+ "format_string": "<BB"
237
+ },
238
+ "RegulatorCommands::SetSetpointPayload": {
239
+ "id": 113,
240
+ "kind": "struct",
241
+ "type": "RegulatorCommands::SetSetpointPayload",
242
+ "fields": [
243
+ {
244
+ "name": "node::regulator::Id",
245
+ "kind": "enum",
246
+ "format_string": "<B"
247
+ },
248
+ {
249
+ "name": "setpoint",
250
+ "kind": "primitive",
251
+ "type": "float",
252
+ "format_string": "<f"
253
+ }
254
+ ],
255
+ "format_string": "<Bf"
256
+ },
257
+ "RegulatorCommands::SetGainsPayload": {
258
+ "id": 114,
259
+ "kind": "struct",
260
+ "type": "RegulatorCommands::SetGainsPayload",
261
+ "fields": [
262
+ {
263
+ "name": "node::regulator::Id",
264
+ "kind": "enum",
265
+ "format_string": "<B"
266
+ },
267
+ {
268
+ "name": "kp",
269
+ "kind": "primitive",
270
+ "type": "float",
271
+ "format_string": "<f"
272
+ },
273
+ {
274
+ "name": "ki",
275
+ "kind": "primitive",
276
+ "type": "float",
277
+ "format_string": "<f"
278
+ },
279
+ {
280
+ "name": "kd",
281
+ "kind": "primitive",
282
+ "type": "float",
283
+ "format_string": "<f"
284
+ }
285
+ ],
286
+ "format_string": "<Bfff"
287
+ }
288
+ },
289
+ "enums": {
290
+ "node::bldc::Id": {
291
+ "Fuel": 0,
292
+ "Ox": 1,
293
+ "Count": 2
294
+ },
295
+ "BldcCommands::OpenClose": {
296
+ "Open": 0,
297
+ "Close": 1
298
+ },
299
+ "StateId": {
300
+ "Safe": 0,
301
+ "N2Fill": 1,
302
+ "PostN2Fill": 2,
303
+ "OxFill": 3,
304
+ "PostOxFill": 4,
305
+ "Prechill": 5,
306
+ "PostPrechill": 6,
307
+ "QDDisconnect": 7,
308
+ "Pressurized": 8,
309
+ "Armed": 9,
310
+ "Burn": 10,
311
+ "Shutdown": 11,
312
+ "PostShutdown": 12,
313
+ "Calibrate": 13
314
+ },
315
+ "node::servo::Id": {
316
+ "MainFuel": 0,
317
+ "MainOx": 1,
318
+ "OxFill": 2,
319
+ "OxBoiloff": 3,
320
+ "OxSupply": 4,
321
+ "Count": 5
322
+ },
323
+ "ServoCommands::OpenClose": {
324
+ "Open": 0,
325
+ "Close": 1
326
+ },
327
+ "actuators::servo::PositionMode": {
328
+ "kAbsolute": 0,
329
+ "kRelative": 1
330
+ },
331
+ "actuators::servo::StartPolicy": {
332
+ "kPreempt": 0,
333
+ "kNoInterrupt": 1
334
+ },
335
+ "node::solenoid::Id": {
336
+ "FuelVent": 0,
337
+ "OxVent": 1,
338
+ "N2Fill": 2,
339
+ "OxHoseBleed": 3,
340
+ "N2_300_Supply": 4,
341
+ "N2_300_Hose_Bleed": 5,
342
+ "QD_1": 6,
343
+ "QD_2": 7,
344
+ "Count": 8
345
+ },
346
+ "SolenoidCommands::OpeningType": {
347
+ "Open": 0,
348
+ "Close": 1
349
+ },
350
+ "ControlPolicyCommands::PolicyValue": {
351
+ "Disable": 0,
352
+ "Enable": 1
353
+ },
354
+ "node::regulator::Id": {
355
+ "OxBoiloff": 0,
356
+ "Count": 1
357
+ },
358
+ "RegulatorCommands::RegulatorValue": {
359
+ "Disable": 0,
360
+ "Enable": 1
361
+ }
362
+ }
363
+ }
@@ -1,2 +1,4 @@
1
+ export { default as commandsJson } from "./commands.json";
1
2
  export * as commands from "./commands";
3
+ export { default as telemetryJson } from "./telemetry.json";
2
4
  export * as telemetry from "./telemetry";
@@ -1,2 +1,4 @@
1
+ export { default as commandsJson } from "./commands.json";
1
2
  export * as commands from "./commands";
3
+ export { default as telemetryJson } from "./telemetry.json";
2
4
  export * as telemetry from "./telemetry";
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-04-04 11:37:14. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-04-04 14:07:55. Do not edit manually!
3
3
  // The current version of typed-binary does not support 64-bit primitives.
4
4
  // So for we'll implement our own schemas. :)
5
5
  const __littleEndian = true;
@@ -0,0 +1,705 @@
1
+ {
2
+ "version": 1,
3
+ "structs": {
4
+ "HeartBeatTelemetry": {
5
+ "port": 57005,
6
+ "kind": "struct",
7
+ "type": "HeartBeatTelemetry",
8
+ "fields": [
9
+ {
10
+ "name": "message",
11
+ "kind": "array",
12
+ "type": "char[16]",
13
+ "element": {
14
+ "kind": "primitive",
15
+ "type": "char",
16
+ "format_string": "<c"
17
+ },
18
+ "count": 16,
19
+ "format_string": "<cccccccccccccccc"
20
+ },
21
+ {
22
+ "name": "manual_mode",
23
+ "kind": "primitive",
24
+ "type": "bool",
25
+ "format_string": "<?"
26
+ }
27
+ ],
28
+ "format_string": "<cccccccccccccccc?"
29
+ },
30
+ "BldcTelemetryPacket": {
31
+ "port": 5000,
32
+ "fragment": "bldc_id",
33
+ "kind": "struct",
34
+ "type": "BldcTelemetryPacket",
35
+ "fields": [
36
+ {
37
+ "name": "node::bldc::Id",
38
+ "kind": "enum",
39
+ "format_string": "<B"
40
+ },
41
+ {
42
+ "name": "StateId",
43
+ "kind": "enum",
44
+ "format_string": "<B"
45
+ },
46
+ {
47
+ "name": "telemetry",
48
+ "kind": "struct",
49
+ "type": "actuators::bldc::BldcTelemetry",
50
+ "fields": [
51
+ {
52
+ "name": "valve_position",
53
+ "kind": "primitive",
54
+ "type": "float",
55
+ "format_string": "<f"
56
+ },
57
+ {
58
+ "name": "motor_position",
59
+ "kind": "primitive",
60
+ "type": "float",
61
+ "format_string": "<f"
62
+ },
63
+ {
64
+ "name": "timestamp",
65
+ "kind": "primitive",
66
+ "type": "unsigned long long",
67
+ "format_string": "<Q"
68
+ },
69
+ {
70
+ "name": "current_draw",
71
+ "kind": "primitive",
72
+ "type": "float",
73
+ "format_string": "<f"
74
+ },
75
+ {
76
+ "name": "u_p",
77
+ "kind": "primitive",
78
+ "type": "float",
79
+ "format_string": "<f"
80
+ },
81
+ {
82
+ "name": "u_i",
83
+ "kind": "primitive",
84
+ "type": "float",
85
+ "format_string": "<f"
86
+ },
87
+ {
88
+ "name": "u_d",
89
+ "kind": "primitive",
90
+ "type": "float",
91
+ "format_string": "<f"
92
+ },
93
+ {
94
+ "name": "u_pid",
95
+ "kind": "primitive",
96
+ "type": "float",
97
+ "format_string": "<f"
98
+ },
99
+ {
100
+ "name": "u_ff",
101
+ "kind": "primitive",
102
+ "type": "float",
103
+ "format_string": "<f"
104
+ },
105
+ {
106
+ "name": "u_set",
107
+ "kind": "primitive",
108
+ "type": "float",
109
+ "format_string": "<f"
110
+ },
111
+ {
112
+ "name": "u_total",
113
+ "kind": "primitive",
114
+ "type": "float",
115
+ "format_string": "<f"
116
+ },
117
+ {
118
+ "name": "position_raw",
119
+ "kind": "primitive",
120
+ "type": "float",
121
+ "format_string": "<f"
122
+ },
123
+ {
124
+ "name": "upstream_pressure",
125
+ "kind": "primitive",
126
+ "type": "double",
127
+ "format_string": "<d"
128
+ },
129
+ {
130
+ "name": "downstream_pressure",
131
+ "kind": "primitive",
132
+ "type": "double",
133
+ "format_string": "<d"
134
+ },
135
+ {
136
+ "name": "servo_encoder_value",
137
+ "kind": "primitive",
138
+ "type": "double",
139
+ "format_string": "<d"
140
+ },
141
+ {
142
+ "name": "calibrated",
143
+ "kind": "primitive",
144
+ "type": "unsigned char",
145
+ "format_string": "<B"
146
+ }
147
+ ],
148
+ "format_string": "<ffQfffffffffdddB"
149
+ }
150
+ ],
151
+ "format_string": "<BBffQfffffffffdddB"
152
+ },
153
+ "FsmStatusPacket": {
154
+ "port": 5001,
155
+ "kind": "struct",
156
+ "type": "FsmStatusPacket",
157
+ "fields": [
158
+ {
159
+ "name": "status",
160
+ "kind": "struct",
161
+ "type": "fsm::FsmStatus",
162
+ "fields": [
163
+ {
164
+ "name": "state_entry_time_ms",
165
+ "kind": "primitive",
166
+ "type": "unsigned long long",
167
+ "format_string": "<Q"
168
+ },
169
+ {
170
+ "name": "state_time_ms",
171
+ "kind": "primitive",
172
+ "type": "unsigned long long",
173
+ "format_string": "<Q"
174
+ },
175
+ {
176
+ "name": "StateId",
177
+ "kind": "enum",
178
+ "format_string": "<B"
179
+ },
180
+ {
181
+ "name": "StateId",
182
+ "kind": "enum",
183
+ "format_string": "<B"
184
+ },
185
+ {
186
+ "name": "Event",
187
+ "kind": "enum",
188
+ "format_string": "<B"
189
+ },
190
+ {
191
+ "name": "fsm::AbortReason",
192
+ "kind": "enum",
193
+ "format_string": "<B"
194
+ }
195
+ ],
196
+ "format_string": "<QQBBBB"
197
+ },
198
+ {
199
+ "name": "timestamp_ms",
200
+ "kind": "primitive",
201
+ "type": "unsigned int",
202
+ "format_string": "<I"
203
+ }
204
+ ],
205
+ "format_string": "<QQBBBBI"
206
+ },
207
+ "PressureSensorPacket": {
208
+ "port": 5002,
209
+ "fragment": "sensor_id",
210
+ "kind": "struct",
211
+ "type": "PressureSensorPacket",
212
+ "fields": [
213
+ {
214
+ "name": "node::pressure_sensor::Id",
215
+ "kind": "enum",
216
+ "format_string": "<B"
217
+ },
218
+ {
219
+ "name": "data",
220
+ "kind": "struct",
221
+ "type": "sensors::pressure::PressureBatch",
222
+ "fields": [
223
+ {
224
+ "name": "t0_ms",
225
+ "kind": "primitive",
226
+ "type": "unsigned int",
227
+ "format_string": "<I"
228
+ },
229
+ {
230
+ "name": "dt_us",
231
+ "kind": "primitive",
232
+ "type": "unsigned short",
233
+ "format_string": "<H"
234
+ },
235
+ {
236
+ "name": "count",
237
+ "kind": "primitive",
238
+ "type": "unsigned char",
239
+ "format_string": "<B"
240
+ },
241
+ {
242
+ "name": "seq",
243
+ "kind": "primitive",
244
+ "type": "unsigned char",
245
+ "format_string": "<B"
246
+ },
247
+ {
248
+ "name": "overrun",
249
+ "kind": "primitive",
250
+ "type": "bool",
251
+ "format_string": "<?"
252
+ },
253
+ {
254
+ "name": "samples",
255
+ "kind": "array",
256
+ "type": "short[20]",
257
+ "element": {
258
+ "kind": "primitive",
259
+ "type": "short",
260
+ "format_string": "<h"
261
+ },
262
+ "count": 20,
263
+ "format_string": "<hhhhhhhhhhhhhhhhhhhh"
264
+ }
265
+ ],
266
+ "format_string": "<IHBB?hhhhhhhhhhhhhhhhhhhh"
267
+ }
268
+ ],
269
+ "format_string": "<BIHBB?hhhhhhhhhhhhhhhhhhhh"
270
+ },
271
+ "ServoStatusPacket": {
272
+ "port": 5003,
273
+ "fragment": "servo_id",
274
+ "kind": "struct",
275
+ "type": "ServoStatusPacket",
276
+ "fields": [
277
+ {
278
+ "name": "node::servo::Id",
279
+ "kind": "enum",
280
+ "format_string": "<B"
281
+ },
282
+ {
283
+ "name": "timestamp_ms",
284
+ "kind": "primitive",
285
+ "type": "unsigned int",
286
+ "format_string": "<I"
287
+ },
288
+ {
289
+ "name": "status",
290
+ "kind": "struct",
291
+ "type": "actuators::servo::ServoStatus",
292
+ "fields": [
293
+ {
294
+ "name": "commanded_angle_deg",
295
+ "kind": "primitive",
296
+ "type": "float",
297
+ "format_string": "<f"
298
+ },
299
+ {
300
+ "name": "target_angle_deg",
301
+ "kind": "primitive",
302
+ "type": "float",
303
+ "format_string": "<f"
304
+ },
305
+ {
306
+ "name": "measured_angle_deg",
307
+ "kind": "primitive",
308
+ "type": "float",
309
+ "format_string": "<f"
310
+ },
311
+ {
312
+ "name": "current_ma",
313
+ "kind": "primitive",
314
+ "type": "float",
315
+ "format_string": "<f"
316
+ },
317
+ {
318
+ "name": "actuators::servo::ServoMode",
319
+ "kind": "enum",
320
+ "format_string": "<B"
321
+ },
322
+ {
323
+ "name": "actuators::servo::PowerState",
324
+ "kind": "enum",
325
+ "format_string": "<B"
326
+ }
327
+ ],
328
+ "format_string": "<ffffBB"
329
+ }
330
+ ],
331
+ "format_string": "<BIffffBB"
332
+ },
333
+ "SolenoidStatusPacket": {
334
+ "port": 5004,
335
+ "fragment": "solenoid_id",
336
+ "kind": "struct",
337
+ "type": "SolenoidStatusPacket",
338
+ "fields": [
339
+ {
340
+ "name": "node::solenoid::Id",
341
+ "kind": "enum",
342
+ "format_string": "<B"
343
+ },
344
+ {
345
+ "name": "timestamp_ms",
346
+ "kind": "primitive",
347
+ "type": "unsigned int",
348
+ "format_string": "<I"
349
+ },
350
+ {
351
+ "name": "status",
352
+ "kind": "struct",
353
+ "type": "actuators::solenoid::SolenoidStatus",
354
+ "fields": [
355
+ {
356
+ "name": "actuators::solenoid::PowerState",
357
+ "kind": "enum",
358
+ "format_string": "<B"
359
+ },
360
+ {
361
+ "name": "actuators::solenoid::Opening",
362
+ "kind": "enum",
363
+ "format_string": "<B"
364
+ }
365
+ ],
366
+ "format_string": "<BB"
367
+ }
368
+ ],
369
+ "format_string": "<BIBB"
370
+ },
371
+ "RegulatorStatusPacket": {
372
+ "port": 5005,
373
+ "fragment": "regulator_id",
374
+ "kind": "struct",
375
+ "type": "RegulatorStatusPacket",
376
+ "fields": [
377
+ {
378
+ "name": "node::regulator::Id",
379
+ "kind": "enum",
380
+ "format_string": "<B"
381
+ },
382
+ {
383
+ "name": "timestamp_ms",
384
+ "kind": "primitive",
385
+ "type": "unsigned int",
386
+ "format_string": "<I"
387
+ },
388
+ {
389
+ "name": "status",
390
+ "kind": "struct",
391
+ "type": "regulators::RegulatorStatus",
392
+ "fields": [
393
+ {
394
+ "name": "operator_enabled",
395
+ "kind": "primitive",
396
+ "type": "bool",
397
+ "format_string": "<?"
398
+ },
399
+ {
400
+ "name": "policy_enabled",
401
+ "kind": "primitive",
402
+ "type": "bool",
403
+ "format_string": "<?"
404
+ },
405
+ {
406
+ "name": "active",
407
+ "kind": "primitive",
408
+ "type": "bool",
409
+ "format_string": "<?"
410
+ },
411
+ {
412
+ "name": "setpoint",
413
+ "kind": "primitive",
414
+ "type": "float",
415
+ "format_string": "<f"
416
+ },
417
+ {
418
+ "name": "kp",
419
+ "kind": "primitive",
420
+ "type": "float",
421
+ "format_string": "<f"
422
+ },
423
+ {
424
+ "name": "ki",
425
+ "kind": "primitive",
426
+ "type": "float",
427
+ "format_string": "<f"
428
+ },
429
+ {
430
+ "name": "kd",
431
+ "kind": "primitive",
432
+ "type": "float",
433
+ "format_string": "<f"
434
+ },
435
+ {
436
+ "name": "integral",
437
+ "kind": "primitive",
438
+ "type": "float",
439
+ "format_string": "<f"
440
+ },
441
+ {
442
+ "name": "previous_error",
443
+ "kind": "primitive",
444
+ "type": "float",
445
+ "format_string": "<f"
446
+ },
447
+ {
448
+ "name": "last_measurement",
449
+ "kind": "primitive",
450
+ "type": "float",
451
+ "format_string": "<f"
452
+ },
453
+ {
454
+ "name": "last_output",
455
+ "kind": "primitive",
456
+ "type": "float",
457
+ "format_string": "<f"
458
+ },
459
+ {
460
+ "name": "last_servo_command_",
461
+ "kind": "primitive",
462
+ "type": "float",
463
+ "format_string": "<f"
464
+ },
465
+ {
466
+ "name": "last_update_ms",
467
+ "kind": "primitive",
468
+ "type": "unsigned int",
469
+ "format_string": "<I"
470
+ }
471
+ ],
472
+ "format_string": "<???fffffffffI"
473
+ }
474
+ ],
475
+ "format_string": "<BI???fffffffffI"
476
+ },
477
+ "ThermocouplePacket": {
478
+ "port": 5006,
479
+ "kind": "struct",
480
+ "type": "ThermocouplePacket",
481
+ "fields": [
482
+ {
483
+ "name": "timestamp_ms",
484
+ "kind": "primitive",
485
+ "type": "unsigned int",
486
+ "format_string": "<I"
487
+ },
488
+ {
489
+ "name": "samples",
490
+ "kind": "struct",
491
+ "type": "proto::can::thermocouple::ThermocoupleSamples",
492
+ "fields": [
493
+ {
494
+ "name": "port",
495
+ "kind": "array",
496
+ "type": "proto::can::thermocouple::ThermocoupleSample[4]",
497
+ "element": {
498
+ "kind": "struct",
499
+ "type": "proto::can::thermocouple::ThermocoupleSample",
500
+ "fields": [
501
+ {
502
+ "name": "timestamp_us",
503
+ "kind": "primitive",
504
+ "type": "unsigned long long",
505
+ "format_string": "<Q"
506
+ },
507
+ {
508
+ "name": "interval_us",
509
+ "kind": "primitive",
510
+ "type": "float",
511
+ "format_string": "<f"
512
+ },
513
+ {
514
+ "name": "temperature_c",
515
+ "kind": "array",
516
+ "type": "float[8]",
517
+ "element": {
518
+ "kind": "primitive",
519
+ "type": "float",
520
+ "format_string": "<f"
521
+ },
522
+ "count": 8,
523
+ "format_string": "<ffffffff"
524
+ }
525
+ ],
526
+ "format_string": "<Qfffffffff"
527
+ },
528
+ "count": 4,
529
+ "format_string": "<QfffffffffQfffffffffQfffffffffQfffffffff"
530
+ }
531
+ ],
532
+ "format_string": "<QfffffffffQfffffffffQfffffffffQfffffffff"
533
+ }
534
+ ],
535
+ "format_string": "<IQfffffffffQfffffffffQfffffffffQfffffffff"
536
+ },
537
+ "LoadCellPacket": {
538
+ "port": 5007,
539
+ "fragment": "loadcell_id",
540
+ "kind": "struct",
541
+ "type": "LoadCellPacket",
542
+ "fields": [
543
+ {
544
+ "name": "node::load_cell::Id",
545
+ "kind": "enum",
546
+ "format_string": "<B"
547
+ },
548
+ {
549
+ "name": "data",
550
+ "kind": "struct",
551
+ "type": "sensors::loadcell::LoadCellBatch",
552
+ "fields": [
553
+ {
554
+ "name": "t0_ms",
555
+ "kind": "primitive",
556
+ "type": "unsigned int",
557
+ "format_string": "<I"
558
+ },
559
+ {
560
+ "name": "dt_us",
561
+ "kind": "primitive",
562
+ "type": "unsigned short",
563
+ "format_string": "<H"
564
+ },
565
+ {
566
+ "name": "count",
567
+ "kind": "primitive",
568
+ "type": "unsigned char",
569
+ "format_string": "<B"
570
+ },
571
+ {
572
+ "name": "seq",
573
+ "kind": "primitive",
574
+ "type": "unsigned char",
575
+ "format_string": "<B"
576
+ },
577
+ {
578
+ "name": "overrun",
579
+ "kind": "primitive",
580
+ "type": "bool",
581
+ "format_string": "<?"
582
+ },
583
+ {
584
+ "name": "samples",
585
+ "kind": "array",
586
+ "type": "int[20]",
587
+ "element": {
588
+ "kind": "primitive",
589
+ "type": "int",
590
+ "format_string": "<i"
591
+ },
592
+ "count": 20,
593
+ "format_string": "<iiiiiiiiiiiiiiiiiiii"
594
+ }
595
+ ],
596
+ "format_string": "<IHBB?iiiiiiiiiiiiiiiiiiii"
597
+ }
598
+ ],
599
+ "format_string": "<BIHBB?iiiiiiiiiiiiiiiiiiii"
600
+ }
601
+ },
602
+ "enums": {
603
+ "node::bldc::Id": {
604
+ "Fuel": 0,
605
+ "Ox": 1,
606
+ "Count": 2
607
+ },
608
+ "StateId": {
609
+ "Safe": 0,
610
+ "N2Fill": 1,
611
+ "PostN2Fill": 2,
612
+ "OxFill": 3,
613
+ "PostOxFill": 4,
614
+ "Prechill": 5,
615
+ "PostPrechill": 6,
616
+ "QDDisconnect": 7,
617
+ "Pressurized": 8,
618
+ "Armed": 9,
619
+ "Burn": 10,
620
+ "Shutdown": 11,
621
+ "PostShutdown": 12,
622
+ "Calibrate": 13
623
+ },
624
+ "Event": {
625
+ "Boot": 0,
626
+ "NextState": 1,
627
+ "PreviousState": 2,
628
+ "Timeout": 3,
629
+ "CalibrateRequest": 4,
630
+ "BurnwireCut": 5,
631
+ "Abort": 6,
632
+ "None": 7,
633
+ "Count": 8
634
+ },
635
+ "fsm::AbortReason": {
636
+ "None": 0,
637
+ "Manual": 1,
638
+ "FuelTankOverpressure": 2,
639
+ "OxTankOverpressure": 3,
640
+ "ChamberUnderpressure": 4
641
+ },
642
+ "node::pressure_sensor::Id": {
643
+ "N2Tank": 0,
644
+ "OxTank": 1,
645
+ "OxInjector": 2,
646
+ "FuelTank": 3,
647
+ "FuelInjector": 4,
648
+ "FuelInlet": 5,
649
+ "Chamber": 6,
650
+ "OxSupply": 7,
651
+ "N2_300": 8,
652
+ "Count": 9
653
+ },
654
+ "node::servo::Id": {
655
+ "MainFuel": 0,
656
+ "MainOx": 1,
657
+ "OxFill": 2,
658
+ "OxBoiloff": 3,
659
+ "OxSupply": 4,
660
+ "Count": 5
661
+ },
662
+ "actuators::servo::ServoMode": {
663
+ "kUnknown": 0,
664
+ "kPosition": 1,
665
+ "kCalibrate": 2
666
+ },
667
+ "actuators::servo::PowerState": {
668
+ "kUnknown": 0,
669
+ "kOff": 1,
670
+ "kBooting": 2,
671
+ "kOn": 3
672
+ },
673
+ "node::solenoid::Id": {
674
+ "FuelVent": 0,
675
+ "OxVent": 1,
676
+ "N2Fill": 2,
677
+ "OxHoseBleed": 3,
678
+ "N2_300_Supply": 4,
679
+ "N2_300_Hose_Bleed": 5,
680
+ "QD_1": 6,
681
+ "QD_2": 7,
682
+ "Count": 8
683
+ },
684
+ "actuators::solenoid::PowerState": {
685
+ "kUnknown": 0,
686
+ "kOff": 1,
687
+ "kOn": 2
688
+ },
689
+ "actuators::solenoid::Opening": {
690
+ "kUnknown": 0,
691
+ "kClosed": 1,
692
+ "kOpen": 2
693
+ },
694
+ "node::regulator::Id": {
695
+ "OxBoiloff": 0,
696
+ "Count": 1
697
+ },
698
+ "node::load_cell::Id": {
699
+ "LoadCell1": 0,
700
+ "LoadCell2": 1,
701
+ "LoadCell3": 2,
702
+ "Count": 3
703
+ }
704
+ }
705
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.65",
3
+ "version": "0.1.66",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",