fossekall-interface 0.1.24 → 0.1.25

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.
@@ -10,6 +10,23 @@ export declare const BldcCommands_SetBldcCommand: {
10
10
  readonly close: 1;
11
11
  };
12
12
  export type BldcCommands_SetBldcCommand = (typeof BldcCommands_SetBldcCommand)[keyof typeof BldcCommands_SetBldcCommand];
13
+ export declare const StateId: {
14
+ readonly Safe: 0;
15
+ readonly N2Fill: 1;
16
+ readonly PostN2Fill: 2;
17
+ readonly OxFill: 3;
18
+ readonly PostOxFill: 4;
19
+ readonly Prechill: 5;
20
+ readonly PostPrechill: 6;
21
+ readonly QDDisconnect: 7;
22
+ readonly Pressurized: 8;
23
+ readonly Armed: 9;
24
+ readonly Burn: 10;
25
+ readonly Shutdown: 11;
26
+ readonly PostShutdown: 12;
27
+ readonly Calibrate: 13;
28
+ };
29
+ export type StateId = (typeof StateId)[keyof typeof StateId];
13
30
  export declare const Event: {
14
31
  readonly Boot: 0;
15
32
  readonly NextState: 1;
@@ -22,28 +39,11 @@ export declare const Event: {
22
39
  readonly Count: 8;
23
40
  };
24
41
  export type Event = (typeof Event)[keyof typeof Event];
25
- export declare const StateId: {
26
- readonly Safe: 0;
27
- readonly FuelFill: 1;
28
- readonly PostFuelFill: 2;
29
- readonly N2Fill: 3;
30
- readonly PostN2Fill: 4;
31
- readonly OxFill: 5;
32
- readonly PostOxFill: 6;
33
- readonly Pressurized: 7;
34
- readonly Armed: 8;
35
- readonly Burn: 9;
36
- readonly Shutdown: 10;
37
- readonly PostBurn: 11;
38
- readonly Depressurize: 12;
39
- readonly Calibrate: 13;
40
- };
41
- export type StateId = (typeof StateId)[keyof typeof StateId];
42
42
  export declare const node_servo_Id: {
43
43
  readonly kMainFuel: 0;
44
44
  readonly kMainOx: 1;
45
45
  readonly kOxFill: 2;
46
- readonly kOxPrechill: 3;
46
+ readonly kOxVent: 3;
47
47
  readonly kOxSupply: 4;
48
48
  readonly kCount: 5;
49
49
  };
@@ -77,18 +77,18 @@ export declare const node_solenoid_Id: {
77
77
  readonly kCount: 10;
78
78
  };
79
79
  export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
80
- export declare const SolenoidCommands_SetSolenoidCommand: {
81
- readonly open: 0;
82
- readonly close: 1;
80
+ export declare const SolenoidCommands_OpeningType: {
81
+ readonly Open: 0;
82
+ readonly Close: 1;
83
83
  };
84
- export type SolenoidCommands_SetSolenoidCommand = (typeof SolenoidCommands_SetSolenoidCommand)[keyof typeof SolenoidCommands_SetSolenoidCommand];
84
+ export type SolenoidCommands_OpeningType = (typeof SolenoidCommands_OpeningType)[keyof typeof SolenoidCommands_OpeningType];
85
85
  export declare const ControlPolicyCommands_PolicyValue: {
86
86
  readonly Disable: 0;
87
87
  readonly Enable: 1;
88
88
  };
89
89
  export type ControlPolicyCommands_PolicyValue = (typeof ControlPolicyCommands_PolicyValue)[keyof typeof ControlPolicyCommands_PolicyValue];
90
90
  export declare const node_regulator_Id: {
91
- readonly kOxPrechill: 0;
91
+ readonly kOxVent: 0;
92
92
  readonly kCount: 1;
93
93
  };
94
94
  export type node_regulator_Id = (typeof node_regulator_Id)[keyof typeof node_regulator_Id];
@@ -102,9 +102,20 @@ export declare const BldcCommands_SetBldcPayload: import("typed-binary").ObjectS
102
102
  command: import("typed-binary").Uint32Schema;
103
103
  }>;
104
104
  export type BldcCommands_SetBldcPayload = bin.Parsed<typeof BldcCommands_SetBldcPayload>;
105
+ export declare const FsmCommands_NextStatePayload: import("typed-binary").ObjectSchema<{
106
+ current_state: import("typed-binary").ByteSchema;
107
+ }>;
108
+ export type FsmCommands_NextStatePayload = bin.Parsed<typeof FsmCommands_NextStatePayload>;
109
+ export declare const FsmCommands_AbortPayload: import("typed-binary").ObjectSchema<{
110
+ reserved: import("typed-binary").ByteSchema;
111
+ }>;
112
+ export type FsmCommands_AbortPayload = bin.Parsed<typeof FsmCommands_AbortPayload>;
113
+ export declare const FsmCommands_StatusPayload: import("typed-binary").ObjectSchema<{
114
+ reserved: import("typed-binary").ByteSchema;
115
+ }>;
116
+ export type FsmCommands_StatusPayload = bin.Parsed<typeof FsmCommands_StatusPayload>;
105
117
  export declare const FsmCommands_RaiseEventPayload: import("typed-binary").ObjectSchema<{
106
118
  event: import("typed-binary").ByteSchema;
107
- current_state: import("typed-binary").ByteSchema;
108
119
  }>;
109
120
  export type FsmCommands_RaiseEventPayload = bin.Parsed<typeof FsmCommands_RaiseEventPayload>;
110
121
  export declare const ServoCommands_OpenCloseServoPayload: import("typed-binary").ObjectSchema<{
@@ -125,11 +136,11 @@ export declare const ServoCommands_SetServoPayload: import("typed-binary").Objec
125
136
  start_policy: import("typed-binary").ByteSchema;
126
137
  }>;
127
138
  export type ServoCommands_SetServoPayload = bin.Parsed<typeof ServoCommands_SetServoPayload>;
128
- export declare const SolenoidCommands_SetSolenoidPayload: import("typed-binary").ObjectSchema<{
139
+ export declare const SolenoidCommands_OpenCloseSolenoidPayload: import("typed-binary").ObjectSchema<{
129
140
  solenoid_id: import("typed-binary").ByteSchema;
130
- command: import("typed-binary").Uint32Schema;
141
+ opening_type: import("typed-binary").ByteSchema;
131
142
  }>;
132
- export type SolenoidCommands_SetSolenoidPayload = bin.Parsed<typeof SolenoidCommands_SetSolenoidPayload>;
143
+ export type SolenoidCommands_OpenCloseSolenoidPayload = bin.Parsed<typeof SolenoidCommands_OpenCloseSolenoidPayload>;
133
144
  export declare const ControlPolicyCommands_SetManualPolicyPayload: import("typed-binary").ObjectSchema<{
134
145
  value: import("typed-binary").ByteSchema;
135
146
  }>;
@@ -170,11 +181,48 @@ export declare const spec: {
170
181
  };
171
182
  };
172
183
  };
