fossekall-interface 0.1.26 → 0.1.27

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,8 +1,8 @@
1
1
  import bin from 'typed-binary';
2
2
  export declare const node_bldc_Id: {
3
- readonly kFuel: 0;
4
- readonly kOx: 1;
5
- readonly kCount: 2;
3
+ readonly Fuel: 0;
4
+ readonly Ox: 1;
5
+ readonly Count: 2;
6
6
  };
7
7
  export type node_bldc_Id = (typeof node_bldc_Id)[keyof typeof node_bldc_Id];
8
8
  export declare const BldcCommands_SetBldcCommand: {
@@ -40,12 +40,12 @@ export declare const Event: {
40
40
  };
41
41
  export type Event = (typeof Event)[keyof typeof Event];
42
42
  export declare const node_servo_Id: {
43
- readonly kMainFuel: 0;
44
- readonly kMainOx: 1;
45
- readonly kOxFill: 2;
46
- readonly kOxVent: 3;
47
- readonly kOxSupply: 4;
48
- readonly kCount: 5;
43
+ readonly MainFuel: 0;
44
+ readonly MainOx: 1;
45
+ readonly OxFill: 2;
46
+ readonly OxBoiloff: 3;
47
+ readonly OxSupply: 4;
48
+ readonly Count: 5;
49
49
  };
50
50
  export type node_servo_Id = (typeof node_servo_Id)[keyof typeof node_servo_Id];
51
51
  export declare const ServoCommands_OpenClose: {
@@ -64,17 +64,15 @@ export declare const actuators_servo_StartPolicy: {
64
64
  };
65
65
  export type actuators_servo_StartPolicy = (typeof actuators_servo_StartPolicy)[keyof typeof actuators_servo_StartPolicy];
66
66
  export declare const node_solenoid_Id: {
67
- readonly kFuelVent: 0;
68
- readonly kOxVent: 1;
69
- readonly kN2Fill: 2;
70
- readonly kOxBleed: 3;
71
- readonly kN2_200_Supply: 4;
72
- readonly kN2_200_Bleed: 5;
73
- readonly kN2_300_Supply: 6;
74
- readonly kN2_300_Bleed: 7;
75
- readonly kQD_1: 8;
76
- readonly kQD_2: 9;
77
- readonly kCount: 10;
67
+ readonly FuelVent: 0;
68
+ readonly OxVent: 1;
69
+ readonly N2Fill: 2;
70
+ readonly OxHoseBleed: 3;
71
+ readonly N2_300_Supply: 4;
72
+ readonly N2_300_Hose_Bleed: 5;
73
+ readonly QD_1: 6;
74
+ readonly QD_2: 7;
75
+ readonly Count: 8;
78
76
  };
79
77
  export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
80
78
  export declare const SolenoidCommands_OpeningType: {
@@ -88,8 +86,8 @@ export declare const ControlPolicyCommands_PolicyValue: {
88
86
  };
89
87
  export type ControlPolicyCommands_PolicyValue = (typeof ControlPolicyCommands_PolicyValue)[keyof typeof ControlPolicyCommands_PolicyValue];
90
88
  export declare const node_regulator_Id: {
91
- readonly kOxVent: 0;
92
- readonly kCount: 1;
89
+ readonly OxBoiloff: 0;
90
+ readonly Count: 1;
93
91
  };
94
92
  export type node_regulator_Id = (typeof node_regulator_Id)[keyof typeof node_regulator_Id];
95
93
  export declare const RegulatorCommands_RegulatorValue: {
@@ -171,9 +169,9 @@ export declare const spec: {
171
169
  }>;
172
170
  enums: {
173
171
  bldc_id: {
174
- readonly kFuel: 0;
175
- readonly kOx: 1;
176
- readonly kCount: 2;
172
+ readonly Fuel: 0;
173
+ readonly Ox: 1;
174
+ readonly Count: 2;
177
175
  };
178
176
  command: {
179
177
  readonly open: 0;
@@ -250,12 +248,12 @@ export declare const spec: {
250
248
  }>;
251
249
  enums: {
252
250
  servo_id: {
253
- readonly kMainFuel: 0;
254
- readonly kMainOx: 1;
255
- readonly kOxFill: 2;
256
- readonly kOxVent: 3;
257
- readonly kOxSupply: 4;
258
- readonly kCount: 5;
251
+ readonly MainFuel: 0;
252
+ readonly MainOx: 1;
253
+ readonly OxFill: 2;
254
+ readonly OxBoiloff: 3;
255
+ readonly OxSupply: 4;
256
+ readonly Count: 5;
259
257
  };
260
258
  open_close: {
261
259
  readonly Open: 0;
@@ -283,12 +281,12 @@ export declare const spec: {
283
281
  }>;
284
282
  enums: {
285
283
  servo_id: {
286
- readonly kMainFuel: 0;
287
- readonly kMainOx: 1;
288
- readonly kOxFill: 2;
289
- readonly kOxVent: 3;
290
- readonly kOxSupply: 4;
291
- readonly kCount: 5;
284
+ readonly MainFuel: 0;
285
+ readonly MainOx: 1;
286
+ readonly OxFill: 2;
287
+ readonly OxBoiloff: 3;
288
+ readonly OxSupply: 4;
289
+ readonly Count: 5;
292
290
  };
293
291
  position_mode: {
294
292
  readonly kAbsolute: 0;
@@ -308,17 +306,15 @@ export declare const spec: {
308
306
  }>;
309
307
  enums: {
310
308
  solenoid_id: {
311
- readonly kFuelVent: 0;
312
- readonly kOxVent: 1;
313
- readonly kN2Fill: 2;
314
- readonly kOxBleed: 3;
315
- readonly kN2_200_Supply: 4;
316
- readonly kN2_200_Bleed: 5;
317
- readonly kN2_300_Supply: 6;
318
- readonly kN2_300_Bleed: 7;
319
- readonly kQD_1: 8;
320
- readonly kQD_2: 9;
321
- readonly kCount: 10;
309
+ readonly FuelVent: 0;
310
+ readonly OxVent: 1;
311
+ readonly N2Fill: 2;
312
+ readonly OxHoseBleed: 3;
313
+ readonly N2_300_Supply: 4;
314
+ readonly N2_300_Hose_Bleed: 5;
315
+ readonly QD_1: 6;
316
+ readonly QD_2: 7;
317
+ readonly Count: 8;
322
318
  };
323
319
  opening_type: {
324
320
  readonly Open: 0;
@@ -346,8 +342,8 @@ export declare const spec: {
346
342
  }>;
347
343
  enums: {
348
344
  regulator_id: {
349
- readonly kOxVent: 0;
350
- readonly kCount: 1;
345
+ readonly OxBoiloff: 0;
346
+ readonly Count: 1;
351
347
  };
352
348
  value: {
353
349
  readonly Disable: 0;
@@ -363,8 +359,8 @@ export declare const spec: {
363
359
  }>;
364
360
  enums: {
365
361
  regulator_id: {
366
- readonly kOxVent: 0;
367
- readonly kCount: 1;
362
+ readonly OxBoiloff: 0;
363
+ readonly Count: 1;
368
364
  };
369
365
  };
370
366
  };
@@ -378,8 +374,8 @@ export declare const spec: {
378
374
  }>;
379
375
  enums: {
380
376
  regulator_id: {
381
- readonly kOxVent: 0;
382
- readonly kCount: 1;
377
+ readonly OxBoiloff: 0;
378
+ readonly Count: 1;
383
379
  };
384
380
  };
385
381
  };
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-03-23 21:33:27. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-26 12:35:28. 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;
@@ -61,9 +61,9 @@ const u64 = new UInt64Schema();
61
61
  const i64 = new Int64Schema();
62
62
  const f64 = new Float64Schema();
63
63
  export const node_bldc_Id = {
64
- kFuel: 0,
65
- kOx: 1,
66
- kCount: 2,
64
+ Fuel: 0,
65
+ Ox: 1,
66
+ Count: 2,
67
67
  };
68
68
  export const BldcCommands_SetBldcCommand = {
69
69
  open: 0,
@@ -97,12 +97,12 @@ export const Event = {
97
97
  Count: 8,
98
98
  };
99
99
  export const node_servo_Id = {
100
- kMainFuel: 0,
101
- kMainOx: 1,
102
- kOxFill: 2,
103
- kOxVent: 3,
104
- kOxSupply: 4,
105
- kCount: 5,
100
+ MainFuel: 0,
101
+ MainOx: 1,
102
+ OxFill: 2,
103
+ OxBoiloff: 3,
104
+ OxSupply: 4,
105
+ Count: 5,
106
106
  };
107
107
  export const ServoCommands_OpenClose = {
108
108
  Open: 0,
@@ -117,17 +117,15 @@ export const actuators_servo_StartPolicy = {
117
117
  kNoInterrupt: 1,
118
118
  };
119
119
  export const node_solenoid_Id = {
120
- kFuelVent: 0,
121
- kOxVent: 1,
122
- kN2Fill: 2,
123
- kOxBleed: 3,
124
- kN2_200_Supply: 4,
125
- kN2_200_Bleed: 5,
126
- kN2_300_Supply: 6,
127
- kN2_300_Bleed: 7,
128
- kQD_1: 8,
129
- kQD_2: 9,
130
- kCount: 10,
120
+ FuelVent: 0,
121
+ OxVent: 1,
122
+ N2Fill: 2,
123
+ OxHoseBleed: 3,
124
+ N2_300_Supply: 4,
125
+ N2_300_Hose_Bleed: 5,
126
+ QD_1: 6,
127
+ QD_2: 7,
128
+ Count: 8,
131
129
  };
132
130
  export const SolenoidCommands_OpeningType = {
133
131
  Open: 0,
@@ -138,8 +136,8 @@ export const ControlPolicyCommands_PolicyValue = {
138
136
  Enable: 1,
139
137
  };
140
138
  export const node_regulator_Id = {
141
- kOxVent: 0,
142
- kCount: 1,
139
+ OxBoiloff: 0,
140
+ Count: 1,
143
141
  };
144
142
  export const RegulatorCommands_RegulatorValue = {
145
143
  Disable: 0,
@@ -66,6 +66,45 @@ export declare const fsm_AbortReason: {
66
66
  readonly ChamberUnderpressure: 3;
67
67
  };
68
68
  export type fsm_AbortReason = (typeof fsm_AbortReason)[keyof typeof fsm_AbortReason];
69
+ export declare const node_pressure_sensor_Id: {
70
+ readonly N2Tank: 0;
71
+ readonly OxTank: 1;
72
+ readonly OxInjector: 2;
73
+ readonly FuelTank: 3;
74
+ readonly FuelInjector: 4;
75
+ readonly FuelInlet: 5;
76
+ readonly Chamber: 6;
77
+ readonly OxSupply: 7;
78
+ readonly N2_300: 8;
79
+ readonly Count: 9;
80
+ };
81
+ export type node_pressure_sensor_Id = (typeof node_pressure_sensor_Id)[keyof typeof node_pressure_sensor_Id];
82
+ export declare const node_servo_Id: {
83
+ readonly MainFuel: 0;
84
+ readonly MainOx: 1;
85
+ readonly OxFill: 2;
86
+ readonly OxBoiloff: 3;
87
+ readonly OxSupply: 4;
88
+ readonly Count: 5;
89
+ };
90
+ export type node_servo_Id = (typeof node_servo_Id)[keyof typeof node_servo_Id];
91
+ export declare const node_solenoid_Id: {
92
+ readonly FuelVent: 0;
93
+ readonly OxVent: 1;
94
+ readonly N2Fill: 2;
95
+ readonly OxHoseBleed: 3;
96
+ readonly N2_300_Supply: 4;
97
+ readonly N2_300_Hose_Bleed: 5;
98
+ readonly QD_1: 6;
99
+ readonly QD_2: 7;
100
+ readonly Count: 8;
101
+ };
102
+ export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
103
+ export declare const node_regulator_Id: {
104
+ readonly OxBoiloff: 0;
105
+ readonly Count: 1;
106
+ };
107
+ export type node_regulator_Id = (typeof node_regulator_Id)[keyof typeof node_regulator_Id];
69
108
  export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
70
109
  commanded_angle_deg: import("typed-binary").Float32Schema;
71
110
  target_angle_deg: import("typed-binary").Float32Schema;
@@ -100,6 +139,70 @@ export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
100
139
  message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
101
140
  }>;
102
141
  export type HeartBeatTelemetry = bin.Parsed<typeof HeartBeatTelemetry>;
142
+ export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
143
+ state_entry_time_ms: UInt64Schema;
144
+ state_time_ms: UInt64Schema;
145
+ current_state: import("typed-binary").ByteSchema;
146
+ previous_state: import("typed-binary").ByteSchema;
147
+ last_event: import("typed-binary").ByteSchema;
148
+ last_abort_reason: import("typed-binary").ByteSchema;
149
+ }>;
150
+ export type fsm_FsmStatus = bin.Parsed<typeof fsm_FsmStatus>;
151
+ export declare const FsmStatusPacket: import("typed-binary").ObjectSchema<{
152
+ status: import("typed-binary").ObjectSchema<{
153
+ state_entry_time_ms: UInt64Schema;
154
+ state_time_ms: UInt64Schema;
155
+ current_state: import("typed-binary").ByteSchema;
156
+ previous_state: import("typed-binary").ByteSchema;
157
+ last_event: import("typed-binary").ByteSchema;
158
+ last_abort_reason: import("typed-binary").ByteSchema;
159
+ }>;
160
+ timestamp_ms: import("typed-binary").Uint32Schema;
161
+ }>;
162
+ export type FsmStatusPacket = bin.Parsed<typeof FsmStatusPacket>;
163
+ export declare const sensors_pressure_PressureBatch: import("typed-binary").ObjectSchema<{
164
+ t0_ms: import("typed-binary").Uint32Schema;
165
+ dt_us: import("typed-binary").Uint16Schema;
166
+ count: import("typed-binary").ByteSchema;
167
+ seq: import("typed-binary").ByteSchema;
168
+ overrun: import("typed-binary").BoolSchema;
169
+ samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
170
+ }>;
171
+ export type sensors_pressure_PressureBatch = bin.Parsed<typeof sensors_pressure_PressureBatch>;
172
+ export declare const PressureSensorPacket: import("typed-binary").ObjectSchema<{
173
+ sensor_id: import("typed-binary").ByteSchema;
174
+ data: import("typed-binary").ObjectSchema<{
175
+ t0_ms: import("typed-binary").Uint32Schema;
176
+ dt_us: import("typed-binary").Uint16Schema;
177
+ count: import("typed-binary").ByteSchema;
178
+ seq: import("typed-binary").ByteSchema;
179
+ overrun: import("typed-binary").BoolSchema;
180
+ samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
181
+ }>;
182
+ }>;
183
+ export type PressureSensorPacket = bin.Parsed<typeof PressureSensorPacket>;
184
+ export declare const ServoStatusPacket: import("typed-binary").ObjectSchema<{
185
+ id: import("typed-binary").ByteSchema;
186
+ timestamp_ms: import("typed-binary").Uint32Schema;
187
+ status: import("typed-binary").ObjectSchema<{
188
+ commanded_angle_deg: import("typed-binary").Float32Schema;
189
+ target_angle_deg: import("typed-binary").Float32Schema;
190
+ measured_angle_deg: import("typed-binary").Float32Schema;
191
+ current_ma: import("typed-binary").Float32Schema;
192
+ mode: import("typed-binary").ByteSchema;
193
+ power_state: import("typed-binary").ByteSchema;
194
+ }>;
195
+ }>;
196
+ export type ServoStatusPacket = bin.Parsed<typeof ServoStatusPacket>;
197
+ export declare const SolenoidStatusPacket: import("typed-binary").ObjectSchema<{
198
+ id: import("typed-binary").ByteSchema;
199
+ timestamp_ms: import("typed-binary").Uint32Schema;
200
+ status: import("typed-binary").ObjectSchema<{
201
+ power_state: import("typed-binary").ByteSchema;
202
+ opening: import("typed-binary").ByteSchema;
203
+ }>;
204
+ }>;
205
+ export type SolenoidStatusPacket = bin.Parsed<typeof SolenoidStatusPacket>;
103
206
  export declare const regulators_RegulatorStatus: import("typed-binary").ObjectSchema<{
104
207
  operator_enabled: import("typed-binary").BoolSchema;
105
208
  policy_enabled: import("typed-binary").BoolSchema;
@@ -116,9 +219,9 @@ export declare const regulators_RegulatorStatus: import("typed-binary").ObjectSc
116
219
  last_update_ms: import("typed-binary").Uint32Schema;
117
220
  }>;
118
221
  export type regulators_RegulatorStatus = bin.Parsed<typeof regulators_RegulatorStatus>;
119
- export declare const RegulatorStatusEntry: import("typed-binary").ObjectSchema<{
222
+ export declare const RegulatorStatusPacket: import("typed-binary").ObjectSchema<{
120
223
  id: import("typed-binary").ByteSchema;
121
- name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
224
+ timestamp_ms: import("typed-binary").Uint32Schema;
122
225
  status: import("typed-binary").ObjectSchema<{
123
226
  operator_enabled: import("typed-binary").BoolSchema;
124
227
  policy_enabled: import("typed-binary").BoolSchema;
@@ -135,61 +238,7 @@ export declare const RegulatorStatusEntry: import("typed-binary").ObjectSchema<{
135
238
  last_update_ms: import("typed-binary").Uint32Schema;
136
239
  }>;
137
240
  }>;
138
- export type RegulatorStatusEntry = bin.Parsed<typeof RegulatorStatusEntry>;
139
- export declare const RegulatorStatusArrayPacket: import("typed-binary").ObjectSchema<{
140
- count: import("typed-binary").ByteSchema;
141
- timestamp_ms: import("typed-binary").Uint32Schema;
142
- entries: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
143
- id: import("typed-binary").ByteSchema;
144
- name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
145
- status: import("typed-binary").ObjectSchema<{
146
- operator_enabled: import("typed-binary").BoolSchema;
147
- policy_enabled: import("typed-binary").BoolSchema;
148
- active: import("typed-binary").BoolSchema;
149
- setpoint: import("typed-binary").Float32Schema;
150
- kp: import("typed-binary").Float32Schema;
151
- ki: import("typed-binary").Float32Schema;
152
- kd: import("typed-binary").Float32Schema;
153
- integral: import("typed-binary").Float32Schema;
154
- previous_error: import("typed-binary").Float32Schema;
155
- last_measurement: import("typed-binary").Float32Schema;
156
- last_output: import("typed-binary").Float32Schema;
157
- last_servo_command_: import("typed-binary").Float32Schema;
158
- last_update_ms: import("typed-binary").Uint32Schema;
159
- }>;
160
- }>>;
161
- }>;
162
- export type RegulatorStatusArrayPacket = bin.Parsed<typeof RegulatorStatusArrayPacket>;
163
- export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
164
- state_entry_time_ms: UInt64Schema;
165
- state_time_ms: UInt64Schema;
166
- current_state: import("typed-binary").ByteSchema;
167
- previous_state: import("typed-binary").ByteSchema;
168
- last_event: import("typed-binary").ByteSchema;
169
- last_abort_reason: import("typed-binary").ByteSchema;
170
- }>;
171
- export type fsm_FsmStatus = bin.Parsed<typeof fsm_FsmStatus>;
172
- export declare const sensors_pressure_PressureBatch: import("typed-binary").ObjectSchema<{
173
- t0_ms: import("typed-binary").Uint32Schema;
174
- dt_us: import("typed-binary").Uint16Schema;
175
- count: import("typed-binary").ByteSchema;
176
- seq: import("typed-binary").ByteSchema;
177
- overrun: import("typed-binary").BoolSchema;
178
- samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
179
- }>;
180
- export type sensors_pressure_PressureBatch = bin.Parsed<typeof sensors_pressure_PressureBatch>;
181
- export declare const PressureSensorData: import("typed-binary").ObjectSchema<{
182
- sensor_id: import("typed-binary").ByteSchema;
183
- data: import("typed-binary").ObjectSchema<{
184
- t0_ms: import("typed-binary").Uint32Schema;
185
- dt_us: import("typed-binary").Uint16Schema;
186
- count: import("typed-binary").ByteSchema;
187
- seq: import("typed-binary").ByteSchema;
188
- overrun: import("typed-binary").BoolSchema;
189
- samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
190
- }>;
191
- }>;
192
- export type PressureSensorData = bin.Parsed<typeof PressureSensorData>;
241
+ export type RegulatorStatusPacket = bin.Parsed<typeof RegulatorStatusPacket>;
193
242
  export declare const spec: {
194
243
  actuators_servo_ServoStatus: {
195
244
  port: number;
@@ -254,101 +303,80 @@ export declare const spec: {
254
303
  };
255
304
  };
256
305
  HeartBeatTelemetry: {
306
+ port: number;
257
307
  schema: import("typed-binary").ObjectSchema<{
258
308
  message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
259
309
  }>;
260
310
  enums: {};
261
311
  };
262
- RegulatorStatusArrayPacket: {
312
+ FsmStatusPacket: {
263
313
  port: number;
264
314
  schema: import("typed-binary").ObjectSchema<{
265
- count: import("typed-binary").ByteSchema;
315
+ status: import("typed-binary").ObjectSchema<{
316
+ state_entry_time_ms: UInt64Schema;
317
+ state_time_ms: UInt64Schema;
318
+ current_state: import("typed-binary").ByteSchema;
319
+ previous_state: import("typed-binary").ByteSchema;
320
+ last_event: import("typed-binary").ByteSchema;
321
+ last_abort_reason: import("typed-binary").ByteSchema;
322
+ }>;
266
323
  timestamp_ms: import("typed-binary").Uint32Schema;
267
- entries: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
268
- id: import("typed-binary").ByteSchema;
269
- name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
270
- status: import("typed-binary").ObjectSchema<{
271
- operator_enabled: import("typed-binary").BoolSchema;
272
- policy_enabled: import("typed-binary").BoolSchema;
273
- active: import("typed-binary").BoolSchema;
274
- setpoint: import("typed-binary").Float32Schema;
275
- kp: import("typed-binary").Float32Schema;
276
- ki: import("typed-binary").Float32Schema;
277
- kd: import("typed-binary").Float32Schema;
278
- integral: import("typed-binary").Float32Schema;
279
- previous_error: import("typed-binary").Float32Schema;
280
- last_measurement: import("typed-binary").Float32Schema;
281
- last_output: import("typed-binary").Float32Schema;
282
- last_servo_command_: import("typed-binary").Float32Schema;
283
- last_update_ms: import("typed-binary").Uint32Schema;
284
- }>;
285
- }>>;
286
- }>;
287
- enums: {};
288
- };
289
- fsm_FsmStatus: {
290
- port: number;
291
- schema: import("typed-binary").ObjectSchema<{
292
- state_entry_time_ms: UInt64Schema;
293
- state_time_ms: UInt64Schema;
294
- current_state: import("typed-binary").ByteSchema;
295
- previous_state: import("typed-binary").ByteSchema;
296
- last_event: import("typed-binary").ByteSchema;
297
- last_abort_reason: import("typed-binary").ByteSchema;
298
324
  }>;
299
325
  enums: {
300
- current_state: {
301
- readonly Safe: 0;
302
- readonly N2Fill: 1;
303
- readonly PostN2Fill: 2;
304
- readonly OxFill: 3;
305
- readonly PostOxFill: 4;
306
- readonly Prechill: 5;
307
- readonly PostPrechill: 6;
308
- readonly QDDisconnect: 7;
309
- readonly Pressurized: 8;
310
- readonly Armed: 9;
311
- readonly Burn: 10;
312
- readonly Shutdown: 11;
313
- readonly PostShutdown: 12;
314
- readonly Calibrate: 13;
315
- };
316
- previous_state: {
317
- readonly Safe: 0;
318
- readonly N2Fill: 1;
319
- readonly PostN2Fill: 2;
320
- readonly OxFill: 3;
321
- readonly PostOxFill: 4;
322
- readonly Prechill: 5;
323
- readonly PostPrechill: 6;
324
- readonly QDDisconnect: 7;
325
- readonly Pressurized: 8;
326
- readonly Armed: 9;
327
- readonly Burn: 10;
328
- readonly Shutdown: 11;
329
- readonly PostShutdown: 12;
330
- readonly Calibrate: 13;
331
- };
332
- last_event: {
333
- readonly Boot: 0;
334
- readonly NextState: 1;
335
- readonly PreviousState: 2;
336
- readonly Timeout: 3;
337
- readonly CalibrateRequest: 4;
338
- readonly BurnwireCut: 5;
339
- readonly Abort: 6;
340
- readonly None: 7;
341
- readonly Count: 8;
342
- };
343
- last_abort_reason: {
344
- readonly None: 0;
345
- readonly FuelTankOverpressure: 1;
346
- readonly OxTankOverpressure: 2;
347
- readonly ChamberUnderpressure: 3;
326
+ status: {
327
+ current_state: {
328
+ readonly Safe: 0;
329
+ readonly N2Fill: 1;
330
+ readonly PostN2Fill: 2;
331
+ readonly OxFill: 3;
332
+ readonly PostOxFill: 4;
333
+ readonly Prechill: 5;
334
+ readonly PostPrechill: 6;
335
+ readonly QDDisconnect: 7;
336
+ readonly Pressurized: 8;
337
+ readonly Armed: 9;
338
+ readonly Burn: 10;
339
+ readonly Shutdown: 11;
340
+ readonly PostShutdown: 12;
341
+ readonly Calibrate: 13;
342
+ };
343
+ previous_state: {
344
+ readonly Safe: 0;
345
+ readonly N2Fill: 1;
346
+ readonly PostN2Fill: 2;
347
+ readonly OxFill: 3;
348
+ readonly PostOxFill: 4;
349
+ readonly Prechill: 5;
350
+ readonly PostPrechill: 6;
351
+ readonly QDDisconnect: 7;
352
+ readonly Pressurized: 8;
353
+ readonly Armed: 9;
354
+ readonly Burn: 10;
355
+ readonly Shutdown: 11;
356
+ readonly PostShutdown: 12;
357
+ readonly Calibrate: 13;
358
+ };
359
+ last_event: {
360
+ readonly Boot: 0;
361
+ readonly NextState: 1;
362
+ readonly PreviousState: 2;
363
+ readonly Timeout: 3;
364
+ readonly CalibrateRequest: 4;
365
+ readonly BurnwireCut: 5;
366
+ readonly Abort: 6;
367
+ readonly None: 7;
368
+ readonly Count: 8;
369
+ };
370
+ last_abort_reason: {
371
+ readonly None: 0;
372
+ readonly FuelTankOverpressure: 1;
373
+ readonly OxTankOverpressure: 2;
374
+ readonly ChamberUnderpressure: 3;
375
+ };
348
376
  };
349
377
  };
350
378
  };
351
- PressureSensorData: {
379
+ PressureSensorPacket: {
352
380
  port: number;
353
381
  schema: import("typed-binary").ObjectSchema<{
354
382
  sensor_id: import("typed-binary").ByteSchema;
@@ -362,9 +390,124 @@ export declare const spec: {
362
390
  }>;
363
391
  }>;
364
392
  enums: {
393
+ sensor_id: {
394
+ readonly N2Tank: 0;
395
+ readonly OxTank: 1;
396
+ readonly OxInjector: 2;
397
+ readonly FuelTank: 3;
398
+ readonly FuelInjector: 4;
399
+ readonly FuelInlet: 5;
400
+ readonly Chamber: 6;
401
+ readonly OxSupply: 7;
402
+ readonly N2_300: 8;
403
+ readonly Count: 9;
404
+ };
365
405
  data: {};
366
406
  };
367
407
  };
408
+ ServoStatusPacket: {
409
+ port: number;
410
+ schema: import("typed-binary").ObjectSchema<{
411
+ id: import("typed-binary").ByteSchema;
412
+ timestamp_ms: import("typed-binary").Uint32Schema;
413
+ status: import("typed-binary").ObjectSchema<{
414
+ commanded_angle_deg: import("typed-binary").Float32Schema;
415
+ target_angle_deg: import("typed-binary").Float32Schema;
416
+ measured_angle_deg: import("typed-binary").Float32Schema;
417
+ current_ma: import("typed-binary").Float32Schema;
418
+ mode: import("typed-binary").ByteSchema;
419
+ power_state: import("typed-binary").ByteSchema;
420
+ }>;
421
+ }>;
422
+ enums: {
423
+ id: {
424
+ readonly MainFuel: 0;
425
+ readonly MainOx: 1;
426
+ readonly OxFill: 2;
427
+ readonly OxBoiloff: 3;
428
+ readonly OxSupply: 4;
429
+ readonly Count: 5;
430
+ };
431
+ status: {
432
+ mode: {
433
+ readonly kUnknown: 0;
434
+ readonly kPosition: 1;
435
+ readonly kCalibrate: 2;
436
+ };
437
+ power_state: {
438
+ readonly kUnknown: 0;
439
+ readonly kOff: 1;
440
+ readonly kBooting: 2;
441
+ readonly kOn: 3;
442
+ };
443
+ };
444
+ };
445
+ };
446
+ SolenoidStatusPacket: {
447
+ port: number;
448
+ schema: import("typed-binary").ObjectSchema<{
449
+ id: import("typed-binary").ByteSchema;
450
+ timestamp_ms: import("typed-binary").Uint32Schema;
451
+ status: import("typed-binary").ObjectSchema<{
452
+ power_state: import("typed-binary").ByteSchema;
453
+ opening: import("typed-binary").ByteSchema;
454
+ }>;
455
+ }>;
456
+ enums: {
457
+ id: {
458
+ readonly FuelVent: 0;
459
+ readonly OxVent: 1;
460
+ readonly N2Fill: 2;
461
+ readonly OxHoseBleed: 3;
462
+ readonly N2_300_Supply: 4;
463
+ readonly N2_300_Hose_Bleed: 5;
464
+ readonly QD_1: 6;
465
+ readonly QD_2: 7;
466
+ readonly Count: 8;
467
+ };
468
+ status: {
469
+ power_state: {
470
+ readonly kUnknown: 0;
471
+ readonly kOff: 1;
472
+ readonly kOn: 2;
473
+ };
474
+ opening: {
475
+ readonly kUnknown: 0;
476
+ readonly kClosed: 1;
477
+ readonly kOpen: 2;
478
+ };
479
+ };
480
+ };
481
+ };
482
+ RegulatorStatusPacket: {
483
+ port: number;
484
+ schema: import("typed-binary").ObjectSchema<{
485
+ id: import("typed-binary").ByteSchema;
486
+ timestamp_ms: import("typed-binary").Uint32Schema;
487
+ status: import("typed-binary").ObjectSchema<{
488
+ operator_enabled: import("typed-binary").BoolSchema;
489
+ policy_enabled: import("typed-binary").BoolSchema;
490
+ active: import("typed-binary").BoolSchema;
491
+ setpoint: import("typed-binary").Float32Schema;
492
+ kp: import("typed-binary").Float32Schema;
493
+ ki: import("typed-binary").Float32Schema;
494
+ kd: import("typed-binary").Float32Schema;
495
+ integral: import("typed-binary").Float32Schema;
496
+ previous_error: import("typed-binary").Float32Schema;
497
+ last_measurement: import("typed-binary").Float32Schema;
498
+ last_output: import("typed-binary").Float32Schema;
499
+ last_servo_command_: import("typed-binary").Float32Schema;
500
+ last_update_ms: import("typed-binary").Uint32Schema;
501
+ }>;
502
+ }>;
503
+ enums: {
504
+ id: {
505
+ readonly OxBoiloff: 0;
506
+ readonly Count: 1;
507
+ };
508
+ status: {};
509
+ };
510
+ };
368
511
  };
369
512
  export default spec;
370
513
  export type Spec = typeof spec;
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-03-23 21:33:45. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-26 12:35:26. 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;
@@ -114,6 +114,41 @@ export const fsm_AbortReason = {
114
114
  OxTankOverpressure: 2,
115
115
  ChamberUnderpressure: 3,
116
116
  };
117
+ export const node_pressure_sensor_Id = {
118
+ N2Tank: 0,
119
+ OxTank: 1,
120
+ OxInjector: 2,
121
+ FuelTank: 3,
122
+ FuelInjector: 4,
123
+ FuelInlet: 5,
124
+ Chamber: 6,
125
+ OxSupply: 7,
126
+ N2_300: 8,
127
+ Count: 9,
128
+ };
129
+ export const node_servo_Id = {
130
+ MainFuel: 0,
131
+ MainOx: 1,
132
+ OxFill: 2,
133
+ OxBoiloff: 3,
134
+ OxSupply: 4,
135
+ Count: 5,
136
+ };
137
+ export const node_solenoid_Id = {
138
+ FuelVent: 0,
139
+ OxVent: 1,
140
+ N2Fill: 2,
141
+ OxHoseBleed: 3,
142
+ N2_300_Supply: 4,
143
+ N2_300_Hose_Bleed: 5,
144
+ QD_1: 6,
145
+ QD_2: 7,
146
+ Count: 8,
147
+ };
148
+ export const node_regulator_Id = {
149
+ OxBoiloff: 0,
150
+ Count: 1,
151
+ };
117
152
  export const actuators_servo_ServoStatus = bin.object({
118
153
  commanded_angle_deg: bin.f32, // float
119
154
  target_angle_deg: bin.f32, // float
@@ -144,31 +179,6 @@ export const actuators_solenoid_SolenoidStatus = bin.object({
144
179
  export const HeartBeatTelemetry = bin.object({
145
180
  message: bin.arrayOf(bin.i8, 16), // char[16]
146
181
  });
147
- export const regulators_RegulatorStatus = bin.object({
148
- operator_enabled: bin.bool, // bool
149
- policy_enabled: bin.bool, // bool
150
- active: bin.bool, // bool
151
- setpoint: bin.f32, // float
152
- kp: bin.f32, // float
153
- ki: bin.f32, // float
154
- kd: bin.f32, // float
155
- integral: bin.f32, // float
156
- previous_error: bin.f32, // float
157
- last_measurement: bin.f32, // float
158
- last_output: bin.f32, // float
159
- last_servo_command_: bin.f32, // float
160
- last_update_ms: bin.u32, // unsigned int
161
- });
162
- export const RegulatorStatusEntry = bin.object({
163
- id: bin.u8, // node::regulator::Id
164
- name: bin.arrayOf(bin.i8, 24), // char[24]
165
- status: regulators_RegulatorStatus, // regulators::RegulatorStatus
166
- });
167
- export const RegulatorStatusArrayPacket = bin.object({
168
- count: bin.u8, // unsigned char
169
- timestamp_ms: bin.u32, // unsigned int
170
- entries: bin.arrayOf(RegulatorStatusEntry, 1), // RegulatorStatusEntry[1]
171
- });
172
182
  export const fsm_FsmStatus = bin.object({
173
183
  state_entry_time_ms: u64, // unsigned long long
174
184
  state_time_ms: u64, // unsigned long long
@@ -177,6 +187,10 @@ export const fsm_FsmStatus = bin.object({
177
187
  last_event: bin.u8, // Event
178
188
  last_abort_reason: bin.u8, // fsm::AbortReason
179
189
  });
190
+ export const FsmStatusPacket = bin.object({
191
+ status: fsm_FsmStatus, // fsm::FsmStatus
192
+ timestamp_ms: bin.u32, // unsigned int
193
+ });
180
194
  export const sensors_pressure_PressureBatch = bin.object({
181
195
  t0_ms: bin.u32, // unsigned int
182
196
  dt_us: bin.u16, // unsigned short
@@ -185,10 +199,40 @@ export const sensors_pressure_PressureBatch = bin.object({
185
199
  overrun: bin.bool, // bool
186
200
  samples: bin.arrayOf(bin.i16, 10), // short[10]
187
201
  });
188
- export const PressureSensorData = bin.object({
189
- sensor_id: bin.u8, // unsigned char
202
+ export const PressureSensorPacket = bin.object({
203
+ sensor_id: bin.u8, // node::pressure_sensor::Id
190
204
  data: sensors_pressure_PressureBatch, // sensors::pressure::PressureBatch
191
205
  });
206
+ export const ServoStatusPacket = bin.object({
207
+ id: bin.u8, // node::servo::Id
208
+ timestamp_ms: bin.u32, // unsigned int
209
+ status: actuators_servo_ServoStatus, // actuators::servo::ServoStatus
210
+ });
211
+ export const SolenoidStatusPacket = bin.object({
212
+ id: bin.u8, // node::solenoid::Id
213
+ timestamp_ms: bin.u32, // unsigned int
214
+ status: actuators_solenoid_SolenoidStatus, // actuators::solenoid::SolenoidStatus
215
+ });
216
+ export const regulators_RegulatorStatus = bin.object({
217
+ operator_enabled: bin.bool, // bool
218
+ policy_enabled: bin.bool, // bool
219
+ active: bin.bool, // bool
220
+ setpoint: bin.f32, // float
221
+ kp: bin.f32, // float
222
+ ki: bin.f32, // float
223
+ kd: bin.f32, // float
224
+ integral: bin.f32, // float
225
+ previous_error: bin.f32, // float
226
+ last_measurement: bin.f32, // float
227
+ last_output: bin.f32, // float
228
+ last_servo_command_: bin.f32, // float
229
+ last_update_ms: bin.u32, // unsigned int
230
+ });
231
+ export const RegulatorStatusPacket = bin.object({
232
+ id: bin.u8, // node::regulator::Id
233
+ timestamp_ms: bin.u32, // unsigned int
234
+ status: regulators_RegulatorStatus, // regulators::RegulatorStatus
235
+ });
192
236
  export const spec = {
193
237
  actuators_servo_ServoStatus: {
194
238
  port: 5003,
@@ -212,30 +256,59 @@ export const spec = {
212
256
  },
213
257
  },
214
258
  HeartBeatTelemetry: {
259
+ port: 57005,
215
260
  schema: HeartBeatTelemetry,
216
261
  enums: {},
217
262
  },
218
- RegulatorStatusArrayPacket: {
219
- port: 5005,
220
- schema: RegulatorStatusArrayPacket,
221
- enums: {},
222
- },
223
- fsm_FsmStatus: {
263
+ FsmStatusPacket: {
224
264
  port: 5001,
225
- schema: fsm_FsmStatus,
265
+ schema: FsmStatusPacket,
226
266
  enums: {
227
- current_state: StateId,
228
- previous_state: StateId,
229
- last_event: Event,
230
- last_abort_reason: fsm_AbortReason,
267
+ status: {
268
+ current_state: StateId,
269
+ previous_state: StateId,
270
+ last_event: Event,
271
+ last_abort_reason: fsm_AbortReason,
272
+ },
231
273
  },
232
274
  },
233
- PressureSensorData: {
275
+ PressureSensorPacket: {
234
276
  port: 5002,
235
- schema: PressureSensorData,
277
+ schema: PressureSensorPacket,
236
278
  enums: {
279
+ sensor_id: node_pressure_sensor_Id,
237
280
  data: {},
238
281
  },
239
282
  },
283
+ ServoStatusPacket: {
284
+ port: 5003,
285
+ schema: ServoStatusPacket,
286
+ enums: {
287
+ id: node_servo_Id,
288
+ status: {
289
+ mode: actuators_servo_ServoMode,
290
+ power_state: actuators_servo_PowerState,
291
+ },
292
+ },
293
+ },
294
+ SolenoidStatusPacket: {
295
+ port: 5004,
296
+ schema: SolenoidStatusPacket,
297
+ enums: {
298
+ id: node_solenoid_Id,
299
+ status: {
300
+ power_state: actuators_solenoid_PowerState,
301
+ opening: actuators_solenoid_Opening,
302
+ },
303
+ },
304
+ },
305
+ RegulatorStatusPacket: {
306
+ port: 5005,
307
+ schema: RegulatorStatusPacket,
308
+ enums: {
309
+ id: node_regulator_Id,
310
+ status: {},
311
+ },
312
+ },
240
313
  };
241
314
  export default spec;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",