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.
@@ -5,77 +5,6 @@ declare class UInt64Schema extends Schema<bigint> {
5
5
  write(output: ISerialOutput, value: bigint): void;
6
6
  measure(_: bigint | typeof MaxValue, measurer?: IMeasurer): IMeasurer;
7
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
- }
14
- export declare const node_bldc_Id: {
15
- readonly Fuel: 0;
16
- readonly Ox: 1;
17
- readonly Count: 2;
18
- };
19
- export type node_bldc_Id = (typeof node_bldc_Id)[keyof typeof node_bldc_Id];
20
- export declare const StateId: {
21
- readonly Safe: 0;
22
- readonly N2Fill: 1;
23
- readonly PostN2Fill: 2;
24
- readonly OxFill: 3;
25
- readonly PostOxFill: 4;
26
- readonly QDDisconnect: 5;
27
- readonly Pressurized: 6;
28
- readonly Armed: 7;
29
- readonly Burn: 8;
30
- readonly Shutdown: 9;
31
- readonly PostShutdown: 10;
32
- readonly Purge: 11;
33
- readonly Hold: 12;
34
- };
35
- export type StateId = (typeof StateId)[keyof typeof StateId];
36
- export declare const Event: {
37
- readonly Boot: 0;
38
- readonly NextState: 1;
39
- readonly PreviousState: 2;
40
- readonly Timeout: 3;
41
- readonly CalibrateRequest: 4;
42
- readonly BurnwireCut: 5;
43
- readonly Abort: 6;
44
- readonly None: 7;
45
- readonly Count: 8;
46
- };
47
- export type Event = (typeof Event)[keyof typeof Event];
48
- export declare const fsm_AbortReason: {
49
- readonly None: 0;
50
- readonly Manual: 1;
51
- readonly FuelTankOverpressure: 2;
52
- readonly OxTankOverpressure: 3;
53
- readonly ChamberUnderpressure: 4;
54
- };
55
- export type fsm_AbortReason = (typeof fsm_AbortReason)[keyof typeof fsm_AbortReason];
56
- export declare const node_pressure_sensor_Id: {
57
- readonly N2Tank: 0;
58
- readonly OxTank: 1;
59
- readonly OxInjector: 2;
60
- readonly FuelTank: 3;
61
- readonly FuelInjector: 4;
62
- readonly FuelInlet: 5;
63
- readonly Chamber: 6;
64
- readonly OxSupply: 7;
65
- readonly N2_300: 8;
66
- readonly Count: 9;
67
- };
68
- export type node_pressure_sensor_Id = (typeof node_pressure_sensor_Id)[keyof typeof node_pressure_sensor_Id];
69
- export declare const node_servo_Id: {
70
- readonly MainFuel: 0;
71
- readonly MainOx: 1;
72
- readonly OxFill: 2;
73
- readonly OxBoiloff: 3;
74
- readonly OxSupply: 4;
75
- readonly Purge: 5;
76
- readonly Count: 6;
77
- };
78
- export type node_servo_Id = (typeof node_servo_Id)[keyof typeof node_servo_Id];
79
8
  export declare const actuators_servo_ServoMode: {
80
9
  readonly kUnknown: 0;
81
10
  readonly kPosition: 1;
@@ -89,18 +18,6 @@ export declare const actuators_servo_PowerState: {
89
18
  readonly kOn: 3;
90
19
  };
91
20
  export type actuators_servo_PowerState = (typeof actuators_servo_PowerState)[keyof typeof actuators_servo_PowerState];
92
- export declare const node_solenoid_Id: {
93
- readonly FuelVent: 0;
94
- readonly OxVent: 1;
95
- readonly N2Fill: 2;
96
- readonly OxHoseBleed: 3;
97
- readonly N2_300_Supply: 4;
98
- readonly N2_300_Hose_Bleed: 5;
99
- readonly QD_1: 6;
100
- readonly QD_2: 7;
101
- readonly Count: 8;
102
- };
103
- export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
104
21
  export declare const actuators_solenoid_PowerState: {
105
22
  readonly kUnknown: 0;
106
23
  readonly kOff: 1;
@@ -113,36 +30,52 @@ export declare const actuators_solenoid_Opening: {
113
30
  readonly kOpen: 2;
114
31
  };
115
32
  export type actuators_solenoid_Opening = (typeof actuators_solenoid_Opening)[keyof typeof actuators_solenoid_Opening];
116
- export declare const node_regulator_Id: {
117
- readonly OxBoiloff: 0;
118
- readonly Count: 1;
33
+ export declare const StateId: {
34
+ readonly Safe: 0;
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
+ readonly Calibrate: 13;
119
48
  };
120
- export type node_regulator_Id = (typeof node_regulator_Id)[keyof typeof node_regulator_Id];
121
- export declare const proto_can_thermocouple_Id: {
122
- readonly OxTankBottom: 0;
123
- readonly OxTankTop: 1;
124
- readonly FuelTank: 2;
125
- readonly OxInjector: 3;
126
- readonly Chamber1: 4;
127
- readonly FuelInjector: 5;
128
- readonly Chamber2: 6;
129
- readonly ExtraNodeOne: 7;
49
+ export type StateId = (typeof StateId)[keyof typeof StateId];
50
+ export declare const Event: {
51
+ readonly Boot: 0;
52
+ readonly NextState: 1;
53
+ readonly PreviousState: 2;
54
+ readonly Timeout: 3;
55
+ readonly CalibrateRequest: 4;
56
+ readonly BurnwireCut: 5;
57
+ readonly Abort: 6;
58
+ readonly None: 7;
130
59
  readonly Count: 8;
131
60
  };
132
- export type proto_can_thermocouple_Id = (typeof proto_can_thermocouple_Id)[keyof typeof proto_can_thermocouple_Id];
133
- export declare const node_load_cell_Id: {
134
- readonly LoadCell1: 0;
135
- readonly LoadCell2: 1;
136
- readonly LoadCell3: 2;
137
- readonly Count: 3;
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;
138
67
  };
139
- export type node_load_cell_Id = (typeof node_load_cell_Id)[keyof typeof node_load_cell_Id];
140
- export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
141
- message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
142
- status_flags: import("typed-binary").ByteSchema;
68
+ export type fsm_AbortReason = (typeof fsm_AbortReason)[keyof typeof fsm_AbortReason];
69
+ export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
70
+ commanded_angle_deg: import("typed-binary").Float32Schema;
71
+ target_angle_deg: import("typed-binary").Float32Schema;
72
+ measured_angle_deg: import("typed-binary").Float32Schema;
73
+ current_ma: import("typed-binary").Float32Schema;
74
+ mode: import("typed-binary").ByteSchema;
75
+ power_state: import("typed-binary").ByteSchema;
143
76
  }>;
144
- export type HeartBeatTelemetry = bin.Parsed<typeof HeartBeatTelemetry>;
145
- export declare const actuators_bldc_BldcTelemetry: import("typed-binary").ObjectSchema<{
77
+ export type actuators_servo_ServoStatus = bin.Parsed<typeof actuators_servo_ServoStatus>;
78
+ export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
146
79
  valve_position: import("typed-binary").Float32Schema;
147
80
  motor_position: import("typed-binary").Float32Schema;
148
81
  timestamp: UInt64Schema;
@@ -154,120 +87,23 @@ export declare const actuators_bldc_BldcTelemetry: import("typed-binary").Object
154
87
  u_ff: import("typed-binary").Float32Schema;
155
88
  u_set: import("typed-binary").Float32Schema;
156
89
  u_total: import("typed-binary").Float32Schema;
157
- hysteresis_offset: import("typed-binary").Float32Schema;
158
- upstream_pressure: Float64Schema;
159
- downstream_pressure: Float64Schema;
160
- servo_encoder_value: Float64Schema;
161
- status_flags: import("typed-binary").ByteSchema;
162
- }>;
163
- export type actuators_bldc_BldcTelemetry = bin.Parsed<typeof actuators_bldc_BldcTelemetry>;
164
- export declare const BldcTelemetryPacket: import("typed-binary").ObjectSchema<{
165
- bldc_id: import("typed-binary").ByteSchema;
166
- fsm_state: import("typed-binary").ByteSchema;
167
- telemetry: import("typed-binary").ObjectSchema<{
168
- valve_position: import("typed-binary").Float32Schema;
169
- motor_position: import("typed-binary").Float32Schema;
170
- timestamp: UInt64Schema;
171
- current_draw: import("typed-binary").Float32Schema;
172
- u_p: import("typed-binary").Float32Schema;
173
- u_i: import("typed-binary").Float32Schema;
174
- u_d: import("typed-binary").Float32Schema;
175
- u_pid: import("typed-binary").Float32Schema;
176
- u_ff: import("typed-binary").Float32Schema;
177
- u_set: import("typed-binary").Float32Schema;
178
- u_total: import("typed-binary").Float32Schema;
179
- hysteresis_offset: import("typed-binary").Float32Schema;
180
- upstream_pressure: Float64Schema;
181
- downstream_pressure: Float64Schema;
182
- servo_encoder_value: Float64Schema;
183
- status_flags: import("typed-binary").ByteSchema;
184
- }>;
185
- }>;
186
- export type BldcTelemetryPacket = bin.Parsed<typeof BldcTelemetryPacket>;
187
- export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
188
- state_entry_time_ms: UInt64Schema;
189
- state_time_ms: UInt64Schema;
190
- current_state: import("typed-binary").ByteSchema;
191
- previous_state: import("typed-binary").ByteSchema;
192
- last_event: import("typed-binary").ByteSchema;
193
- last_abort_reason: import("typed-binary").ByteSchema;
194
- }>;
195
- export type fsm_FsmStatus = bin.Parsed<typeof fsm_FsmStatus>;
196
- export declare const FsmStatusPacket: import("typed-binary").ObjectSchema<{
197
- status: import("typed-binary").ObjectSchema<{
198
- state_entry_time_ms: UInt64Schema;
199
- state_time_ms: UInt64Schema;
200
- current_state: import("typed-binary").ByteSchema;
201
- previous_state: import("typed-binary").ByteSchema;
202
- last_event: import("typed-binary").ByteSchema;
203
- last_abort_reason: import("typed-binary").ByteSchema;
204
- }>;
205
- timestamp_ms: import("typed-binary").Uint32Schema;
90
+ position_raw: import("typed-binary").Float32Schema;
91
+ calibrated: import("typed-binary").ByteSchema;
206
92
  }>;
207
- export type FsmStatusPacket = bin.Parsed<typeof FsmStatusPacket>;
208
- export declare const sensors_pressure_PressureBatch: import("typed-binary").ObjectSchema<{
209
- t0_ms: import("typed-binary").Uint32Schema;
210
- dt_us: import("typed-binary").Uint16Schema;
211
- count: import("typed-binary").ByteSchema;
212
- seq: import("typed-binary").ByteSchema;
213
- overrun: import("typed-binary").BoolSchema;
214
- samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
215
- }>;
216
- export type sensors_pressure_PressureBatch = bin.Parsed<typeof sensors_pressure_PressureBatch>;
217
- export declare const PressureSensorPacket: import("typed-binary").ObjectSchema<{
218
- sensor_id: import("typed-binary").ByteSchema;
219
- data: 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
- }>;
228
- export type PressureSensorPacket = bin.Parsed<typeof PressureSensorPacket>;
229
- export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
230
- commanded_angle_deg: import("typed-binary").Float32Schema;
231
- target_angle_deg: import("typed-binary").Float32Schema;
232
- measured_angle_deg: import("typed-binary").Float32Schema;
233
- current_ma: import("typed-binary").Float32Schema;
234
- mode: import("typed-binary").ByteSchema;
235
- power_state: import("typed-binary").ByteSchema;
236
- }>;
237
- export type actuators_servo_ServoStatus = bin.Parsed<typeof actuators_servo_ServoStatus>;
238
- export declare const ServoStatusPacket: import("typed-binary").ObjectSchema<{
239
- servo_id: import("typed-binary").ByteSchema;
240
- timestamp_ms: import("typed-binary").Uint32Schema;
241
- status: import("typed-binary").ObjectSchema<{
242
- commanded_angle_deg: import("typed-binary").Float32Schema;
243
- target_angle_deg: import("typed-binary").Float32Schema;
244
- measured_angle_deg: import("typed-binary").Float32Schema;
245
- current_ma: import("typed-binary").Float32Schema;
246
- mode: import("typed-binary").ByteSchema;
247
- power_state: import("typed-binary").ByteSchema;
248
- }>;
249
- }>;
250
- export type ServoStatusPacket = bin.Parsed<typeof ServoStatusPacket>;
93
+ export type BldcTelemetry = bin.Parsed<typeof BldcTelemetry>;
251
94
  export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").ObjectSchema<{
252
95
  power_state: import("typed-binary").ByteSchema;
253
96
  opening: import("typed-binary").ByteSchema;
254
97
  }>;