184
+ FsmCommands_NextStatePayload: {
185
+ id: number;
186
+ schema: import("typed-binary").ObjectSchema<{
187
+ current_state: import("typed-binary").ByteSchema;
188
+ }>;
189
+ enums: {
190
+ current_state: {
191
+ readonly Safe: 0;
192
+ readonly N2Fill: 1;
193
+ readonly PostN2Fill: 2;
194
+ readonly OxFill: 3;
195
+ readonly PostOxFill: 4;
196
+ readonly Prechill: 5;
197
+ readonly PostPrechill: 6;
198
+ readonly QDDisconnect: 7;
199
+ readonly Pressurized: 8;
200
+ readonly Armed: 9;
201
+ readonly Burn: 10;
202
+ readonly Shutdown: 11;
203
+ readonly PostShutdown: 12;
204
+ readonly Calibrate: 13;
205
+ };
206
+ };
207
+ };
208
+ FsmCommands_AbortPayload: {
209
+ id: number;
210
+ schema: import("typed-binary").ObjectSchema<{
211
+ reserved: import("typed-binary").ByteSchema;
212
+ }>;
213
+ enums: {};
214
+ };
215
+ FsmCommands_StatusPayload: {
216
+ id: number;
217
+ schema: import("typed-binary").ObjectSchema<{
218
+ reserved: import("typed-binary").ByteSchema;
219
+ }>;
220
+ enums: {};
221
+ };
173
222
  FsmCommands_RaiseEventPayload: {
174
223
  id: number;
175
224
  schema: import("typed-binary").ObjectSchema<{
176
225
  event: import("typed-binary").ByteSchema;
177
- current_state: import("typed-binary").ByteSchema;
178
226
  }>;
179
227
  enums: {
180
228
  event: {
@@ -188,22 +236,6 @@ export declare const spec: {
188
236
  readonly None: 7;
189
237
  readonly Count: 8;
190
238
  };
191
- current_state: {
192
- readonly Safe: 0;
193
- readonly FuelFill: 1;
194
- readonly PostFuelFill: 2;
195
- readonly N2Fill: 3;
196
- readonly PostN2Fill: 4;
197
- readonly OxFill: 5;
198
- readonly PostOxFill: 6;
199
- readonly Pressurized: 7;
200
- readonly Armed: 8;
201
- readonly Burn: 9;
202
- readonly Shutdown: 10;
203
- readonly PostBurn: 11;
204
- readonly Depressurize: 12;
205
- readonly Calibrate: 13;
206
- };
207
239
  };
208
240
  };
209
241
  ServoCommands_OpenCloseServoPayload: {
@@ -221,7 +253,7 @@ export declare const spec: {
221
253
  readonly kMainFuel: 0;
222
254
  readonly kMainOx: 1;
223
255
  readonly kOxFill: 2;
224
- readonly kOxPrechill: 3;
256
+ readonly kOxVent: 3;
225
257
  readonly kOxSupply: 4;
226
258
  readonly kCount: 5;
227
259
  };
@@ -254,7 +286,7 @@ export declare const spec: {
254
286
  readonly kMainFuel: 0;
255
287
  readonly kMainOx: 1;
256
288
  readonly kOxFill: 2;
257
- readonly kOxPrechill: 3;
289
+ readonly kOxVent: 3;
258
290
  readonly kOxSupply: 4;
259
291
  readonly kCount: 5;
260
292
  };
@@ -268,11 +300,11 @@ export declare const spec: {
268
300
  };
269
301
  };
270
302
  };
