fossekall-interface 0.1.122 → 0.1.124

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,51 +1,51 @@
1
- import bin, { MaxValue, Schema, type IMeasurer, type ISerialInput, type ISerialOutput } from 'typed-binary';
2
- declare class UInt64Schema extends Schema<bigint> {
3
- readonly maxSize = 8;
4
- read(input: ISerialInput): bigint;
5
- write(output: ISerialOutput, value: bigint): void;
6
- measure(_: bigint | typeof MaxValue, measurer?: IMeasurer): IMeasurer;
7
- }
8
- declare class Float64Schema extends Schema<number> {
9
- readonly maxSize = 8;
10
- read(input: ISerialInput): number;
11
- write(output: ISerialOutput, value: number): void;
12
- measure(_: number | typeof MaxValue, measurer?: IMeasurer): IMeasurer;
13
- }
1
+ import bin from 'typed-binary';
14
2
  export declare const node_bldc_Id: {
15
- readonly Fuel: 0;
16
- readonly Ox: 1;
17
- readonly Count: 2;
3
+ readonly kFuel: 0;
4
+ readonly kOx: 1;
5
+ readonly kCount: 2;
18
6
  };
19
7
  export type node_bldc_Id = (typeof node_bldc_Id)[keyof typeof node_bldc_Id];
