fossekall-interface 0.1.128 → 0.1.131

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-06-10 10:38:25. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-07-03 23:17:00. 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;
@@ -60,7 +60,7 @@ class Float64Schema extends Schema {
60
60
  const u64 = new UInt64Schema();
61
61
  const i64 = new Int64Schema();
62
62
  const f64 = new Float64Schema();
63
- export const node_bldc_Id = {
63
+ export const actuators_bldc_Id = {
64
64
  Fuel: 0,
65
65
  Ox: 1,
66
66
  Count: 2,
@@ -71,14 +71,13 @@ export const StateId = {
71
71
  PostN2Fill: 2,
72
72
  OxFill: 3,
73
73
  PostOxFill: 4,
74
- QDDisconnect: 5,
75
- Pressurized: 6,
76
- Armed: 7,
77
- Burn: 8,
78
- Shutdown: 9,
79
- PostShutdown: 10,
80
- Purge: 11,
81
- Hold: 12,
74
+ Pressurized: 5,
75
+ Armed: 6,
76
+ Burn: 7,
77
+ Shutdown: 8,
78
+ PostShutdown: 9,
79
+ Purge: 10,
80
+ Hold: 11,
82
81
  };
83
82
  export const Event = {
84
83
  Boot: 0,
@@ -98,7 +97,7 @@ export const fsm_AbortReason = {
98
97
  OxTankOverpressure: 3,
99
98
  ChamberUnderpressure: 4,
100
99
  };
101
- export const node_pressure_sensor_Id = {
100
+ export const sensors_pressure_Id = {
102
101
  N2Tank: 0,
103
102
  OxTank: 1,
104
103
  OxInjector: 2,
@@ -106,52 +105,40 @@ export const node_pressure_sensor_Id = {
106
105
  FuelInjector: 4,
107
106
  FuelInlet: 5,
108
107
  Chamber: 6,
109
- OxSupply: 7,
110
- N2_300: 8,
111
- Count: 9,
108
+ Count: 7,
112
109
  };
113
- export const node_servo_Id = {
110
+ export const actuators_servo_Id = {
114
111
  MainFuel: 0,
115
112
  MainOx: 1,
116
113
  OxFill: 2,
117
114
  OxBoiloff: 3,
118
- OxSupply: 4,
115
+ OxPrechill: 4,
119
116
  Purge: 5,
120
117
  Count: 6,
121
118
  };
122
- export const actuators_servo_ServoMode = {
123
- kUnknown: 0,
124
- kPosition: 1,
125
- kCalibrate: 2,
126
- };
127
119
  export const actuators_servo_PowerState = {
128
- kUnknown: 0,
129
- kOff: 1,
130
- kBooting: 2,
131
- kOn: 3,
120
+ Unknown: 0,
121
+ Off: 1,
122
+ Booting: 2,
123
+ On: 3,
132
124
  };
133
- export const node_solenoid_Id = {
125
+ export const actuators_solenoid_Id = {
134
126
  FuelVent: 0,
135
127
  OxVent: 1,
136
128
  N2Fill: 2,
137
- OxHoseBleed: 3,
138
- N2_300_Supply: 4,
139
- N2_300_Hose_Bleed: 5,
140
- QD_1: 6,
141
- QD_2: 7,
142
- Count: 8,
129
+ Count: 3,
143
130
  };
144
131
  export const actuators_solenoid_PowerState = {
145
- kUnknown: 0,
146
- kOff: 1,
147
- kOn: 2,
132
+ Unknown: 0,
133
+ Off: 1,
134
+ On: 2,
148
135
  };
149
136
  export const actuators_solenoid_Opening = {
150
- kUnknown: 0,
151
- kClosed: 1,
152
- kOpen: 2,
137
+ Unknown: 0,
138
+ Closed: 1,
139
+ Open: 2,
153
140
  };
154
- export const node_regulator_Id = {
141
+ export const regulator_Id = {
155
142
  OxBoiloff: 0,
156
143
  Count: 1,
157
144
  };
@@ -166,12 +153,6 @@ export const proto_can_thermocouple_Id = {
166
153
  ExtraNodeOne: 7,
167
154
  Count: 8,
168
155
  };
169
- export const node_load_cell_Id = {
170
- LoadCell1: 0,
171
- LoadCell2: 1,
172
- LoadCell3: 2,
173
- Count: 3,
174
- };
175
156
  export const HeartBeatTelemetry = bin.object({
176
157
  message: bin.arrayOf(bin.i8, 16), // char[16]
177
158
  status_flags: bin.u8, // unsigned char
@@ -188,7 +169,7 @@ export const actuators_bldc_BldcTelemetry = bin.object({
188
169
  status_flags: bin.u8, // unsigned char
189
170
  });
190
171
  export const BldcTelemetryPacket = bin.object({
191
- bldc_id: bin.u8, // node::bldc::Id
172
+ bldc_id: bin.u8, // actuators::bldc::Id
192
173
  fsm_state: bin.u8, // StateId
193
174
  telemetry: actuators_bldc_BldcTelemetry, // actuators::bldc::BldcTelemetry
194
175
  });
@@ -205,15 +186,14 @@ export const FsmStatusPacket = bin.object({
205
186
  timestamp_ms: bin.u32, // unsigned int
206
187
  });
207
188
  export const sensors_pressure_PressureBatch = bin.object({
208
- t0_ms: bin.u32, // unsigned int
209
- dt_us: bin.u16, // unsigned short
189
+ t0_us: u64, // unsigned long long
190
+ dt_us: bin.u32, // unsigned int
210
191
  count: bin.u8, // unsigned char
211
192
  seq: bin.u8, // unsigned char
212
- overrun: bin.bool, // bool
213
193
  samples: bin.arrayOf(bin.i16, 20), // short[20]
214
194
  });
215
195
  export const PressureSensorPacket = bin.object({
216
- sensor_id: bin.u8, // node::pressure_sensor::Id
196
+ sensor_id: bin.u8, // sensors::pressure::Id
217
197
  data: sensors_pressure_PressureBatch, // sensors::pressure::PressureBatch
218
198
  });
219
199
  export const actuators_servo_ServoStatus = bin.object({
@@ -221,20 +201,20 @@ export const actuators_servo_ServoStatus = bin.object({
221
201
  target_angle_deg: bin.f32, // float
222
202
  measured_angle_deg: bin.f32, // float
223
203
  current_ma: bin.f32, // float
224
- mode: bin.u8, // actuators::servo::ServoMode
225
204
  power_state: bin.u8, // actuators::servo::PowerState
226
205
  });
227
206
  export const ServoStatusPacket = bin.object({
228
- servo_id: bin.u8, // node::servo::Id
207
+ servo_id: bin.u8, // actuators::servo::Id
229
208
  timestamp_ms: bin.u32, // unsigned int
230
209
  status: actuators_servo_ServoStatus, // actuators::servo::ServoStatus
231
210
  });
232
211
  export const actuators_solenoid_SolenoidStatus = bin.object({
233
212
  power_state: bin.u8, // actuators::solenoid::PowerState
234
213
  opening: bin.u8, // actuators::solenoid::Opening
214
+ current_ma: bin.f32, // float
235
215
  });
236
216
  export const SolenoidStatusPacket = bin.object({
237
- solenoid_id: bin.u8, // node::solenoid::Id
217
+ solenoid_id: bin.u8, // actuators::solenoid::Id
238
218
  timestamp_ms: bin.u32, // unsigned int
239
219
  status: actuators_solenoid_SolenoidStatus, // actuators::solenoid::SolenoidStatus
240
220
  });
@@ -256,7 +236,7 @@ export const regulators_RegulatorStatus = bin.object({
256
236
  last_update_ms: bin.u32, // unsigned int
257
237
  });
258
238
  export const RegulatorStatusPacket = bin.object({
259
- regulator_id: bin.u8, // node::regulator::Id
239
+ regulator_id: bin.u8, // regulator::Id
260
240
  timestamp_ms: bin.u32, // unsigned int
261
241
  status: regulators_RegulatorStatus, // regulators::RegulatorStatus
262
242
  });
@@ -271,18 +251,6 @@ export const ThermocouplePacket = bin.object({
271
251
  timestamp_ms: bin.u32, // unsigned int
272
252
  data: proto_can_thermocouple_ThermocoupleSample, // proto::can::thermocouple::ThermocoupleSample
273
253
  });
274
- export const sensors_loadcell_LoadCellBatch = bin.object({
275
- t0_ms: bin.u32, // unsigned int
276
- dt_us: bin.u16, // unsigned short
277
- count: bin.u8, // unsigned char
278
- seq: bin.u8, // unsigned char
279
- overrun: bin.bool, // bool
280
- samples: bin.arrayOf(bin.i16, 20), // short[20]
281
- });
282
- export const LoadCellPacket = bin.object({
283
- loadcell_id: bin.u8, // node::load_cell::Id
284
- data: sensors_loadcell_LoadCellBatch, // sensors::loadcell::LoadCellBatch
285
- });
286
254
  export const actuators_bldc_PidGains = bin.object({
287
255
  p: f64, // double
288
256
  i: f64, // double
@@ -310,7 +278,7 @@ export const actuators_bldc_ControllerConfig = bin.object({
310
278
  main_valve_curve: SigmoidParameters, // SigmoidParameters
311
279
  });
312
280
  export const BldcConfigTelmetryPacket = bin.object({
313
- bldc_id: bin.u8, // node::load_cell::Id
281
+ bldc_id: bin.u8, // actuators::bldc::Id
314
282
  config: actuators_bldc_ControllerConfig, // actuators::bldc::ControllerConfig
315
283
  });
316
284
  export const BatteryMonitorTelemetryPacket = bin.object({
@@ -325,10 +293,10 @@ export const spec = {
325
293
  },
326
294
  BldcTelemetryPacket: {
327
295
  port: 5000,
328
- fragment: 'bldc_id',
296
+ fragment: "bldc_id",
329
297
  schema: BldcTelemetryPacket,
330
298
  enums: {
331
- bldc_id: node_bldc_Id,
299
+ bldc_id: actuators_bldc_Id,
332
300
  fsm_state: StateId,
333
301
  telemetry: {},
334
302
  },
@@ -347,31 +315,31 @@ export const spec = {
347
315
  },
348
316
  PressureSensorPacket: {
349
317
  port: 5002,
350
- fragment: 'sensor_id',
318
+ fragment: "sensor_id",
319
+ packed: null,
351
320
  schema: PressureSensorPacket,
352
321
  enums: {
353
- sensor_id: node_pressure_sensor_Id,
322
+ sensor_id: sensors_pressure_Id,
354
323
  data: {},
355
324
  },
356
325
  },
357
326
  ServoStatusPacket: {
358
327
  port: 5003,
359
- fragment: 'servo_id',
328
+ fragment: "servo_id",
360
329
  schema: ServoStatusPacket,
361
330
  enums: {
362
- servo_id: node_servo_Id,
331
+ servo_id: actuators_servo_Id,
363
332
  status: {
364
- mode: actuators_servo_ServoMode,
365
333
  power_state: actuators_servo_PowerState,
366
334
  },
367
335
  },
368
336
  },
369
337
  SolenoidStatusPacket: {
370
338
  port: 5004,
371
- fragment: 'solenoid_id',
339
+ fragment: "solenoid_id",
372
340
  schema: SolenoidStatusPacket,
373
341
  enums: {
374
- solenoid_id: node_solenoid_Id,
342
+ solenoid_id: actuators_solenoid_Id,
375
343
  status: {
376
344
  power_state: actuators_solenoid_PowerState,
377
345
  opening: actuators_solenoid_Opening,
@@ -380,16 +348,16 @@ export const spec = {
380
348
  },
381
349
  RegulatorStatusPacket: {
382
350
  port: 5005,
383
- fragment: 'regulator_id',
351
+ fragment: "regulator_id",
384
352
  schema: RegulatorStatusPacket,
385
353
  enums: {
386
- regulator_id: node_regulator_Id,
354
+ regulator_id: regulator_Id,
387
355
  status: {},
388
356
  },
389
357
  },
390
358
  ThermocouplePacket: {
391
359
  port: 5006,
392
- fragment: 'thermocouple_id',
360
+ fragment: "thermocouple_id",
393
361
  schema: ThermocouplePacket,
394
362
  enums: {
395
363
  thermocouple_id: proto_can_thermocouple_Id,
@@ -398,21 +366,12 @@ export const spec = {
398
366
  },
399
367
  },
400
368
  },
401
- LoadCellPacket: {
402
- port: 5007,
403
- fragment: 'loadcell_id',
404
- schema: LoadCellPacket,
405
- enums: {
406
- loadcell_id: node_load_cell_Id,
407
- data: {},
408
- },
409
- },
410
369
  BldcConfigTelmetryPacket: {
411
370
  port: 5008,
412
- fragment: 'bldc_id',
371
+ fragment: "bldc_id",
413
372
  schema: BldcConfigTelmetryPacket,
414
373
  enums: {
415
- bldc_id: node_load_cell_Id,
374
+ bldc_id: actuators_bldc_Id,
416
375
  config: {
417
376
  pressurize_pid_gains: {},
418
377
  run_pid_gains: {},
@@ -36,7 +36,7 @@
36
36
  {
37
37
  "name": "bldc_id",
38
38
  "kind": "enum",
39
- "type": "node::bldc::Id",
39
+ "type": "actuators::bldc::Id",
40
40
  "format_string": "<B"
41
41
  },
42
42
  {
@@ -171,31 +171,33 @@
171
171
  "PressureSensorPacket": {
172
172
  "port": 5002,
173
173
  "fragment": "sensor_id",
174
+ "packed": null,
174
175
  "kind": "struct",
175
176
  "type": "PressureSensorPacket",
176
177
  "fields": [
177
178
  {
178
179
  "name": "sensor_id",
179
180
  "kind": "enum",
180
- "type": "node::pressure_sensor::Id",
181
+ "type": "sensors::pressure::Id",
181
182
  "format_string": "<B"
182
183
  },
183
184
  {
184
185
  "name": "data",
186
+ "packed": null,
185
187
  "kind": "struct",
186
188
  "type": "sensors::pressure::PressureBatch",
187
189
  "fields": [
188
190
  {
189
- "name": "t0_ms",
191
+ "name": "t0_us",
190
192
  "kind": "primitive",
191
- "type": "unsigned int",
192
- "format_string": "<I"
193
+ "type": "unsigned long long",
194
+ "format_string": "<Q"
193
195
  },
194
196
  {
195
197
  "name": "dt_us",
196
198
  "kind": "primitive",
197
- "type": "unsigned short",
198
- "format_string": "<H"
199
+ "type": "unsigned int",
200
+ "format_string": "<I"
199
201
  },
200
202
  {
201
203
  "name": "count",
@@ -209,12 +211,6 @@
209
211
  "type": "unsigned char",
210
212
  "format_string": "<B"
211
213
  },
212
- {
213
- "name": "overrun",
214
- "kind": "primitive",
215
- "type": "bool",
216
- "format_string": "<?"
217
- },
218
214
  {
219
215
  "name": "samples",
220
216
  "kind": "array",
@@ -228,10 +224,10 @@
228
224
  "format_string": "<hhhhhhhhhhhhhhhhhhhh"
229
225
  }
230
226
  ],
231
- "format_string": "<IHBB?hhhhhhhhhhhhhhhhhhhh"
227
+ "format_string": "<QIBBhhhhhhhhhhhhhhhhhhhh"
232
228
  }
233
229
  ],
234
- "format_string": "<BIHBB?hhhhhhhhhhhhhhhhhhhh"
230
+ "format_string": "<BQIBBhhhhhhhhhhhhhhhhhhhh"
235
231
  },
236
232
  "ServoStatusPacket": {
237
233
  "port": 5003,
@@ -242,7 +238,7 @@
242
238
  {
243
239
  "name": "servo_id",
244
240
  "kind": "enum",
245
- "type": "node::servo::Id",
241
+ "type": "actuators::servo::Id",
246
242
  "format_string": "<B"
247
243
  },
248
244
  {
@@ -280,12 +276,6 @@
280
276
  "type": "float",
281
277
  "format_string": "<f"
282
278
  },
283
- {
284
- "name": "mode",
285
- "kind": "enum",
286
- "type": "actuators::servo::ServoMode",
287
- "format_string": "<B"
288
- },
289
279
  {
290
280
  "name": "power_state",
291
281
  "kind": "enum",
@@ -293,10 +283,10 @@
293
283
  "format_string": "<B"
294
284
  }
295
285
  ],
296
- "format_string": "<ffffBB"
286
+ "format_string": "<ffffB"
297
287
  }
298
288
  ],
299
- "format_string": "<BIffffBB"
289
+ "format_string": "<BIffffB"
300
290
  },
301
291
  "SolenoidStatusPacket": {
302
292
  "port": 5004,
@@ -307,7 +297,7 @@
307
297
  {
308
298
  "name": "solenoid_id",
309
299
  "kind": "enum",
310
- "type": "node::solenoid::Id",
300
+ "type": "actuators::solenoid::Id",
311
301
  "format_string": "<B"
312
302
  },
313
303
  {
@@ -332,12 +322,18 @@
332
322
  "kind": "enum",
333
323
  "type": "actuators::solenoid::Opening",
334
324
  "format_string": "<B"
325
+ },
326
+ {
327
+ "name": "current_ma",
328
+ "kind": "primitive",
329
+ "type": "float",
330
+ "format_string": "<f"
335
331
  }
336
332
  ],
337
- "format_string": "<BB"
333
+ "format_string": "<BBf"
338
334
  }
339
335
  ],
340
- "format_string": "<BIBB"
336
+ "format_string": "<BIBBf"
341
337
  },
342
338
  "RegulatorStatusPacket": {
343
339
  "port": 5005,
@@ -348,7 +344,7 @@
348
344
  {
349
345
  "name": "regulator_id",
350
346
  "kind": "enum",
351
- "type": "node::regulator::Id",
347
+ "type": "regulator::Id",
352
348
  "format_string": "<B"
353
349
  },
354
350
  {
@@ -517,71 +513,6 @@
517
513
  ],
518
514
  "format_string": "<BIBQfffffffff"
519
515
  },
520
- "LoadCellPacket": {
521
- "port": 5007,
522
- "fragment": "loadcell_id",
523
- "kind": "struct",
524
- "type": "LoadCellPacket",
525
- "fields": [
526
- {
527
- "name": "loadcell_id",
528
- "kind": "enum",
529
- "type": "node::load_cell::Id",
530
- "format_string": "<B"
531
- },
532
- {
533
- "name": "data",
534
- "kind": "struct",
535
- "type": "sensors::loadcell::LoadCellBatch",
536
- "fields": [
537
- {
538
- "name": "t0_ms",
539
- "kind": "primitive",
540
- "type": "unsigned int",
541
- "format_string": "<I"
542
- },
543
- {
544
- "name": "dt_us",
545
- "kind": "primitive",
546
- "type": "unsigned short",
547
- "format_string": "<H"
548
- },
549
- {
550
- "name": "count",
551
- "kind": "primitive",
552
- "type": "unsigned char",
553
- "format_string": "<B"
554
- },
555
- {
556
- "name": "seq",
557
- "kind": "primitive",
558
- "type": "unsigned char",
559
- "format_string": "<B"
560
- },
561
- {
562
- "name": "overrun",
563
- "kind": "primitive",
564
- "type": "bool",
565
- "format_string": "<?"
566
- },
567
- {
568
- "name": "samples",
569
- "kind": "array",
570
- "type": "short[20]",
571
- "element": {
572
- "kind": "primitive",
573
- "type": "short",
574
- "format_string": "<h"
575
- },
576
- "count": 20,
577
- "format_string": "<hhhhhhhhhhhhhhhhhhhh"
578
- }
579
- ],
580
- "format_string": "<IHBB?hhhhhhhhhhhhhhhhhhhh"
581
- }
582
- ],
583
- "format_string": "<BIHBB?hhhhhhhhhhhhhhhhhhhh"
584
- },
585
516
  "BldcConfigTelmetryPacket": {
586
517
  "port": 5008,
587
518
  "fragment": "bldc_id",
@@ -591,7 +522,7 @@
591
522
  {
592
523
  "name": "bldc_id",
593
524
  "kind": "enum",
594
- "type": "node::load_cell::Id",
525
+ "type": "actuators::bldc::Id",
595
526
  "format_string": "<B"
596
527
  },
597
528
  {
@@ -797,7 +728,7 @@
797
728
  }
798
729
  },
799
730
  "enums": {
800
- "node::bldc::Id": {
731
+ "actuators::bldc::Id": {
801
732
  "Fuel": 0,
802
733
  "Ox": 1,
803
734
  "Count": 2
@@ -808,14 +739,13 @@
808
739
  "PostN2Fill": 2,
809
740
  "OxFill": 3,
810
741
  "PostOxFill": 4,
811
- "QDDisconnect": 5,
812
- "Pressurized": 6,
813
- "Armed": 7,
814
- "Burn": 8,
815
- "Shutdown": 9,
816
- "PostShutdown": 10,
817
- "Purge": 11,
818
- "Hold": 12
742
+ "Pressurized": 5,
743
+ "Armed": 6,
744
+ "Burn": 7,
745
+ "Shutdown": 8,
746
+ "PostShutdown": 9,
747
+ "Purge": 10,
748
+ "Hold": 11
819
749
  },
820
750
  "Event": {
821
751
  "Boot": 0,
@@ -835,7 +765,7 @@
835
765
  "OxTankOverpressure": 3,
836
766
  "ChamberUnderpressure": 4
837
767
  },
838
- "node::pressure_sensor::Id": {
768
+ "sensors::pressure::Id": {
839
769
  "N2Tank": 0,
840
770
  "OxTank": 1,
841
771
  "OxInjector": 2,
@@ -843,52 +773,40 @@
843
773
  "FuelInjector": 4,
844
774
  "FuelInlet": 5,
845
775
  "Chamber": 6,
846
- "OxSupply": 7,
847
- "N2_300": 8,
848
- "Count": 9
776
+ "Count": 7
849
777
  },
850
- "node::servo::Id": {
778
+ "actuators::servo::Id": {
851
779
  "MainFuel": 0,
852
780
  "MainOx": 1,
853
781
  "OxFill": 2,
854
782
  "OxBoiloff": 3,
855
- "OxSupply": 4,
783
+ "OxPrechill": 4,
856
784
  "Purge": 5,
857
785
  "Count": 6
858
786
  },
859
- "actuators::servo::ServoMode": {
860
- "kUnknown": 0,
861
- "kPosition": 1,
862
- "kCalibrate": 2
863
- },
864
787
  "actuators::servo::PowerState": {
865
- "kUnknown": 0,
866
- "kOff": 1,
867
- "kBooting": 2,
868
- "kOn": 3
788
+ "Unknown": 0,
789
+ "Off": 1,
790
+ "Booting": 2,
791
+ "On": 3
869
792
  },
870
- "node::solenoid::Id": {
793
+ "actuators::solenoid::Id": {
871
794
  "FuelVent": 0,
872
795
  "OxVent": 1,
873
796
  "N2Fill": 2,
874
- "OxHoseBleed": 3,
875
- "N2_300_Supply": 4,
876
- "N2_300_Hose_Bleed": 5,
877
- "QD_1": 6,
878
- "QD_2": 7,
879
- "Count": 8
797
+ "Count": 3
880
798
  },
881
799
  "actuators::solenoid::PowerState": {
882
- "kUnknown": 0,
883
- "kOff": 1,
884
- "kOn": 2
800
+ "Unknown": 0,
801
+ "Off": 1,
802
+ "On": 2
885
803
  },
886
804
  "actuators::solenoid::Opening": {
887
- "kUnknown": 0,
888
- "kClosed": 1,
889
- "kOpen": 2
805
+ "Unknown": 0,
806
+ "Closed": 1,
807
+ "Open": 2
890
808
  },
891
- "node::regulator::Id": {
809
+ "regulator::Id": {
892
810
  "OxBoiloff": 0,
893
811
  "Count": 1
894
812
  },
@@ -902,12 +820,6 @@
902
820
  "Chamber2": 6,
903
821
  "ExtraNodeOne": 7,
904
822
  "Count": 8
905
- },
906
- "node::load_cell::Id": {
907
- "LoadCell1": 0,
908
- "LoadCell2": 1,
909
- "LoadCell3": 2,
910
- "Count": 3
911
823
  }
912
824
  }
913
825
  }