271
- SolenoidCommands_SetSolenoidPayload: {
303
+ SolenoidCommands_OpenCloseSolenoidPayload: {
272
304
  id: number;
273
305
  schema: import("typed-binary").ObjectSchema<{
274
306
  solenoid_id: import("typed-binary").ByteSchema;
275
- command: import("typed-binary").Uint32Schema;
307
+ opening_type: import("typed-binary").ByteSchema;
276
308
  }>;
277
309
  enums: {
278
310
  solenoid_id: {
@@ -288,9 +320,9 @@ export declare const spec: {
288
320
  readonly kQD_2: 9;
289
321
  readonly kCount: 10;
290
322
  };
291
- command: {
292
- readonly open: 0;
293
- readonly close: 1;
323
+ opening_type: {
324
+ readonly Open: 0;
325
+ readonly Close: 1;
294
326
  };
295
327
  };
296
328
  };
@@ -314,7 +346,7 @@ export declare const spec: {
314
346
  }>;
315
347
  enums: {
316
348
  regulator_id: {
317
- readonly kOxPrechill: 0;
349
+ readonly kOxVent: 0;
318
350
  readonly kCount: 1;
319
351
  };
320
352
  value: {
@@ -331,7 +363,7 @@ export declare const spec: {
331
363
  }>;
332
364
  enums: {
333
365
  regulator_id: {
334
- readonly kOxPrechill: 0;
366
+ readonly kOxVent: 0;
335
367
  readonly kCount: 1;
336
368
  };
337
369
  };
@@ -346,7 +378,7 @@ export declare const spec: {
346
378
  }>;
347
379
  enums: {
348
380
  regulator_id: {
349
- readonly kOxPrechill: 0;
381
+ readonly kOxVent: 0;
350
382
  readonly kCount: 1;
351
383
  };
352
384
  };
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-03-22 14:17:44. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-23 21:33:27. 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;
@@ -69,6 +69,22 @@ export const BldcCommands_SetBldcCommand = {
69
69
  open: 0,
70
70
  close: 1,
71
71
  };
72
+ export const StateId = {
73
+ Safe: 0,
74
+ N2Fill: 1,
75
+ PostN2Fill: 2,
76
+ OxFill: 3,
77
+ PostOxFill: 4,
78
+ Prechill: 5,
79
+ PostPrechill: 6,
80
+ QDDisconnect: 7,
81
+ Pressurized: 8,
82
+ Armed: 9,
83
+ Burn: 10,
84
+ Shutdown: 11,
85
+ PostShutdown: 12,
86
+ Calibrate: 13,
87
+ };
72
88
  export const Event = {
73
89
  Boot: 0,
74
90
  NextState: 1,
@@ -80,27 +96,11 @@ export const Event = {
80
96
  None: 7,
81
97
  Count: 8,
82
98
  };
83
- export const StateId = {
84
- Safe: 0,
85
- FuelFill: 1,
86
- PostFuelFill: 2,
87
- N2Fill: 3,
88
- PostN2Fill: 4,
89
- OxFill: 5,
90
- PostOxFill: 6,
91
- Pressurized: 7,
92
- Armed: 8,
93
- Burn: 9,
94
- Shutdown: 10,
95
- PostBurn: 11,
96
- Depressurize: 12,
97
- Calibrate: 13,
98
- };
99
99
  export const node_servo_Id = {
100
100
  kMainFuel: 0,
101
101
  kMainOx: 1,
102
102
  kOxFill: 2,
103
- kOxPrechill: 3,
103
+ kOxVent: 3,
104
104
  kOxSupply: 4,
105
105
  kCount: 5,
106
106
  };
@@ -129,16 +129,16 @@ export const node_solenoid_Id = {
129
129
  kQD_2: 9,
130
130
  kCount: 10,
131
131
  };
132
- export const SolenoidCommands_SetSolenoidCommand = {
133
- open: 0,
134
- close: 1,
132
+ export const SolenoidCommands_OpeningType = {
133
+ Open: 0,
134
+ Close: 1,
135
135
  };
136
136
  export const ControlPolicyCommands_PolicyValue = {
137
137
  Disable: 0,
138
138
  Enable: 1,
139
139
  };
140
140
  export const node_regulator_Id = {
141
- kOxPrechill: 0,
141
+ kOxVent: 0,
142
142
  kCount: 1,
143
143
  };
144
144
  export const RegulatorCommands_RegulatorValue = {
@@ -149,9 +149,17 @@ export const BldcCommands_SetBldcPayload = bin.object({
149
149
  bldc_id: bin.u8, // node::bldc::Id
150
150
  command: bin.u32, // BldcCommands::SetBldcCommand
151
151
  });
152
+ export const FsmCommands_NextStatePayload = bin.object({
153
+ current_state: bin.u8, // StateId
154
+ });
155
+ export const FsmCommands_AbortPayload = bin.object({
156
+ reserved: bin.u8, // unsigned char
157
+ });
158
+ export const FsmCommands_StatusPayload = bin.object({
159
+ reserved: bin.u8, // unsigned char
160
+ });
152
161
  export const FsmCommands_RaiseEventPayload = bin.object({
153
162
  event: bin.u8, // Event
154
- current_state: bin.u8, // StateId
155
163
  });
156
164
  export const ServoCommands_OpenCloseServoPayload = bin.object({
157
165
  servo_id: bin.u8, // node::servo::Id
@@ -169,9 +177,9 @@ export const ServoCommands_SetServoPayload = bin.object({
169
177
  position_mode: bin.u8, // actuators::servo::PositionMode
170
178
  start_policy: bin.u8, // actuators::servo::StartPolicy
171
179
  });
172
- export const SolenoidCommands_SetSolenoidPayload = bin.object({
180
+ export const SolenoidCommands_OpenCloseSolenoidPayload = bin.object({
173
181
  solenoid_id: bin.u8, // node::solenoid::Id
174
- command: bin.u32, // SolenoidCommands::SetSolenoidCommand
182
+ opening_type: bin.u8, // SolenoidCommands::OpeningType
175
183
  });
176
184
  export const ControlPolicyCommands_SetManualPolicyPayload = bin.object({
177
185
  value: bin.u8, // ControlPolicyCommands::PolicyValue
@@ -199,12 +207,28 @@ export const spec = {
199
207
  command: BldcCommands_SetBldcCommand,
200
208
  },
201
209
  },
202
- FsmCommands_RaiseEventPayload: {
210
+ FsmCommands_NextStatePayload: {
203
211
  id: 32,
212
+ schema: FsmCommands_NextStatePayload,
213
+ enums: {
214
+ current_state: StateId,
215
+ },
216
+ },
217
+ FsmCommands_AbortPayload: {
218
+ id: 33,
219
+ schema: FsmCommands_AbortPayload,
220
+ enums: {},
221
+ },
222
+ FsmCommands_StatusPayload: {
223
+ id: 34,
224
+ schema: FsmCommands_StatusPayload,
225
+ enums: {},
226
+ },
227
+ FsmCommands_RaiseEventPayload: {
228
+ id: 35,
204
229
  schema: FsmCommands_RaiseEventPayload,
205
230
  enums: {
206
231
  event: Event,
207
- current_state: StateId,
208
232
  },
209
233
  },
210
234
  ServoCommands_OpenCloseServoPayload: {
@@ -226,12 +250,12 @@ export const spec = {
226
250
  start_policy: actuators_servo_StartPolicy,
227
251
  },
228
252
  },
229
- SolenoidCommands_SetSolenoidPayload: {
253
+ SolenoidCommands_OpenCloseSolenoidPayload: {
230
254
  id: 80,
231
- schema: SolenoidCommands_SetSolenoidPayload,
255
+ schema: SolenoidCommands_OpenCloseSolenoidPayload,
232
256
  enums: {
233
257
  solenoid_id: node_solenoid_Id,
234
- command: SolenoidCommands_SetSolenoidCommand,
258
+ opening_type: SolenoidCommands_OpeningType,
235
259
  },
236
260
  },
237
261
  ControlPolicyCommands_SetManualPolicyPayload: {
@@ -32,18 +32,18 @@ export declare const actuators_solenoid_Opening: {
32
32
  export type actuators_solenoid_Opening = (typeof actuators_solenoid_Opening)[keyof typeof actuators_solenoid_Opening];
33
33
  export declare const StateId: {
34
34
  readonly Safe: 0;
35
- readonly FuelFill: 1;
36
- readonly PostFuelFill: 2;
37
- readonly N2Fill: 3;
38
- readonly PostN2Fill: 4;
39
- readonly OxFill: 5;
40
- readonly PostOxFill: 6;
41
- readonly Pressurized: 7;
42
- readonly Armed: 8;
43
- readonly Burn: 9;
44
- readonly Shutdown: 10;
45
- readonly PostBurn: 11;
46
- readonly Depressurize: 12;
35
+ readonly N2Fill: 1;
36
+ readonly PostN2Fill: 2;
37
+ readonly OxFill: 3;
38
+ readonly PostOxFill: 4;
39
+ readonly Prechill: 5;
40
+ readonly PostPrechill: 6;
41
+ readonly QDDisconnect: 7;
42
+ readonly Pressurized: 8;
43
+ readonly Armed: 9;
44
+ readonly Burn: 10;
45
+ readonly Shutdown: 11;
46
+ readonly PostShutdown: 12;
47
47
  readonly Calibrate: 13;
48
48
  };
49
49
  export type StateId = (typeof StateId)[keyof typeof StateId];
@@ -59,6 +59,13 @@ export declare const Event: {
59
59
  readonly Count: 8;
60
60
  };
61
61
  export type Event = (typeof Event)[keyof typeof Event];
62
+ export declare const fsm_AbortReason: {
63
+ readonly None: 0;
64
+ readonly FuelTankOverpressure: 1;
65
+ readonly OxTankOverpressure: 2;
66
+ readonly ChamberUnderpressure: 3;
67
+ };
68
+ export type fsm_AbortReason = (typeof fsm_AbortReason)[keyof typeof fsm_AbortReason];
62
69
  export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
63
70
  commanded_angle_deg: import("typed-binary").Float32Schema;
64
71
  target_angle_deg: import("typed-binary").Float32Schema;
@@ -84,15 +91,6 @@ export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
84
91
  calibrated: import("typed-binary").ByteSchema;
85
92
  }>;
86
93
  export type BldcTelemetry = bin.Parsed<typeof BldcTelemetry>;
87
- export declare const sensors_pressure_PressureBatch: import("typed-binary").ObjectSchema<{
88
- t0_ms: import("typed-binary").Uint32Schema;
89
- dt_us: import("typed-binary").Uint16Schema;
90
- count: import("typed-binary").ByteSchema;
91
- seq: import("typed-binary").ByteSchema;
92
- overrun: import("typed-binary").BoolSchema;
93
- samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
94
- }>;
95
- export type sensors_pressure_PressureBatch = bin.Parsed<typeof sensors_pressure_PressureBatch>;
96
94
  export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").ObjectSchema<{
97
95
  power_state: import("typed-binary").ByteSchema;
98
96
  opening: import("typed-binary").ByteSchema;
@@ -163,13 +161,35 @@ export declare const RegulatorStatusArrayPacket: import("typed-binary").ObjectSc
163
161
  }>;
164
162
  export type RegulatorStatusArrayPacket = bin.Parsed<typeof RegulatorStatusArrayPacket>;
165
163
  export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
166
- state_entry_time_ms: import("typed-binary").Uint32Schema;
167
- state_time_ms: import("typed-binary").Uint32Schema;
164
+ state_entry_time_ms: UInt64Schema;
165
+ state_time_ms: UInt64Schema;
168
166
  current_state: import("typed-binary").ByteSchema;
169
167
  previous_state: import("typed-binary").ByteSchema;
170
168
  last_event: import("typed-binary").ByteSchema;
169
+ last_abort_reason: import("typed-binary").ByteSchema;
171
170
  }>;
172
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>;
173
193
  export declare const spec: {
174
194
  actuators_servo_ServoStatus: {
175
195
  port: number;
@@ -214,18 +234,6 @@ export declare const spec: {
214
234
  }>;
215
235
  enums: {};
216
236
  };
217
- sensors_pressure_PressureBatch: {
218
- port: number;
219
- schema: import("typed-binary").ObjectSchema<{
220
- t0_ms: import("typed-binary").Uint32Schema;
221
- dt_us: import("typed-binary").Uint16Schema;
222
- count: import("typed-binary").ByteSchema;
223
- seq: import("typed-binary").ByteSchema;
224
- overrun: import("typed-binary").BoolSchema;
225
- samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
226
- }>;
227
- enums: {};
228
- };
229
237
  actuators_solenoid_SolenoidStatus: {
230
238
  port: number;
231
239
  schema: import("typed-binary").ObjectSchema<{
@@ -281,43 +289,44 @@ export declare const spec: {
281
289
  fsm_FsmStatus: {
282
290
  port: number;
283
291
  schema: import("typed-binary").ObjectSchema<{
284
- state_entry_time_ms: import("typed-binary").Uint32Schema;
285
- state_time_ms: import("typed-binary").Uint32Schema;
292
+ state_entry_time_ms: UInt64Schema;
293
+ state_time_ms: UInt64Schema;
286
294
  current_state: import("typed-binary").ByteSchema;
287
295
  previous_state: import("typed-binary").ByteSchema;
288
296
  last_event: import("typed-binary").ByteSchema;
297
+ last_abort_reason: import("typed-binary").ByteSchema;
289
298
  }>;
290
299
  enums: {
291
300
  current_state: {
292
301
  readonly Safe: 0;
293
- readonly FuelFill: 1;
294
- readonly PostFuelFill: 2;
295
- readonly N2Fill: 3;
296
- readonly PostN2Fill: 4;
297
- readonly OxFill: 5;
298
- readonly PostOxFill: 6;
299
- readonly Pressurized: 7;
300
- readonly Armed: 8;
301
- readonly Burn: 9;
302
- readonly Shutdown: 10;
303
- readonly PostBurn: 11;
304
- readonly Depressurize: 12;
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;
305
314
  readonly Calibrate: 13;
306
315
  };
307
316
  previous_state: {
308
317
  readonly Safe: 0;
309
- readonly FuelFill: 1;
310
- readonly PostFuelFill: 2;
311
- readonly N2Fill: 3;
312
- readonly PostN2Fill: 4;
313
- readonly OxFill: 5;
314
- readonly PostOxFill: 6;
315
- readonly Pressurized: 7;
316
- readonly Armed: 8;
317
- readonly Burn: 9;
318
- readonly Shutdown: 10;
319
- readonly PostBurn: 11;
320
- readonly Depressurize: 12;
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;
321
330
  readonly Calibrate: 13;
322
331
  };
323
332
  last_event: {
@@ -331,6 +340,29 @@ export declare const spec: {
331
340
  readonly None: 7;
332
341
  readonly Count: 8;
333
342
  };
343
+ last_abort_reason: {
344
+ readonly None: 0;
345
+ readonly FuelTankOverpressure: 1;
346
+ readonly OxTankOverpressure: 2;
347
+ readonly ChamberUnderpressure: 3;
348
+ };
349
+ };
350
+ };
351
+ PressureSensorData: {
352
+ port: number;
353
+ schema: import("typed-binary").ObjectSchema<{
354
+ sensor_id: import("typed-binary").ByteSchema;
355
+ data: import("typed-binary").ObjectSchema<{
356
+ t0_ms: import("typed-binary").Uint32Schema;
357
+ dt_us: import("typed-binary").Uint16Schema;
358
+ count: import("typed-binary").ByteSchema;
359
+ seq: import("typed-binary").ByteSchema;
360
+ overrun: import("typed-binary").BoolSchema;
361
+ samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
362
+ }>;
363
+ }>;
364
+ enums: {
365
+ data: {};
334
366
  };
335
367
  };
336
368
  };
@@ -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:05:05. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-23 21:33:45. 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;
@@ -83,18 +83,18 @@ export const actuators_solenoid_Opening = {
83
83
  };
84
84
  export const StateId = {
85
85
  Safe: 0,
86
- FuelFill: 1,
87
- PostFuelFill: 2,
88
- N2Fill: 3,
89
- PostN2Fill: 4,
90
- OxFill: 5,
91
- PostOxFill: 6,
92
- Pressurized: 7,
93
- Armed: 8,
94
- Burn: 9,
95
- Shutdown: 10,
96
- PostBurn: 11,
97
- Depressurize: 12,
86
+ N2Fill: 1,
87
+ PostN2Fill: 2,
88
+ OxFill: 3,
89
+ PostOxFill: 4,
90
+ Prechill: 5,
91
+ PostPrechill: 6,
92
+ QDDisconnect: 7,
93
+ Pressurized: 8,
94
+ Armed: 9,
95
+ Burn: 10,
96
+ Shutdown: 11,
97
+ PostShutdown: 12,
98
98
  Calibrate: 13,
99
99
  };
100
100
  export const Event = {
@@ -108,6 +108,12 @@ export const Event = {
108
108
  None: 7,
109
109
  Count: 8,
110
110
  };
111
+ export const fsm_AbortReason = {
112
+ None: 0,
113
+ FuelTankOverpressure: 1,
114
+ OxTankOverpressure: 2,
115
+ ChamberUnderpressure: 3,
116
+ };
111
117
  export const actuators_servo_ServoStatus = bin.object({
112
118
  commanded_angle_deg: bin.f32, // float
113
119
  target_angle_deg: bin.f32, // float
@@ -131,14 +137,6 @@ export const BldcTelemetry = bin.object({
131
137
  position_raw: bin.f32, // float
132
138
  calibrated: bin.u8, // unsigned char
133
139
  });
134
- export const sensors_pressure_PressureBatch = bin.object({
135
- t0_ms: bin.u32, // unsigned int
136
- dt_us: bin.u16, // unsigned short
137
- count: bin.u8, // unsigned char
138
- seq: bin.u8, // unsigned char
139
- overrun: bin.bool, // bool
140
- samples: bin.arrayOf(bin.i16, 10), // short[10]
141
- });
142
140
  export const actuators_solenoid_SolenoidStatus = bin.object({
143
141
  power_state: bin.u8, // actuators::solenoid::PowerState
144
142
  opening: bin.u8, // actuators::solenoid::Opening
@@ -172,11 +170,24 @@ export const RegulatorStatusArrayPacket = bin.object({
172
170
  entries: bin.arrayOf(RegulatorStatusEntry, 1), // RegulatorStatusEntry[1]
173
171
  });
174
172
  export const fsm_FsmStatus = bin.object({
175
- state_entry_time_ms: bin.u32, // unsigned int
176
- state_time_ms: bin.u32, // unsigned int
173
+ state_entry_time_ms: u64, // unsigned long long
174
+ state_time_ms: u64, // unsigned long long
177
175
  current_state: bin.u8, // StateId
178
176
  previous_state: bin.u8, // StateId
179
177
  last_event: bin.u8, // Event
178
+ last_abort_reason: bin.u8, // fsm::AbortReason
179
+ });
180
+ export const sensors_pressure_PressureBatch = bin.object({
181
+ t0_ms: bin.u32, // unsigned int
182
+ dt_us: bin.u16, // unsigned short
183
+ count: bin.u8, // unsigned char
184
+ seq: bin.u8, // unsigned char
185
+ overrun: bin.bool, // bool
186
+ samples: bin.arrayOf(bin.i16, 10), // short[10]
187
+ });
188
+ export const PressureSensorData = bin.object({
189
+ sensor_id: bin.u8, // unsigned char
190
+ data: sensors_pressure_PressureBatch, // sensors::pressure::PressureBatch
180
191
  });
181
192
  export const spec = {
182
193
  actuators_servo_ServoStatus: {
@@ -192,11 +203,6 @@ export const spec = {
192
203
  schema: BldcTelemetry,
193
204
  enums: {},
194
205
  },
195
- sensors_pressure_PressureBatch: {
196
- port: 5002,
197
- schema: sensors_pressure_PressureBatch,
198
- enums: {},
199
- },
200
206
  actuators_solenoid_SolenoidStatus: {
201
207
  port: 5004,
202
208
  schema: actuators_solenoid_SolenoidStatus,
@@ -221,6 +227,14 @@ export const spec = {
221
227
  current_state: StateId,
222
228
  previous_state: StateId,
223
229
  last_event: Event,
230
+ last_abort_reason: fsm_AbortReason,
231
+ },
232
+ },
233
+ PressureSensorData: {
234
+ port: 5002,
235
+ schema: PressureSensorData,
236
+ enums: {
237
+ data: {},
224
238
  },
225
239
  },
226
240
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",