fossekall-interface 0.1.123 → 0.1.125

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 from 'typed-binary';
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
+ }
2
14
  export declare const node_bldc_Id: {
3
- readonly kFuel: 0;
4
- readonly kOx: 1;
5
- readonly kCount: 2;
15
+ readonly Fuel: 0;
16
+ readonly Ox: 1;
17
+ readonly Count: 2;
6
18
  };
7
19
  export type node_bldc_Id = (typeof node_bldc_Id)[keyof typeof node_bldc_Id];
8
- export declare const BldcCommands_SetBldcCommand: {
9
- readonly open: 0;
10
- readonly close: 1;
20
+ export declare const BldcCommands_OpenClose: {
21
+ readonly Open: 0;
22
+ readonly Close: 1;
11
23
  };
12
- export type BldcCommands_SetBldcCommand = (typeof BldcCommands_SetBldcCommand)[keyof typeof BldcCommands_SetBldcCommand];
24
+ export type BldcCommands_OpenClose = (typeof BldcCommands_OpenClose)[keyof typeof BldcCommands_OpenClose];
13
25
  export declare const StateId: {
14
26
  readonly Safe: 0;
15
27
  readonly N2Fill: 1;
16
28
  readonly PostN2Fill: 2;
17
29
  readonly OxFill: 3;
18
30
  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;
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;
28
39
  };
29
40
  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];
42
41
  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;
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;
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: {
@@ -97,15 +95,109 @@ export declare const RegulatorCommands_RegulatorValue: {
97
95
  readonly Enable: 1;
98
96
  };
99
97
  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>;
100
103
  export declare const BldcCommands_SetBldcPayload: import("typed-binary").ObjectSchema<{
101
- bldc_id: import("typed-binary").ByteSchema;
102
- command: import("typed-binary").Uint32Schema;
104
+ id: import("typed-binary").ByteSchema;
105
+ angle_deg: import("typed-binary").Float32Schema;
103
106
  }>;
104
107
  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>;
105
193
  export declare const FsmCommands_NextStatePayload: import("typed-binary").ObjectSchema<{
106
194
  current_state: import("typed-binary").ByteSchema;
107
195
  }>;
108
196
  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>;
109
201
  export declare const FsmCommands_AbortPayload: import("typed-binary").ObjectSchema<{
110
202
  reserved: import("typed-binary").ByteSchema;
111
203
  }>;
@@ -114,10 +206,6 @@ export declare const FsmCommands_StatusPayload: import("typed-binary").ObjectSch
114
206
  reserved: import("typed-binary").ByteSchema;
115
207
  }>;
116
208
  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>;
121
209
  export declare const ServoCommands_OpenCloseServoPayload: import("typed-binary").ObjectSchema<{
122
210
  servo_id: import("typed-binary").ByteSchema;
123
211
  open_close: import("typed-binary").ByteSchema;
@@ -163,21 +251,99 @@ export declare const RegulatorCommands_SetGainsPayload: import("typed-binary").O
163
251
  }>;
164
252
  export type RegulatorCommands_SetGainsPayload = bin.Parsed<typeof RegulatorCommands_SetGainsPayload>;
165
253
  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
+ };
166
272
  BldcCommands_SetBldcPayload: {
167
273
  id: number;
168
274
  schema: import("typed-binary").ObjectSchema<{
169
- bldc_id: import("typed-binary").ByteSchema;
170
- command: import("typed-binary").Uint32Schema;
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
+ }>;
171
335
  }>;
172
336
  enums: {
173
- bldc_id: {
174
- readonly kFuel: 0;
175
- readonly kOx: 1;
176
- readonly kCount: 2;
337
+ id: {
338
+ readonly Fuel: 0;
339
+ readonly Ox: 1;
340
+ readonly Count: 2;
177
341
  };
178
- command: {
179
- readonly open: 0;
180
- readonly close: 1;
342
+ config: {
343
+ pressurize_pid_gains: {};
344
+ run_pid_gains: {};
345
+ control_valve_curve: {};
346
+ main_valve_curve: {};
181
347
  };
182
348
  };
183
349
  };
@@ -193,50 +359,53 @@ export declare const spec: {
193
359
  readonly PostN2Fill: 2;
194
360
  readonly OxFill: 3;
195
361
  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;
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;
205
370
  };
206
371
  };
207
372
  };
208
- FsmCommands_AbortPayload: {
373
+ FsmCommands_PreviousStatePayload: {
209
374
  id: number;
210
375
  schema: import("typed-binary").ObjectSchema<{
211
- reserved: import("typed-binary").ByteSchema;
376
+ current_state: import("typed-binary").ByteSchema;
212
377
  }>;
213
- enums: {};
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;
393
+ };
394
+ };
214
395
  };
215
- FsmCommands_StatusPayload: {
396
+ FsmCommands_AbortPayload: {
216
397
  id: number;
217
398
  schema: import("typed-binary").ObjectSchema<{
218
399
  reserved: import("typed-binary").ByteSchema;
219
400
  }>;
220
401
  enums: {};
221
402
  };
222
- FsmCommands_RaiseEventPayload: {
403
+ FsmCommands_StatusPayload: {
223
404
  id: number;
224
405
  schema: import("typed-binary").ObjectSchema<{
225
- event: import("typed-binary").ByteSchema;
406
+ reserved: import("typed-binary").ByteSchema;
226
407
  }>;
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
- };
408
+ enums: {};
240
409
  };
241
410
  ServoCommands_OpenCloseServoPayload: {
242
411
  id: number;
@@ -250,12 +419,13 @@ export declare const spec: {
250
419
  }>;
251
420
  enums: {
252
421
  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;
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;
259
429
  };
260
430
  open_close: {
261
431
  readonly Open: 0;
@@ -283,12 +453,13 @@ export declare const spec: {
283
453
  }>;
284
454
  enums: {
285
455
  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;
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;
292
463
  };
293
464
  position_mode: {
294
465
  readonly kAbsolute: 0;
@@ -308,17 +479,15 @@ export declare const spec: {
308
479
  }>;
309
480
  enums: {
310
481
  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;
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;
322
491
  };
323
492
  opening_type: {
324
493
  readonly Open: 0;
@@ -346,8 +515,8 @@ export declare const spec: {
346
515
  }>;
347
516
  enums: {
348
517
  regulator_id: {
349
- readonly kOxVent: 0;
350
- readonly kCount: 1;
518
+ readonly OxBoiloff: 0;
519
+ readonly Count: 1;
351
520
  };
352
521
  value: {
353
522
  readonly Disable: 0;
@@ -363,8 +532,8 @@ export declare const spec: {
363
532
  }>;
364
533
  enums: {
365
534
  regulator_id: {
366
- readonly kOxVent: 0;
367
- readonly kCount: 1;
535
+ readonly OxBoiloff: 0;
536
+ readonly Count: 1;
368
537
  };
369
538
  };
370
539
  };
@@ -378,8 +547,8 @@ export declare const spec: {
378
547
  }>;
379
548
  enums: {
380
549
  regulator_id: {
381
- readonly kOxVent: 0;
382
- readonly kCount: 1;
550
+ readonly OxBoiloff: 0;
551
+ readonly Count: 1;
383
552
  };
384
553
  };
385
554
  };