255
98
  export type actuators_solenoid_SolenoidStatus = bin.Parsed<typeof actuators_solenoid_SolenoidStatus>;
256
- export declare const SolenoidStatusPacket: import("typed-binary").ObjectSchema<{
257
- solenoid_id: import("typed-binary").ByteSchema;
258
- timestamp_ms: import("typed-binary").Uint32Schema;
259
- status: import("typed-binary").ObjectSchema<{
260
- power_state: import("typed-binary").ByteSchema;
261
- opening: import("typed-binary").ByteSchema;
262
- }>;
99
+ export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
100
+ message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
263
101
  }>;
264
- export type SolenoidStatusPacket = bin.Parsed<typeof SolenoidStatusPacket>;
102
+ export type HeartBeatTelemetry = bin.Parsed<typeof HeartBeatTelemetry>;
265
103
  export declare const regulators_RegulatorStatus: import("typed-binary").ObjectSchema<{
266
104
  operator_enabled: import("typed-binary").BoolSchema;
267
105
  policy_enabled: import("typed-binary").BoolSchema;
268
106
  active: import("typed-binary").BoolSchema;
269
- reserved: import("typed-binary").BoolSchema;
270
- valveSetpoint: import("typed-binary").Float32Schema;
271
107
  setpoint: import("typed-binary").Float32Schema;
272
108
  kp: import("typed-binary").Float32Schema;
273
109
  ki: import("typed-binary").Float32Schema;
@@ -280,15 +116,13 @@ export declare const regulators_RegulatorStatus: import("typed-binary").ObjectSc
280
116
  last_update_ms: import("typed-binary").Uint32Schema;
281
117
  }>;