20
- export declare const BldcCommands_OpenClose: {
21
- readonly Open: 0;
22
- readonly Close: 1;
8
+ export declare const BldcCommands_SetBldcCommand: {
9
+ readonly open: 0;
10
+ readonly close: 1;
23
11
  };
24
- export type BldcCommands_OpenClose = (typeof BldcCommands_OpenClose)[keyof typeof BldcCommands_OpenClose];
12
+ export type BldcCommands_SetBldcCommand = (typeof BldcCommands_SetBldcCommand)[keyof typeof BldcCommands_SetBldcCommand];
25
13
  export declare const StateId: {
26
14
  readonly Safe: 0;
27
15
  readonly N2Fill: 1;
28
16
  readonly PostN2Fill: 2;
29
17
  readonly OxFill: 3;
30
18
  readonly PostOxFill: 4;
31
- readonly QDDisconnect: 5;
32
- readonly Pressurized: 6;
33
- readonly Armed: 7;
34
- readonly Burn: 8;
35
- readonly Shutdown: 9;
36
- readonly PostShutdown: 10;
37
- readonly Purge: 11;
38
- readonly Hold: 12;
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;
39
28
  };
40
29
  export type StateId = (typeof StateId)[keyof typeof StateId];
30
+ export declare const Event: {
31
+ readonly Boot: 0;
32
+ readonly NextState: 1;
33
+ readonly PreviousState: 2;
34
+ readonly Timeout: 3;
35
+ readonly CalibrateRequest: 4;
36
+ readonly BurnwireCut: 5;
37
+ readonly Abort: 6;
38
+ readonly None: 7;
39
+ readonly Count: 8;
40
+ };
41
+ export type Event = (typeof Event)[keyof typeof Event];
41
42
  export declare const node_servo_Id: {
42
- readonly MainFuel: 0;
43
- readonly MainOx: 1;
44
- readonly OxFill: 2;
45
- readonly OxBoiloff: 3;
46
- readonly OxSupply: 4;
47
- readonly Purge: 5;
48
- readonly Count: 6;
43
+ readonly kMainFuel: 0;
44
+ readonly kMainOx: 1;
45
+ readonly kOxFill: 2;
46
+ readonly kOxVent: 3;
47
+ readonly kOxSupply: 4;
48
+ readonly kCount: 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,15 +64,17 @@ 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 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;
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;
76
78
  };
77
79
  export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
78
80
  export declare const SolenoidCommands_OpeningType: {
@@ -86,8 +88,8 @@ export declare const ControlPolicyCommands_PolicyValue: {
86
88
  };
87
89
  export type ControlPolicyCommands_PolicyValue = (typeof ControlPolicyCommands_PolicyValue)[keyof typeof ControlPolicyCommands_PolicyValue];
88
90
  export declare const node_regulator_Id: {
89
- readonly OxBoiloff: 0;
90
- readonly Count: 1;
91
+ readonly kOxVent: 0;
92
+ readonly kCount: 1;
91
93
  };
92
94
  export type node_regulator_Id = (typeof node_regulator_Id)[keyof typeof node_regulator_Id];
93
95
  export declare const RegulatorCommands_RegulatorValue: {
@@ -95,109 +97,15 @@ export declare const RegulatorCommands_RegulatorValue: {
95
97
  readonly Enable: 1;
96
98
  };
97
99
  export type RegulatorCommands_RegulatorValue = (typeof RegulatorCommands_RegulatorValue)[keyof typeof RegulatorCommands_RegulatorValue];
98
- export declare const BldcCommands_OpenCloseBldcPayload: import("typed-binary").ObjectSchema<{
99
- id: import("typed-binary").ByteSchema;
100
- open_close: import("typed-binary").ByteSchema;
101
- }>;
102
- export type BldcCommands_OpenCloseBldcPayload = bin.Parsed<typeof BldcCommands_OpenCloseBldcPayload>;
103
100
  export declare const BldcCommands_SetBldcPayload: import("typed-binary").ObjectSchema<{
104
- id: import("typed-binary").ByteSchema;
105
- angle_deg: import("typed-binary").Float32Schema;
101
+ bldc_id: import("typed-binary").ByteSchema;
102
+ command: import("typed-binary").Uint32Schema;
106
103
  }>;
107
104
  export type BldcCommands_SetBldcPayload = bin.Parsed<typeof BldcCommands_SetBldcPayload>;
108
- export declare const BldcCommands_CalibratePayload: import("typed-binary").ObjectSchema<{
109
- id: import("typed-binary").ByteSchema;
110
- }>;
111
- export type BldcCommands_CalibratePayload = bin.Parsed<typeof BldcCommands_CalibratePayload>;
112
- export declare const actuators_bldc_PidGains: import("typed-binary").ObjectSchema<{
113
- p: Float64Schema;
114
- i: Float64Schema;
115
- d: Float64Schema;
116
- normalization_factor: Float64Schema;
117
- }>;
118
- export type actuators_bldc_PidGains = bin.Parsed<typeof actuators_bldc_PidGains>;
119
- export declare const SigmoidParameters: import("typed-binary").ObjectSchema<{
120
- a: Float64Schema;
121
- b: Float64Schema;
122
- }>;
123
- export type SigmoidParameters = bin.Parsed<typeof SigmoidParameters>;
124
- export declare const actuators_bldc_ControllerConfig: import("typed-binary").ObjectSchema<{
125
- pressurize_pid_gains: import("typed-binary").ObjectSchema<{
126
- p: Float64Schema;
127
- i: Float64Schema;
128
- d: Float64Schema;
129
- normalization_factor: Float64Schema;
130
- }>;
131
- run_pid_gains: import("typed-binary").ObjectSchema<{
132
- p: Float64Schema;
133
- i: Float64Schema;
134
- d: Float64Schema;
135
- normalization_factor: Float64Schema;
136
- }>;
137
- minimum_position: Float64Schema;
138
- maximum_position: Float64Schema;
139
- valve_encoder_offset: Float64Schema;
140
- can_watchdog_timeout: UInt64Schema;
141
- end_pressure_ref: Float64Schema;
142
- pressurizing_time: Float64Schema;
143
- gear_ratio: import("typed-binary").Float32Schema;
144
- max_torque: Float64Schema;
145
- dvdt_nominal: Float64Schema;
146
- cv_max: Float64Schema;
147
- control_valve_curve: import("typed-binary").ObjectSchema<{
148
- a: Float64Schema;
149
- b: Float64Schema;
150
- }>;
151
- main_valve_curve: import("typed-binary").ObjectSchema<{
152
- a: Float64Schema;
153
- b: Float64Schema;
154
- }>;
155
- }>;
156
- export type actuators_bldc_ControllerConfig = bin.Parsed<typeof actuators_bldc_ControllerConfig>;
157
- export declare const BldcCommands_ConfigureBldcPayload: import("typed-binary").ObjectSchema<{
158
- id: import("typed-binary").ByteSchema;
159
- config: import("typed-binary").ObjectSchema<{
160
- pressurize_pid_gains: import("typed-binary").ObjectSchema<{
161
- p: Float64Schema;
162
- i: Float64Schema;
163
- d: Float64Schema;
164
- normalization_factor: Float64Schema;
165
- }>;
166
- run_pid_gains: import("typed-binary").ObjectSchema<{
167
- p: Float64Schema;
168
- i: Float64Schema;
169
- d: Float64Schema;
170
- normalization_factor: Float64Schema;
171
- }>;
172
- minimum_position: Float64Schema;
173
- maximum_position: Float64Schema;
174
- valve_encoder_offset: Float64Schema;
175
- can_watchdog_timeout: UInt64Schema;
176
- end_pressure_ref: Float64Schema;
177
- pressurizing_time: Float64Schema;
178
- gear_ratio: import("typed-binary").Float32Schema;
179
- max_torque: Float64Schema;
180
- dvdt_nominal: Float64Schema;
181
- cv_max: Float64Schema;
182
- control_valve_curve: import("typed-binary").ObjectSchema<{
183
- a: Float64Schema;
184
- b: Float64Schema;
185
- }>;
186
- main_valve_curve: import("typed-binary").ObjectSchema<{
187
- a: Float64Schema;
188
- b: Float64Schema;
189
- }>;
190
- }>;
191
- }>;
192
- export type BldcCommands_ConfigureBldcPayload = bin.Parsed<typeof BldcCommands_ConfigureBldcPayload>;
193
105
  export declare const FsmCommands_NextStatePayload: import("typed-binary").ObjectSchema<{
194
106
  current_state: import("typed-binary").ByteSchema;
195
107
  }>;
196
108
  export type FsmCommands_NextStatePayload = bin.Parsed<typeof FsmCommands_NextStatePayload>;
197
- export declare const FsmCommands_PreviousStatePayload: import("typed-binary").ObjectSchema<{
198
- current_state: import("typed-binary").ByteSchema;
199
- }>;
200
- export type FsmCommands_PreviousStatePayload = bin.Parsed<typeof FsmCommands_PreviousStatePayload>;
201
109
  export declare const FsmCommands_AbortPayload: import("typed-binary").ObjectSchema<{
202
110
  reserved: import("typed-binary").ByteSchema;
203
111
  }>;
@@ -206,6 +114,10 @@ export declare const FsmCommands_StatusPayload: import("typed-binary").ObjectSch
206
114
  reserved: import("typed-binary").ByteSchema;
207
115
  }>;
208
116
  export type FsmCommands_StatusPayload = bin.Parsed<typeof FsmCommands_StatusPayload>;
117
+ export declare const FsmCommands_RaiseEventPayload: import("typed-binary").ObjectSchema<{
118
+ event: import("typed-binary").ByteSchema;
119
+ }>;
120
+ export type FsmCommands_RaiseEventPayload = bin.Parsed<typeof FsmCommands_RaiseEventPayload>;
209
121
  export declare const ServoCommands_OpenCloseServoPayload: import("typed-binary").ObjectSchema<{
210
122
  servo_id: import("typed-binary").ByteSchema;
211
123
  open_close: import("typed-binary").ByteSchema;
@@ -251,99 +163,21 @@ export declare const RegulatorCommands_SetGainsPayload: import("typed-binary").O
251
163
  }>;
252
164
  export type RegulatorCommands_SetGainsPayload = bin.Parsed<typeof RegulatorCommands_SetGainsPayload>;
253
165
  export declare const spec: {
254
- BldcCommands_OpenCloseBldcPayload: {
255
- id: number;
256
- schema: import("typed-binary").ObjectSchema<{
257
- id: import("typed-binary").ByteSchema;
258
- open_close: import("typed-binary").ByteSchema;
259
- }>;
260
- enums: {
261
- id: {
262
- readonly Fuel: 0;
263
- readonly Ox: 1;
264
- readonly Count: 2;
265
- };
266
- open_close: {
267
- readonly Open: 0;
268
- readonly Close: 1;
269
- };
270
- };
271
- };
272
166
  BldcCommands_SetBldcPayload: {
273
167
  id: number;
274
168
  schema: import("typed-binary").ObjectSchema<{
275
- id: import("typed-binary").ByteSchema;
276
- angle_deg: import("typed-binary").Float32Schema;
277
- }>;
278
- enums: {
279
- id: {
280
- readonly Fuel: 0;
281
- readonly Ox: 1;
282
- readonly Count: 2;
283
- };
284
- };
285
- };
286
- BldcCommands_CalibratePayload: {
287
- id: number;
288
- schema: import("typed-binary").ObjectSchema<{
289
- id: import("typed-binary").ByteSchema;
290
- }>;
291
- enums: {
292
- id: {
293
- readonly Fuel: 0;
294
- readonly Ox: 1;
295
- readonly Count: 2;
296
- };
297
- };
298
- };
299
- BldcCommands_ConfigureBldcPayload: {
300
- id: number;
301
- schema: import("typed-binary").ObjectSchema<{
302
- id: import("typed-binary").ByteSchema;
303
- config: import("typed-binary").ObjectSchema<{
304
- pressurize_pid_gains: import("typed-binary").ObjectSchema<{
305
- p: Float64Schema;
306
- i: Float64Schema;
307
- d: Float64Schema;
308
- normalization_factor: Float64Schema;
309
- }>;
310
- run_pid_gains: import("typed-binary").ObjectSchema<{
311
- p: Float64Schema;
312
- i: Float64Schema;
313
- d: Float64Schema;
314
- normalization_factor: Float64Schema;
315
- }>;
316
- minimum_position: Float64Schema;
317
- maximum_position: Float64Schema;
318
- valve_encoder_offset: Float64Schema;
319
- can_watchdog_timeout: UInt64Schema;
320
- end_pressure_ref: Float64Schema;
321
- pressurizing_time: Float64Schema;
322
- gear_ratio: import("typed-binary").Float32Schema;
323
- max_torque: Float64Schema;
324
- dvdt_nominal: Float64Schema;
325
- cv_max: Float64Schema;
326
- control_valve_curve: import("typed-binary").ObjectSchema<{
327
- a: Float64Schema;
328
- b: Float64Schema;
329
- }>;
330
- main_valve_curve: import("typed-binary").ObjectSchema<{
331
- a: Float64Schema;
332
- b: Float64Schema;
333
- }>;
334
- }>;
169
+ bldc_id: import("typed-binary").ByteSchema;
170
+ command: import("typed-binary").Uint32Schema;
335
171
  }>;
336
172
  enums: {
337
- id: {
338
- readonly Fuel: 0;
339
- readonly Ox: 1;
340
- readonly Count: 2;
173
+ bldc_id: {
174
+ readonly kFuel: 0;
175
+ readonly kOx: 1;
176
+ readonly kCount: 2;
341
177
  };
342
- config: {
343
- pressurize_pid_gains: {};
344
- run_pid_gains: {};
345
- control_valve_curve: {};
346
- main_valve_curve: {};
178
+ command: {
179
+ readonly open: 0;
180
+ readonly close: 1;
347
181
  };
348
182
  };
349
183
  };
@@ -359,37 +193,15 @@ export declare const spec: {
359
193
  readonly PostN2Fill: 2;
360
194
  readonly OxFill: 3;
361
195
  readonly PostOxFill: 4;
362
- readonly QDDisconnect: 5;
363
- readonly Pressurized: 6;
364
- readonly Armed: 7;
365
- readonly Burn: 8;
366
- readonly Shutdown: 9;
367
- readonly PostShutdown: 10;
368
- readonly Purge: 11;
369
- readonly Hold: 12;
370
- };
371
- };
372
- };
373
- FsmCommands_PreviousStatePayload: {
374
- id: number;
375
- schema: import("typed-binary").ObjectSchema<{
376
- current_state: import("typed-binary").ByteSchema;
377
- }>;
378
- enums: {
379
- current_state: {
380
- readonly Safe: 0;
381
- readonly N2Fill: 1;
382
- readonly PostN2Fill: 2;
383
- readonly OxFill: 3;
384
- readonly PostOxFill: 4;
385
- readonly QDDisconnect: 5;
386
- readonly Pressurized: 6;
387
- readonly Armed: 7;
388
- readonly Burn: 8;
389
- readonly Shutdown: 9;
390
- readonly PostShutdown: 10;
391
- readonly Purge: 11;
392
- readonly Hold: 12;
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;
393
205
  };
394
206
  };
395
207
  };
@@ -407,6 +219,25 @@ export declare const spec: {
407
219
  }>;
408
220
  enums: {};
409
221
  };
222
+ FsmCommands_RaiseEventPayload: {
223
+ id: number;
224
+ schema: import("typed-binary").ObjectSchema<{
225
+ event: import("typed-binary").ByteSchema;
226
+ }>;
227
+ enums: {
228
+ event: {
229
+ readonly Boot: 0;
230
+ readonly NextState: 1;
231
+ readonly PreviousState: 2;
232
+ readonly Timeout: 3;
233
+ readonly CalibrateRequest: 4;
234
+ readonly BurnwireCut: 5;
235
+ readonly Abort: 6;
236
+ readonly None: 7;
237
+ readonly Count: 8;
238
+ };
239
+ };
240
+ };
410
241
  ServoCommands_OpenCloseServoPayload: {
411
242
  id: number;
412
243
  schema: import("typed-binary").ObjectSchema<{
@@ -419,13 +250,12 @@ export declare const spec: {
419
250
  }>;
420
251
  enums: {
421
252
  servo_id: {
422
- readonly MainFuel: 0;
423
- readonly MainOx: 1;
424
- readonly OxFill: 2;
425
- readonly OxBoiloff: 3;
426
- readonly OxSupply: 4;
427
- readonly Purge: 5;
428
- readonly Count: 6;
253
+ readonly kMainFuel: 0;
254
+ readonly kMainOx: 1;
255
+ readonly kOxFill: 2;
256
+ readonly kOxVent: 3;
257
+ readonly kOxSupply: 4;
258
+ readonly kCount: 5;
429
259
  };
430
260
  open_close: {
431
261
  readonly Open: 0;
@@ -453,13 +283,12 @@ export declare const spec: {
453
283
  }>;
454
284
  enums: {
455
285
  servo_id: {
456
- readonly MainFuel: 0;
457
- readonly MainOx: 1;
458
- readonly OxFill: 2;
459
- readonly OxBoiloff: 3;
460
- readonly OxSupply: 4;
461
- readonly Purge: 5;
462
- readonly Count: 6;
286
+ readonly kMainFuel: 0;
287
+ readonly kMainOx: 1;
288
+ readonly kOxFill: 2;
289
+ readonly kOxVent: 3;
290
+ readonly kOxSupply: 4;
291
+ readonly kCount: 5;
463
292
  };
464
293
  position_mode: {
465
294
  readonly kAbsolute: 0;
@@ -479,15 +308,17 @@ export declare const spec: {
479
308
  }>;
480
309
  enums: {
481
310
  solenoid_id: {
482
- readonly FuelVent: 0;
483
- readonly OxVent: 1;
484
- readonly N2Fill: 2;
485
- readonly OxHoseBleed: 3;
486
- readonly N2_300_Supply: 4;
487
- readonly N2_300_Hose_Bleed: 5;
488
- readonly QD_1: 6;
489
- readonly QD_2: 7;
490
- readonly Count: 8;
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;
491
322
  };
492
323
  opening_type: {
493
324
  readonly Open: 0;
@@ -515,8 +346,8 @@ export declare const spec: {
515
346
  }>;
516
347
  enums: {
517
348
  regulator_id: {
518
- readonly OxBoiloff: 0;
519
- readonly Count: 1;
349
+ readonly kOxVent: 0;
350
+ readonly kCount: 1;
520
351
  };
521
352
  value: {
522
353
  readonly Disable: 0;
@@ -532,8 +363,8 @@ export declare const spec: {
532
363
  }>;
533
364
  enums: {
534
365
  regulator_id: {
535
- readonly OxBoiloff: 0;
536
- readonly Count: 1;
366
+ readonly kOxVent: 0;
367
+ readonly kCount: 1;
537
368
  };
538
369
  };
539
370
  };
@@ -547,8 +378,8 @@ export declare const spec: {
547
378
  }>;
548
379
  enums: {
549
380
  regulator_id: {
550
- readonly OxBoiloff: 0;
551
- readonly Count: 1;
381
+ readonly kOxVent: 0;
382
+ readonly kCount: 1;
552
383
  };
553
384
  };
554
385
  };