282
118
  export type regulators_RegulatorStatus = bin.Parsed<typeof regulators_RegulatorStatus>;
283
- export declare const RegulatorStatusPacket: import("typed-binary").ObjectSchema<{
284
- regulator_id: import("typed-binary").ByteSchema;
285
- timestamp_ms: import("typed-binary").Uint32Schema;
119
+ export declare const RegulatorStatusEntry: import("typed-binary").ObjectSchema<{
120
+ id: import("typed-binary").ByteSchema;
121
+ name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
286
122
  status: import("typed-binary").ObjectSchema<{
287
123
  operator_enabled: import("typed-binary").BoolSchema;
288
124
  policy_enabled: import("typed-binary").BoolSchema;
289
125
  active: import("typed-binary").BoolSchema;
290
- reserved: import("typed-binary").BoolSchema;
291
- valveSetpoint: import("typed-binary").Float32Schema;
292
126
  setpoint: import("typed-binary").Float32Schema;
293
127
  kp: import("typed-binary").Float32Schema;
294
128
  ki: import("typed-binary").Float32Schema;
@@ -301,26 +135,41 @@ export declare const RegulatorStatusPacket: import("typed-binary").ObjectSchema<
301
135
  last_update_ms: import("typed-binary").Uint32Schema;
302
136
  }>;
303
137
  }>;
304
- export type RegulatorStatusPacket = bin.Parsed<typeof RegulatorStatusPacket>;
305
- export declare const proto_can_thermocouple_ThermocoupleSample: import("typed-binary").ObjectSchema<{
306
- id: import("typed-binary").ByteSchema;
307
- timestamp_us: UInt64Schema;
308
- interval_us: import("typed-binary").Float32Schema;
309
- temperature_c: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
310
- }>;
311
- export type proto_can_thermocouple_ThermocoupleSample = bin.Parsed<typeof proto_can_thermocouple_ThermocoupleSample>;
312
- export declare const ThermocouplePacket: import("typed-binary").ObjectSchema<{
313
- thermocouple_id: import("typed-binary").ByteSchema;
138
+ export type RegulatorStatusEntry = bin.Parsed<typeof RegulatorStatusEntry>;
139
+ export declare const RegulatorStatusArrayPacket: import("typed-binary").ObjectSchema<{
140
+ count: import("typed-binary").ByteSchema;
314
141
  timestamp_ms: import("typed-binary").Uint32Schema;
315
- data: import("typed-binary").ObjectSchema<{
142
+ entries: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
316
143
  id: import("typed-binary").ByteSchema;
317
- timestamp_us: UInt64Schema;
318
- interval_us: import("typed-binary").Float32Schema;
319
- temperature_c: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
320
- }>;
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;
321
170
  }>;
322
- export type ThermocouplePacket = bin.Parsed<typeof ThermocouplePacket>;
323
- export declare const sensors_loadcell_LoadCellBatch: import("typed-binary").ObjectSchema<{
171
+ export type fsm_FsmStatus = bin.Parsed<typeof fsm_FsmStatus>;
172
+ export declare const sensors_pressure_PressureBatch: import("typed-binary").ObjectSchema<{
324
173
  t0_ms: import("typed-binary").Uint32Schema;
325
174
  dt_us: import("typed-binary").Uint16Schema;
326
175
  count: import("typed-binary").ByteSchema;
@@ -328,9 +177,9 @@ export declare const sensors_loadcell_LoadCellBatch: import("typed-binary").Obje
328
177
  overrun: import("typed-binary").BoolSchema;
329
178
  samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
330
179
  }>;
331
- export type sensors_loadcell_LoadCellBatch = bin.Parsed<typeof sensors_loadcell_LoadCellBatch>;
332
- export declare const LoadCellPacket: import("typed-binary").ObjectSchema<{
333
- loadcell_id: import("typed-binary").ByteSchema;
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;
334
183
  data: import("typed-binary").ObjectSchema<{
335
184
  t0_ms: import("typed-binary").Uint32Schema;
336
185
  dt_us: import("typed-binary").Uint16Schema;
@@ -340,401 +189,169 @@ export declare const LoadCellPacket: import("typed-binary").ObjectSchema<{
340
189
  samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
341
190
  }>;
342
191
  }>;
343
- export type LoadCellPacket = bin.Parsed<typeof LoadCellPacket>;
344
- export declare const actuators_bldc_PidGains: import("typed-binary").ObjectSchema<{
345
- p: Float64Schema;
346
- i: Float64Schema;
347
- d: Float64Schema;
348
- normalization_factor: Float64Schema;
349
- }>;
350
- export type actuators_bldc_PidGains = bin.Parsed<typeof actuators_bldc_PidGains>;
351
- export declare const SigmoidParameters: import("typed-binary").ObjectSchema<{
352
- a: Float64Schema;
353
- b: Float64Schema;
354
- }>;
355
- export type SigmoidParameters = bin.Parsed<typeof SigmoidParameters>;
356
- export declare const actuators_bldc_ControllerConfig: import("typed-binary").ObjectSchema<{
357
- pressurize_pid_gains: import("typed-binary").ObjectSchema<{
358
- p: Float64Schema;
359
- i: Float64Schema;
360
- d: Float64Schema;
361
- normalization_factor: Float64Schema;
362
- }>;
363
- run_pid_gains: import("typed-binary").ObjectSchema<{
364
- p: Float64Schema;
365
- i: Float64Schema;
366
- d: Float64Schema;
367
- normalization_factor: Float64Schema;
368
- }>;
369
- minimum_position: Float64Schema;
370
- maximum_position: Float64Schema;
371
- valve_encoder_offset: Float64Schema;
372
- can_watchdog_timeout: UInt64Schema;
373
- end_pressure_ref: Float64Schema;
374
- pressurizing_time: Float64Schema;
375
- gear_ratio: import("typed-binary").Float32Schema;
376
- max_torque: Float64Schema;
377
- dvdt_nominal: Float64Schema;
378
- cv_max: Float64Schema;
379
- control_valve_curve: import("typed-binary").ObjectSchema<{
380
- a: Float64Schema;
381
- b: Float64Schema;
382
- }>;
383
- main_valve_curve: import("typed-binary").ObjectSchema<{
384
- a: Float64Schema;
385
- b: Float64Schema;
386
- }>;
387
- }>;
388
- export type actuators_bldc_ControllerConfig = bin.Parsed<typeof actuators_bldc_ControllerConfig>;
389
- export declare const BldcConfigTelmetryPacket: import("typed-binary").ObjectSchema<{
390
- bldc_id: import("typed-binary").ByteSchema;
391
- config: import("typed-binary").ObjectSchema<{
392
- pressurize_pid_gains: import("typed-binary").ObjectSchema<{
393
- p: Float64Schema;
394
- i: Float64Schema;
395
- d: Float64Schema;
396
- normalization_factor: Float64Schema;
397
- }>;
398
- run_pid_gains: import("typed-binary").ObjectSchema<{
399
- p: Float64Schema;
400
- i: Float64Schema;
401
- d: Float64Schema;
402
- normalization_factor: Float64Schema;
403
- }>;
404
- minimum_position: Float64Schema;
405
- maximum_position: Float64Schema;
406
- valve_encoder_offset: Float64Schema;
407
- can_watchdog_timeout: UInt64Schema;
408
- end_pressure_ref: Float64Schema;
409
- pressurizing_time: Float64Schema;
410
- gear_ratio: import("typed-binary").Float32Schema;
411
- max_torque: Float64Schema;
412
- dvdt_nominal: Float64Schema;
413
- cv_max: Float64Schema;
414
- control_valve_curve: import("typed-binary").ObjectSchema<{
415
- a: Float64Schema;
416
- b: Float64Schema;
417
- }>;
418
- main_valve_curve: import("typed-binary").ObjectSchema<{
419
- a: Float64Schema;
420
- b: Float64Schema;
421
- }>;
422
- }>;
423
- }>;
424
- export type BldcConfigTelmetryPacket = bin.Parsed<typeof BldcConfigTelmetryPacket>;
425
- export declare const BatteryMonitorTelemetryPacket: import("typed-binary").ObjectSchema<{
426
- timestamp_ms: import("typed-binary").Uint32Schema;
427
- voltages: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
428
- }>;
429
- export type BatteryMonitorTelemetryPacket = bin.Parsed<typeof BatteryMonitorTelemetryPacket>;
192
+ export type PressureSensorData = bin.Parsed<typeof PressureSensorData>;
430
193
  export declare const spec: {
431
- HeartBeatTelemetry: {
194
+ actuators_servo_ServoStatus: {
432
195
  port: number;
433
196
  schema: import("typed-binary").ObjectSchema<{
434
- message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
435
- status_flags: import("typed-binary").ByteSchema;
436
- }>;
437
- enums: {};
438
- };
439
- BldcTelemetryPacket: {
440
- port: number;
441
- fragment: string;
442
- schema: import("typed-binary").ObjectSchema<{
443
- bldc_id: import("typed-binary").ByteSchema;
444
- fsm_state: import("typed-binary").ByteSchema;
445
- telemetry: import("typed-binary").ObjectSchema<{
446
- valve_position: import("typed-binary").Float32Schema;
447
- motor_position: import("typed-binary").Float32Schema;
448
- timestamp: UInt64Schema;
449
- current_draw: import("typed-binary").Float32Schema;
450
- u_p: import("typed-binary").Float32Schema;
451
- u_i: import("typed-binary").Float32Schema;
452
- u_d: import("typed-binary").Float32Schema;
453
- u_pid: import("typed-binary").Float32Schema;
454
- u_ff: import("typed-binary").Float32Schema;
455
- u_set: import("typed-binary").Float32Schema;
456
- u_total: import("typed-binary").Float32Schema;
457
- hysteresis_offset: import("typed-binary").Float32Schema;
458
- upstream_pressure: Float64Schema;
459
- downstream_pressure: Float64Schema;
460
- servo_encoder_value: Float64Schema;
461
- status_flags: import("typed-binary").ByteSchema;
462
- }>;
197
+ commanded_angle_deg: import("typed-binary").Float32Schema;
198
+ target_angle_deg: import("typed-binary").Float32Schema;
199
+ measured_angle_deg: import("typed-binary").Float32Schema;
200
+ current_ma: import("typed-binary").Float32Schema;
201
+ mode: import("typed-binary").ByteSchema;
202
+ power_state: import("typed-binary").ByteSchema;
463
203
  }>;
464
204
  enums: {
465
- bldc_id: {
466
- readonly Fuel: 0;
467
- readonly Ox: 1;
468
- readonly Count: 2;
205
+ mode: {
206
+ readonly kUnknown: 0;
207
+ readonly kPosition: 1;
208
+ readonly kCalibrate: 2;
469
209
  };
470
- fsm_state: {
471
- readonly Safe: 0;
472
- readonly N2Fill: 1;
473
- readonly PostN2Fill: 2;
474
- readonly OxFill: 3;
475
- readonly PostOxFill: 4;
476
- readonly QDDisconnect: 5;
477
- readonly Pressurized: 6;
478
- readonly Armed: 7;
479
- readonly Burn: 8;
480
- readonly Shutdown: 9;
481
- readonly PostShutdown: 10;
482
- readonly Purge: 11;
483
- readonly Hold: 12;
484
- };
485
- telemetry: {};
486
- };
487
- };
488
- FsmStatusPacket: {
489
- port: number;
490
- schema: import("typed-binary").ObjectSchema<{
491
- status: import("typed-binary").ObjectSchema<{
492
- state_entry_time_ms: UInt64Schema;
493
- state_time_ms: UInt64Schema;
494
- current_state: import("typed-binary").ByteSchema;
495
- previous_state: import("typed-binary").ByteSchema;
496
- last_event: import("typed-binary").ByteSchema;
497
- last_abort_reason: import("typed-binary").ByteSchema;
498
- }>;
499
- timestamp_ms: import("typed-binary").Uint32Schema;
500
- }>;
501
- enums: {
502
- status: {
503
- current_state: {
504
- readonly Safe: 0;
505
- readonly N2Fill: 1;
506
- readonly PostN2Fill: 2;
507
- readonly OxFill: 3;
508
- readonly PostOxFill: 4;
509
- readonly QDDisconnect: 5;
510
- readonly Pressurized: 6;
511
- readonly Armed: 7;
512
- readonly Burn: 8;
513
- readonly Shutdown: 9;
514
- readonly PostShutdown: 10;
515
- readonly Purge: 11;
516
- readonly Hold: 12;
517
- };
518
- previous_state: {
519
- readonly Safe: 0;
520
- readonly N2Fill: 1;
521
- readonly PostN2Fill: 2;
522
- readonly OxFill: 3;
523
- readonly PostOxFill: 4;
524
- readonly QDDisconnect: 5;
525
- readonly Pressurized: 6;
526
- readonly Armed: 7;
527
- readonly Burn: 8;
528
- readonly Shutdown: 9;
529
- readonly PostShutdown: 10;
530
- readonly Purge: 11;
531
- readonly Hold: 12;
532
- };
533
- last_event: {
534
- readonly Boot: 0;
535
- readonly NextState: 1;
536
- readonly PreviousState: 2;
537
- readonly Timeout: 3;
538
- readonly CalibrateRequest: 4;
539
- readonly BurnwireCut: 5;
540
- readonly Abort: 6;
541
- readonly None: 7;
542
- readonly Count: 8;
543
- };
544
- last_abort_reason: {
545
- readonly None: 0;
546
- readonly Manual: 1;
547
- readonly FuelTankOverpressure: 2;
548
- readonly OxTankOverpressure: 3;
549
- readonly ChamberUnderpressure: 4;
550
- };
210
+ power_state: {
211
+ readonly kUnknown: 0;
212
+ readonly kOff: 1;
213
+ readonly kBooting: 2;
214
+ readonly kOn: 3;
551
215
  };
552
216
  };
553
217
  };
554
- PressureSensorPacket: {
218
+ BldcTelemetry: {
555
219
  port: number;
556
- fragment: string;
557
220
  schema: import("typed-binary").ObjectSchema<{
558
- sensor_id: import("typed-binary").ByteSchema;
559
- data: import("typed-binary").ObjectSchema<{
560
- t0_ms: import("typed-binary").Uint32Schema;
561
- dt_us: import("typed-binary").Uint16Schema;
562
- count: import("typed-binary").ByteSchema;
563
- seq: import("typed-binary").ByteSchema;
564
- overrun: import("typed-binary").BoolSchema;
565
- samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
566
- }>;
221
+ valve_position: import("typed-binary").Float32Schema;
222
+ motor_position: import("typed-binary").Float32Schema;
223
+ timestamp: UInt64Schema;
224
+ current_draw: import("typed-binary").Float32Schema;
225
+ u_p: import("typed-binary").Float32Schema;
226
+ u_i: import("typed-binary").Float32Schema;
227
+ u_d: import("typed-binary").Float32Schema;
228
+ u_pid: import("typed-binary").Float32Schema;
229
+ u_ff: import("typed-binary").Float32Schema;
230
+ u_set: import("typed-binary").Float32Schema;
231
+ u_total: import("typed-binary").Float32Schema;
232
+ position_raw: import("typed-binary").Float32Schema;
233
+ calibrated: import("typed-binary").ByteSchema;
567
234
  }>;
568
- enums: {
569
- sensor_id: {
570
- readonly N2Tank: 0;
571
- readonly OxTank: 1;
572
- readonly OxInjector: 2;
573
- readonly FuelTank: 3;
574
- readonly FuelInjector: 4;
575
- readonly FuelInlet: 5;
576
- readonly Chamber: 6;
577
- readonly OxSupply: 7;
578
- readonly N2_300: 8;
579
- readonly Count: 9;
580
- };
581
- data: {};
582
- };
235
+ enums: {};
583
236
  };
584
- ServoStatusPacket: {
237
+ actuators_solenoid_SolenoidStatus: {
585
238
  port: number;
586
- fragment: string;
587
239
  schema: import("typed-binary").ObjectSchema<{
588
- servo_id: import("typed-binary").ByteSchema;
589
- timestamp_ms: import("typed-binary").Uint32Schema;
590
- status: import("typed-binary").ObjectSchema<{
591
- commanded_angle_deg: import("typed-binary").Float32Schema;
592
- target_angle_deg: import("typed-binary").Float32Schema;
593
- measured_angle_deg: import("typed-binary").Float32Schema;
594
- current_ma: import("typed-binary").Float32Schema;
595
- mode: import("typed-binary").ByteSchema;
596
- power_state: import("typed-binary").ByteSchema;
597
- }>;
240
+ power_state: import("typed-binary").ByteSchema;
241
+ opening: import("typed-binary").ByteSchema;
598
242
  }>;
599
243
  enums: {
600
- servo_id: {
601
- readonly MainFuel: 0;
602
- readonly MainOx: 1;
603
- readonly OxFill: 2;
604
- readonly OxBoiloff: 3;
605
- readonly OxSupply: 4;
606
- readonly Purge: 5;
607
- readonly Count: 6;
244
+ power_state: {
245
+ readonly kUnknown: 0;
246
+ readonly kOff: 1;
247
+ readonly kOn: 2;
608
248
  };
609
- status: {
610
- mode: {
611
- readonly kUnknown: 0;
612
- readonly kPosition: 1;
613
- readonly kCalibrate: 2;
614
- };
615
- power_state: {
616
- readonly kUnknown: 0;
617
- readonly kOff: 1;
618
- readonly kBooting: 2;
619
- readonly kOn: 3;
620
- };
249
+ opening: {
250
+ readonly kUnknown: 0;
251
+ readonly kClosed: 1;
252
+ readonly kOpen: 2;
621
253
  };
622
254
  };
623
255
  };
624
- SolenoidStatusPacket: {
625
- port: number;
626
- fragment: string;
256
+ HeartBeatTelemetry: {
627
257
  schema: import("typed-binary").ObjectSchema<{
628
- solenoid_id: import("typed-binary").ByteSchema;
629
- timestamp_ms: import("typed-binary").Uint32Schema;
630
- status: import("typed-binary").ObjectSchema<{
631
- power_state: import("typed-binary").ByteSchema;
632
- opening: import("typed-binary").ByteSchema;
633
- }>;
258
+ message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
634
259
  }>;
635
- enums: {
636
- solenoid_id: {
637
- readonly FuelVent: 0;
638
- readonly OxVent: 1;
639
- readonly N2Fill: 2;
640
- readonly OxHoseBleed: 3;
641
- readonly N2_300_Supply: 4;
642
- readonly N2_300_Hose_Bleed: 5;
643
- readonly QD_1: 6;
644
- readonly QD_2: 7;
645
- readonly Count: 8;
646
- };
647
- status: {
648
- power_state: {
649
- readonly kUnknown: 0;
650
- readonly kOff: 1;
651
- readonly kOn: 2;
652
- };
653
- opening: {
654
- readonly kUnknown: 0;
655
- readonly kClosed: 1;
656
- readonly kOpen: 2;
657
- };
658
- };
659
- };
260
+ enums: {};
660
261
  };
661
- RegulatorStatusPacket: {
262
+ RegulatorStatusArrayPacket: {
662
263
  port: number;
663
- fragment: string;
664
264
  schema: import("typed-binary").ObjectSchema<{
665
- regulator_id: import("typed-binary").ByteSchema;
265
+ count: import("typed-binary").ByteSchema;
666
266
  timestamp_ms: import("typed-binary").Uint32Schema;
667
- status: import("typed-binary").ObjectSchema<{
668
- operator_enabled: import("typed-binary").BoolSchema;
669
- policy_enabled: import("typed-binary").BoolSchema;
670
- active: import("typed-binary").BoolSchema;
671
- reserved: import("typed-binary").BoolSchema;
672
- valveSetpoint: import("typed-binary").Float32Schema;
673
- setpoint: import("typed-binary").Float32Schema;
674
- kp: import("typed-binary").Float32Schema;
675
- ki: import("typed-binary").Float32Schema;
676
- kd: import("typed-binary").Float32Schema;
677
- integral: import("typed-binary").Float32Schema;
678
- previous_error: import("typed-binary").Float32Schema;
679
- last_measurement: import("typed-binary").Float32Schema;
680
- last_output: import("typed-binary").Float32Schema;
681
- last_servo_command_: import("typed-binary").Float32Schema;
682
- last_update_ms: import("typed-binary").Uint32Schema;
683
- }>;
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
+ }>>;
684
286
  }>;
685
- enums: {
686
- regulator_id: {
687
- readonly OxBoiloff: 0;
688
- readonly Count: 1;
689
- };
690
- status: {};
691
- };
287
+ enums: {};
692
288
  };
693
- ThermocouplePacket: {
289
+ fsm_FsmStatus: {
694
290
  port: number;
695
- fragment: string;
696
291
  schema: import("typed-binary").ObjectSchema<{
697
- thermocouple_id: import("typed-binary").ByteSchema;
698
- timestamp_ms: import("typed-binary").Uint32Schema;
699
- data: import("typed-binary").ObjectSchema<{
700
- id: import("typed-binary").ByteSchema;
701
- timestamp_us: UInt64Schema;
702
- interval_us: import("typed-binary").Float32Schema;
703
- temperature_c: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
704
- }>;
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;
705
298
  }>;
706
299
  enums: {
707
- thermocouple_id: {
708
- readonly OxTankBottom: 0;
709
- readonly OxTankTop: 1;
710
- readonly FuelTank: 2;
711
- readonly OxInjector: 3;
712
- readonly Chamber1: 4;
713
- readonly FuelInjector: 5;
714
- readonly Chamber2: 6;
715
- readonly ExtraNodeOne: 7;
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;
716
341
  readonly Count: 8;
717
342
  };
718
- data: {
719
- id: {
720
- readonly OxTankBottom: 0;
721
- readonly OxTankTop: 1;
722
- readonly FuelTank: 2;
723
- readonly OxInjector: 3;
724
- readonly Chamber1: 4;
725
- readonly FuelInjector: 5;
726
- readonly Chamber2: 6;
727
- readonly ExtraNodeOne: 7;
728
- readonly Count: 8;
729
- };
343
+ last_abort_reason: {
344
+ readonly None: 0;
345
+ readonly FuelTankOverpressure: 1;
346
+ readonly OxTankOverpressure: 2;
347
+ readonly ChamberUnderpressure: 3;
730
348
  };
731
349
  };
732
350
  };
733
- LoadCellPacket: {
351
+ PressureSensorData: {
734
352
  port: number;
735
- fragment: string;
736
353
  schema: import("typed-binary").ObjectSchema<{
737
- loadcell_id: import("typed-binary").ByteSchema;
354
+ sensor_id: import("typed-binary").ByteSchema;
738
355
  data: import("typed-binary").ObjectSchema<{
739
356
  t0_ms: import("typed-binary").Uint32Schema;
740
357
  dt_us: import("typed-binary").Uint16Schema;
@@ -745,76 +362,9 @@ export declare const spec: {
745
362
  }>;
746
363
  }>;
747
364
  enums: {
748
- loadcell_id: {
749
- readonly LoadCell1: 0;
750
- readonly LoadCell2: 1;
751
- readonly LoadCell3: 2;
752
- readonly Count: 3;
753
- };
754
365
  data: {};
755
366
  };
756
367
  };
757
- BldcConfigTelmetryPacket: {
758
- port: number;
759
- fragment: string;
760
- schema: import("typed-binary").ObjectSchema<{
761
- bldc_id: import("typed-binary").ByteSchema;
762
- config: import("typed-binary").ObjectSchema<{
763
- pressurize_pid_gains: import("typed-binary").ObjectSchema<{
764
- p: Float64Schema;
765
- i: Float64Schema;
766
- d: Float64Schema;
767
- normalization_factor: Float64Schema;
768
- }>;
769
- run_pid_gains: import("typed-binary").ObjectSchema<{
770
- p: Float64Schema;
771
- i: Float64Schema;
772
- d: Float64Schema;
773
- normalization_factor: Float64Schema;
774
- }>;
775
- minimum_position: Float64Schema;
776
- maximum_position: Float64Schema;
777
- valve_encoder_offset: Float64Schema;
778
- can_watchdog_timeout: UInt64Schema;
779
- end_pressure_ref: Float64Schema;
780
- pressurizing_time: Float64Schema;
781
- gear_ratio: import("typed-binary").Float32Schema;
782
- max_torque: Float64Schema;
783
- dvdt_nominal: Float64Schema;
784
- cv_max: Float64Schema;
785
- control_valve_curve: import("typed-binary").ObjectSchema<{
786
- a: Float64Schema;
787
- b: Float64Schema;
788
- }>;
789
- main_valve_curve: import("typed-binary").ObjectSchema<{
790
- a: Float64Schema;
791
- b: Float64Schema;
792
- }>;
793
- }>;
794
- }>;
795
- enums: {
796
- bldc_id: {
797
- readonly LoadCell1: 0;
798
- readonly LoadCell2: 1;
799
- readonly LoadCell3: 2;
800
- readonly Count: 3;
801
- };
802
- config: {
803
- pressurize_pid_gains: {};
804
- run_pid_gains: {};
805
- control_valve_curve: {};
806
- main_valve_curve: {};
807
- };
808
- };
809
- };
810
- BatteryMonitorTelemetryPacket: {
811
- port: number;
812
- schema: import("typed-binary").ObjectSchema<{
813
- timestamp_ms: import("typed-binary").Uint32Schema;
814
- voltages: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
815
- }>;
816
- enums: {};
817
- };
818
368
  };
819
369
  export default spec;
820
370
  export type Spec = typeof spec;