fossekall-interface 0.1.23 → 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.
- package/dist/generated/ecu/commands.d.ts +187 -48
- package/dist/generated/ecu/commands.js +114 -25
- package/dist/generated/ecu/telemetry.d.ts +181 -62
- package/dist/generated/ecu/telemetry.js +74 -30
- package/package.json +1 -1
|
@@ -1,37 +1,49 @@
|
|
|
1
1
|
import bin from 'typed-binary';
|
|
2
|
+
export declare const node_bldc_Id: {
|
|
3
|
+
readonly kFuel: 0;
|
|
4
|
+
readonly kOx: 1;
|
|
5
|
+
readonly kCount: 2;
|
|
6
|
+
};
|
|
7
|
+
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;
|
|
11
|
+
};
|
|
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];
|
|
2
30
|
export declare const Event: {
|
|
3
31
|
readonly Boot: 0;
|
|
4
32
|
readonly NextState: 1;
|
|
5
33
|
readonly PreviousState: 2;
|
|
6
34
|
readonly Timeout: 3;
|
|
7
35
|
readonly CalibrateRequest: 4;
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
36
|
+
readonly BurnwireCut: 5;
|
|
37
|
+
readonly Abort: 6;
|
|
38
|
+
readonly None: 7;
|
|
39
|
+
readonly Count: 8;
|
|
11
40
|
};
|
|
12
41
|
export type Event = (typeof Event)[keyof typeof Event];
|
|
13
|
-
export declare const StateId: {
|
|
14
|
-
readonly Safe: 0;
|
|
15
|
-
readonly FuelFill: 1;
|
|
16
|
-
readonly PostFuelFill: 2;
|
|
17
|
-
readonly N2Fill: 3;
|
|
18
|
-
readonly PostN2Fill: 4;
|
|
19
|
-
readonly OxFill: 5;
|
|
20
|
-
readonly PostOxFill: 6;
|
|
21
|
-
readonly Pressurized: 7;
|
|
22
|
-
readonly Armed: 8;
|
|
23
|
-
readonly Burn: 9;
|
|
24
|
-
readonly Shutdown: 10;
|
|
25
|
-
readonly PostBurn: 11;
|
|
26
|
-
readonly Depressurize: 12;
|
|
27
|
-
readonly Calibrate: 13;
|
|
28
|
-
};
|
|
29
|
-
export type StateId = (typeof StateId)[keyof typeof StateId];
|
|
30
42
|
export declare const node_servo_Id: {
|
|
31
43
|
readonly kMainFuel: 0;
|
|
32
44
|
readonly kMainOx: 1;
|
|
33
45
|
readonly kOxFill: 2;
|
|
34
|
-
readonly
|
|
46
|
+
readonly kOxVent: 3;
|
|
35
47
|
readonly kOxSupply: 4;
|
|
36
48
|
readonly kCount: 5;
|
|
37
49
|
};
|
|
@@ -51,8 +63,32 @@ export declare const actuators_servo_StartPolicy: {
|
|
|
51
63
|
readonly kNoInterrupt: 1;
|
|
52
64
|
};
|
|
53
65
|
export type actuators_servo_StartPolicy = (typeof actuators_servo_StartPolicy)[keyof typeof actuators_servo_StartPolicy];
|
|
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;
|
|
78
|
+
};
|
|
79
|
+
export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
|
|
80
|
+
export declare const SolenoidCommands_OpeningType: {
|
|
81
|
+
readonly Open: 0;
|
|
82
|
+
readonly Close: 1;
|
|
83
|
+
};
|
|
84
|
+
export type SolenoidCommands_OpeningType = (typeof SolenoidCommands_OpeningType)[keyof typeof SolenoidCommands_OpeningType];
|
|
85
|
+
export declare const ControlPolicyCommands_PolicyValue: {
|
|
86
|
+
readonly Disable: 0;
|
|
87
|
+
readonly Enable: 1;
|
|
88
|
+
};
|
|
89
|
+
export type ControlPolicyCommands_PolicyValue = (typeof ControlPolicyCommands_PolicyValue)[keyof typeof ControlPolicyCommands_PolicyValue];
|
|
54
90
|
export declare const node_regulator_Id: {
|
|
55
|
-
readonly
|
|
91
|
+
readonly kOxVent: 0;
|
|
56
92
|
readonly kCount: 1;
|
|
57
93
|
};
|
|
58
94
|
export type node_regulator_Id = (typeof node_regulator_Id)[keyof typeof node_regulator_Id];
|
|
@@ -61,9 +97,25 @@ export declare const RegulatorCommands_RegulatorValue: {
|
|
|
61
97
|
readonly Enable: 1;
|
|
62
98
|
};
|
|
63
99
|
export type RegulatorCommands_RegulatorValue = (typeof RegulatorCommands_RegulatorValue)[keyof typeof RegulatorCommands_RegulatorValue];
|
|
100
|
+
export declare const BldcCommands_SetBldcPayload: import("typed-binary").ObjectSchema<{
|
|
101
|
+
bldc_id: import("typed-binary").ByteSchema;
|
|
102
|
+
command: import("typed-binary").Uint32Schema;
|
|
103
|
+
}>;
|
|
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>;
|
|
64
117
|
export declare const FsmCommands_RaiseEventPayload: import("typed-binary").ObjectSchema<{
|
|
65
118
|
event: import("typed-binary").ByteSchema;
|
|
66
|
-
current_state: import("typed-binary").ByteSchema;
|
|
67
119
|
}>;
|
|
68
120
|
export type FsmCommands_RaiseEventPayload = bin.Parsed<typeof FsmCommands_RaiseEventPayload>;
|
|
69
121
|
export declare const ServoCommands_OpenCloseServoPayload: import("typed-binary").ObjectSchema<{
|
|
@@ -84,6 +136,15 @@ export declare const ServoCommands_SetServoPayload: import("typed-binary").Objec
|
|
|
84
136
|
start_policy: import("typed-binary").ByteSchema;
|
|
85
137
|
}>;
|
|
86
138
|
export type ServoCommands_SetServoPayload = bin.Parsed<typeof ServoCommands_SetServoPayload>;
|
|
139
|
+
export declare const SolenoidCommands_OpenCloseSolenoidPayload: import("typed-binary").ObjectSchema<{
|
|
140
|
+
solenoid_id: import("typed-binary").ByteSchema;
|
|
141
|
+
opening_type: import("typed-binary").ByteSchema;
|
|
142
|
+
}>;
|
|
143
|
+
export type SolenoidCommands_OpenCloseSolenoidPayload = bin.Parsed<typeof SolenoidCommands_OpenCloseSolenoidPayload>;
|
|
144
|
+
export declare const ControlPolicyCommands_SetManualPolicyPayload: import("typed-binary").ObjectSchema<{
|
|
145
|
+
value: import("typed-binary").ByteSchema;
|
|
146
|
+
}>;
|
|
147
|
+
export type ControlPolicyCommands_SetManualPolicyPayload = bin.Parsed<typeof ControlPolicyCommands_SetManualPolicyPayload>;
|
|
87
148
|
export declare const RegulatorCommands_SetEnabledPayload: import("typed-binary").ObjectSchema<{
|
|
88
149
|
regulator_id: import("typed-binary").ByteSchema;
|
|
89
150
|
value: import("typed-binary").ByteSchema;
|
|
@@ -102,11 +163,66 @@ export declare const RegulatorCommands_SetGainsPayload: import("typed-binary").O
|
|
|
102
163
|
}>;
|
|
103
164
|
export type RegulatorCommands_SetGainsPayload = bin.Parsed<typeof RegulatorCommands_SetGainsPayload>;
|
|
104
165
|
export declare const spec: {
|
|
166
|
+
BldcCommands_SetBldcPayload: {
|
|
167
|
+
id: number;
|
|
168
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
169
|
+
bldc_id: import("typed-binary").ByteSchema;
|
|
170
|
+
command: import("typed-binary").Uint32Schema;
|
|
171
|
+
}>;
|
|
172
|
+
enums: {
|
|
173
|
+
bldc_id: {
|
|
174
|
+
readonly kFuel: 0;
|
|
175
|
+
readonly kOx: 1;
|
|
176
|
+
readonly kCount: 2;
|
|
177
|
+
};
|
|
178
|
+
command: {
|
|
179
|
+
readonly open: 0;
|
|
180
|
+
readonly close: 1;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
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
|
+
};
|
|
105
222
|
FsmCommands_RaiseEventPayload: {
|
|
106
223
|
id: number;
|
|
107
224
|
schema: import("typed-binary").ObjectSchema<{
|
|
108
225
|
event: import("typed-binary").ByteSchema;
|
|
109
|
-
current_state: import("typed-binary").ByteSchema;
|
|
110
226
|
}>;
|
|
111
227
|
enums: {
|
|
112
228
|
event: {
|
|
@@ -115,25 +231,10 @@ export declare const spec: {
|
|
|
115
231
|
readonly PreviousState: 2;
|
|
116
232
|
readonly Timeout: 3;
|
|
117
233
|
readonly CalibrateRequest: 4;
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
|
|
122
|
-
current_state: {
|
|
123
|
-
readonly Safe: 0;
|
|
124
|
-
readonly FuelFill: 1;
|
|
125
|
-
readonly PostFuelFill: 2;
|
|
126
|
-
readonly N2Fill: 3;
|
|
127
|
-
readonly PostN2Fill: 4;
|
|
128
|
-
readonly OxFill: 5;
|
|
129
|
-
readonly PostOxFill: 6;
|
|
130
|
-
readonly Pressurized: 7;
|
|
131
|
-
readonly Armed: 8;
|
|
132
|
-
readonly Burn: 9;
|
|
133
|
-
readonly Shutdown: 10;
|
|
134
|
-
readonly PostBurn: 11;
|
|
135
|
-
readonly Depressurize: 12;
|
|
136
|
-
readonly Calibrate: 13;
|
|
234
|
+
readonly BurnwireCut: 5;
|
|
235
|
+
readonly Abort: 6;
|
|
236
|
+
readonly None: 7;
|
|
237
|
+
readonly Count: 8;
|
|
137
238
|
};
|
|
138
239
|
};
|
|
139
240
|
};
|
|
@@ -152,7 +253,7 @@ export declare const spec: {
|
|
|
152
253
|
readonly kMainFuel: 0;
|
|
153
254
|
readonly kMainOx: 1;
|
|
154
255
|
readonly kOxFill: 2;
|
|
155
|
-
readonly
|
|
256
|
+
readonly kOxVent: 3;
|
|
156
257
|
readonly kOxSupply: 4;
|
|
157
258
|
readonly kCount: 5;
|
|
158
259
|
};
|
|
@@ -185,7 +286,7 @@ export declare const spec: {
|
|
|
185
286
|
readonly kMainFuel: 0;
|
|
186
287
|
readonly kMainOx: 1;
|
|
187
288
|
readonly kOxFill: 2;
|
|
188
|
-
readonly
|
|
289
|
+
readonly kOxVent: 3;
|
|
189
290
|
readonly kOxSupply: 4;
|
|
190
291
|
readonly kCount: 5;
|
|
191
292
|
};
|
|
@@ -199,6 +300,44 @@ export declare const spec: {
|
|
|
199
300
|
};
|
|
200
301
|
};
|
|
201
302
|
};
|
|
303
|
+
SolenoidCommands_OpenCloseSolenoidPayload: {
|
|
304
|
+
id: number;
|
|
305
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
306
|
+
solenoid_id: import("typed-binary").ByteSchema;
|
|
307
|
+
opening_type: import("typed-binary").ByteSchema;
|
|
308
|
+
}>;
|
|
309
|
+
enums: {
|
|
310
|
+
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;
|
|
322
|
+
};
|
|
323
|
+
opening_type: {
|
|
324
|
+
readonly Open: 0;
|
|
325
|
+
readonly Close: 1;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
ControlPolicyCommands_SetManualPolicyPayload: {
|
|
330
|
+
id: number;
|
|
331
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
332
|
+
value: import("typed-binary").ByteSchema;
|
|
333
|
+
}>;
|
|
334
|
+
enums: {
|
|
335
|
+
value: {
|
|
336
|
+
readonly Disable: 0;
|
|
337
|
+
readonly Enable: 1;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
};
|
|
202
341
|
RegulatorCommands_SetEnabledPayload: {
|
|
203
342
|
id: number;
|
|
204
343
|
schema: import("typed-binary").ObjectSchema<{
|
|
@@ -207,7 +346,7 @@ export declare const spec: {
|
|
|
207
346
|
}>;
|
|
208
347
|
enums: {
|
|
209
348
|
regulator_id: {
|
|
210
|
-
readonly
|
|
349
|
+
readonly kOxVent: 0;
|
|
211
350
|
readonly kCount: 1;
|
|
212
351
|
};
|
|
213
352
|
value: {
|
|
@@ -224,7 +363,7 @@ export declare const spec: {
|
|
|
224
363
|
}>;
|
|
225
364
|
enums: {
|
|
226
365
|
regulator_id: {
|
|
227
|
-
readonly
|
|
366
|
+
readonly kOxVent: 0;
|
|
228
367
|
readonly kCount: 1;
|
|
229
368
|
};
|
|
230
369
|
};
|
|
@@ -239,7 +378,7 @@ export declare const spec: {
|
|
|
239
378
|
}>;
|
|
240
379
|
enums: {
|
|
241
380
|
regulator_id: {
|
|
242
|
-
readonly
|
|
381
|
+
readonly kOxVent: 0;
|
|
243
382
|
readonly kCount: 1;
|
|
244
383
|
};
|
|
245
384
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-03-
|
|
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;
|
|
@@ -60,37 +60,47 @@ class Float64Schema extends Schema {
|
|
|
60
60
|
const u64 = new UInt64Schema();
|
|
61
61
|
const i64 = new Int64Schema();
|
|
62
62
|
const f64 = new Float64Schema();
|
|
63
|
+
export const node_bldc_Id = {
|
|
64
|
+
kFuel: 0,
|
|
65
|
+
kOx: 1,
|
|
66
|
+
kCount: 2,
|
|
67
|
+
};
|
|
68
|
+
export const BldcCommands_SetBldcCommand = {
|
|
69
|
+
open: 0,
|
|
70
|
+
close: 1,
|
|
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
|
+
};
|
|
63
88
|
export const Event = {
|
|
64
89
|
Boot: 0,
|
|
65
90
|
NextState: 1,
|
|
66
91
|
PreviousState: 2,
|
|
67
92
|
Timeout: 3,
|
|
68
93
|
CalibrateRequest: 4,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
export const StateId = {
|
|
74
|
-
Safe: 0,
|
|
75
|
-
FuelFill: 1,
|
|
76
|
-
PostFuelFill: 2,
|
|
77
|
-
N2Fill: 3,
|
|
78
|
-
PostN2Fill: 4,
|
|
79
|
-
OxFill: 5,
|
|
80
|
-
PostOxFill: 6,
|
|
81
|
-
Pressurized: 7,
|
|
82
|
-
Armed: 8,
|
|
83
|
-
Burn: 9,
|
|
84
|
-
Shutdown: 10,
|
|
85
|
-
PostBurn: 11,
|
|
86
|
-
Depressurize: 12,
|
|
87
|
-
Calibrate: 13,
|
|
94
|
+
BurnwireCut: 5,
|
|
95
|
+
Abort: 6,
|
|
96
|
+
None: 7,
|
|
97
|
+
Count: 8,
|
|
88
98
|
};
|
|
89
99
|
export const node_servo_Id = {
|
|
90
100
|
kMainFuel: 0,
|
|
91
101
|
kMainOx: 1,
|
|
92
102
|
kOxFill: 2,
|
|
93
|
-
|
|
103
|
+
kOxVent: 3,
|
|
94
104
|
kOxSupply: 4,
|
|
95
105
|
kCount: 5,
|
|
96
106
|
};
|
|
@@ -106,17 +116,50 @@ export const actuators_servo_StartPolicy = {
|
|
|
106
116
|
kPreempt: 0,
|
|
107
117
|
kNoInterrupt: 1,
|
|
108
118
|
};
|
|
119
|
+
export const node_solenoid_Id = {
|
|
120
|
+
kFuelVent: 0,
|
|
121
|
+
kOxVent: 1,
|
|
122
|
+
kN2Fill: 2,
|
|
123
|
+
kOxBleed: 3,
|
|
124
|
+
kN2_200_Supply: 4,
|
|
125
|
+
kN2_200_Bleed: 5,
|
|
126
|
+
kN2_300_Supply: 6,
|
|
127
|
+
kN2_300_Bleed: 7,
|
|
128
|
+
kQD_1: 8,
|
|
129
|
+
kQD_2: 9,
|
|
130
|
+
kCount: 10,
|
|
131
|
+
};
|
|
132
|
+
export const SolenoidCommands_OpeningType = {
|
|
133
|
+
Open: 0,
|
|
134
|
+
Close: 1,
|
|
135
|
+
};
|
|
136
|
+
export const ControlPolicyCommands_PolicyValue = {
|
|
137
|
+
Disable: 0,
|
|
138
|
+
Enable: 1,
|
|
139
|
+
};
|
|
109
140
|
export const node_regulator_Id = {
|
|
110
|
-
|
|
141
|
+
kOxVent: 0,
|
|
111
142
|
kCount: 1,
|
|
112
143
|
};
|
|
113
144
|
export const RegulatorCommands_RegulatorValue = {
|
|
114
145
|
Disable: 0,
|
|
115
146
|
Enable: 1,
|
|
116
147
|
};
|
|
148
|
+
export const BldcCommands_SetBldcPayload = bin.object({
|
|
149
|
+
bldc_id: bin.u8, // node::bldc::Id
|
|
150
|
+
command: bin.u32, // BldcCommands::SetBldcCommand
|
|
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
|
+
});
|
|
117
161
|
export const FsmCommands_RaiseEventPayload = bin.object({
|
|
118
162
|
event: bin.u8, // Event
|
|
119
|
-
current_state: bin.u8, // StateId
|
|
120
163
|
});
|
|
121
164
|
export const ServoCommands_OpenCloseServoPayload = bin.object({
|
|
122
165
|
servo_id: bin.u8, // node::servo::Id
|
|
@@ -134,6 +177,13 @@ export const ServoCommands_SetServoPayload = bin.object({
|
|
|
134
177
|
position_mode: bin.u8, // actuators::servo::PositionMode
|
|
135
178
|
start_policy: bin.u8, // actuators::servo::StartPolicy
|
|
136
179
|
});
|
|
180
|
+
export const SolenoidCommands_OpenCloseSolenoidPayload = bin.object({
|
|
181
|
+
solenoid_id: bin.u8, // node::solenoid::Id
|
|
182
|
+
opening_type: bin.u8, // SolenoidCommands::OpeningType
|
|
183
|
+
});
|
|
184
|
+
export const ControlPolicyCommands_SetManualPolicyPayload = bin.object({
|
|
185
|
+
value: bin.u8, // ControlPolicyCommands::PolicyValue
|
|
186
|
+
});
|
|
137
187
|
export const RegulatorCommands_SetEnabledPayload = bin.object({
|
|
138
188
|
regulator_id: bin.u8, // node::regulator::Id
|
|
139
189
|
value: bin.u8, // RegulatorCommands::RegulatorValue
|
|
@@ -149,12 +199,36 @@ export const RegulatorCommands_SetGainsPayload = bin.object({
|
|
|
149
199
|
kd: bin.f32, // float
|
|
150
200
|
});
|
|
151
201
|
export const spec = {
|
|
152
|
-
|
|
202
|
+
BldcCommands_SetBldcPayload: {
|
|
203
|
+
id: 64,
|
|
204
|
+
schema: BldcCommands_SetBldcPayload,
|
|
205
|
+
enums: {
|
|
206
|
+
bldc_id: node_bldc_Id,
|
|
207
|
+
command: BldcCommands_SetBldcCommand,
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
FsmCommands_NextStatePayload: {
|
|
153
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,
|
|
154
229
|
schema: FsmCommands_RaiseEventPayload,
|
|
155
230
|
enums: {
|
|
156
231
|
event: Event,
|
|
157
|
-
current_state: StateId,
|
|
158
232
|
},
|
|
159
233
|
},
|
|
160
234
|
ServoCommands_OpenCloseServoPayload: {
|
|
@@ -176,6 +250,21 @@ export const spec = {
|
|
|
176
250
|
start_policy: actuators_servo_StartPolicy,
|
|
177
251
|
},
|
|
178
252
|
},
|
|
253
|
+
SolenoidCommands_OpenCloseSolenoidPayload: {
|
|
254
|
+
id: 80,
|
|
255
|
+
schema: SolenoidCommands_OpenCloseSolenoidPayload,
|
|
256
|
+
enums: {
|
|
257
|
+
solenoid_id: node_solenoid_Id,
|
|
258
|
+
opening_type: SolenoidCommands_OpeningType,
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
ControlPolicyCommands_SetManualPolicyPayload: {
|
|
262
|
+
id: 96,
|
|
263
|
+
schema: ControlPolicyCommands_SetManualPolicyPayload,
|
|
264
|
+
enums: {
|
|
265
|
+
value: ControlPolicyCommands_PolicyValue,
|
|
266
|
+
},
|
|
267
|
+
},
|
|
179
268
|
RegulatorCommands_SetEnabledPayload: {
|
|
180
269
|
id: 112,
|
|
181
270
|
schema: RegulatorCommands_SetEnabledPayload,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import bin, { MaxValue, Schema, type IMeasurer, type ISerialInput, type ISerialOutput } from
|
|
1
|
+
import bin, { MaxValue, Schema, type IMeasurer, type ISerialInput, type ISerialOutput } from 'typed-binary';
|
|
2
2
|
declare class UInt64Schema extends Schema<bigint> {
|
|
3
3
|
readonly maxSize = 8;
|
|
4
4
|
read(input: ISerialInput): bigint;
|
|
@@ -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
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
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;
|
|
@@ -102,14 +100,96 @@ export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
|
|
|
102
100
|
message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
103
101
|
}>;
|
|
104
102
|
export type HeartBeatTelemetry = bin.Parsed<typeof HeartBeatTelemetry>;
|
|
103
|
+
export declare const regulators_RegulatorStatus: import("typed-binary").ObjectSchema<{
|
|
104
|
+
operator_enabled: import("typed-binary").BoolSchema;
|
|
105
|
+
policy_enabled: import("typed-binary").BoolSchema;
|
|
106
|
+
active: import("typed-binary").BoolSchema;
|
|
107
|
+
setpoint: import("typed-binary").Float32Schema;
|
|
108
|
+
kp: import("typed-binary").Float32Schema;
|
|
109
|
+
ki: import("typed-binary").Float32Schema;
|
|
110
|
+
kd: import("typed-binary").Float32Schema;
|
|
111
|
+
integral: import("typed-binary").Float32Schema;
|
|
112
|
+
previous_error: import("typed-binary").Float32Schema;
|
|
113
|
+
last_measurement: import("typed-binary").Float32Schema;
|
|
114
|
+
last_output: import("typed-binary").Float32Schema;
|
|
115
|
+
last_servo_command_: import("typed-binary").Float32Schema;
|
|
116
|
+
last_update_ms: import("typed-binary").Uint32Schema;
|
|
117
|
+
}>;
|
|
118
|
+
export type regulators_RegulatorStatus = bin.Parsed<typeof regulators_RegulatorStatus>;
|
|
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>;
|
|
122
|
+
status: import("typed-binary").ObjectSchema<{
|
|
123
|
+
operator_enabled: import("typed-binary").BoolSchema;
|
|
124
|
+
policy_enabled: import("typed-binary").BoolSchema;
|
|
125
|
+
active: import("typed-binary").BoolSchema;
|
|
126
|
+
setpoint: import("typed-binary").Float32Schema;
|
|
127
|
+
kp: import("typed-binary").Float32Schema;
|
|
128
|
+
ki: import("typed-binary").Float32Schema;
|
|
129
|
+
kd: import("typed-binary").Float32Schema;
|
|
130
|
+
integral: import("typed-binary").Float32Schema;
|
|
131
|
+
previous_error: import("typed-binary").Float32Schema;
|
|
132
|
+
last_measurement: import("typed-binary").Float32Schema;
|
|
133
|
+
last_output: import("typed-binary").Float32Schema;
|
|
134
|
+
last_servo_command_: import("typed-binary").Float32Schema;
|
|
135
|
+
last_update_ms: import("typed-binary").Uint32Schema;
|
|
136
|
+
}>;
|
|
137
|
+
}>;
|
|
138
|
+
export type RegulatorStatusEntry = bin.Parsed<typeof RegulatorStatusEntry>;
|
|
139
|
+
export declare const RegulatorStatusArrayPacket: import("typed-binary").ObjectSchema<{
|
|
140
|
+
count: import("typed-binary").ByteSchema;
|
|
141
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
142
|
+
entries: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
|
|
143
|
+
id: import("typed-binary").ByteSchema;
|
|
144
|
+
name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
145
|
+
status: import("typed-binary").ObjectSchema<{
|
|
146
|
+
operator_enabled: import("typed-binary").BoolSchema;
|
|
147
|
+
policy_enabled: import("typed-binary").BoolSchema;
|
|
148
|
+
active: import("typed-binary").BoolSchema;
|
|
149
|
+
setpoint: import("typed-binary").Float32Schema;
|
|
150
|
+
kp: import("typed-binary").Float32Schema;
|
|
151
|
+
ki: import("typed-binary").Float32Schema;
|
|
152
|
+
kd: import("typed-binary").Float32Schema;
|
|
153
|
+
integral: import("typed-binary").Float32Schema;
|
|
154
|
+
previous_error: import("typed-binary").Float32Schema;
|
|
155
|
+
last_measurement: import("typed-binary").Float32Schema;
|
|
156
|
+
last_output: import("typed-binary").Float32Schema;
|
|
157
|
+
last_servo_command_: import("typed-binary").Float32Schema;
|
|
158
|
+
last_update_ms: import("typed-binary").Uint32Schema;
|
|
159
|
+
}>;
|
|
160
|
+
}>>;
|
|
161
|
+
}>;
|
|
162
|
+
export type RegulatorStatusArrayPacket = bin.Parsed<typeof RegulatorStatusArrayPacket>;
|
|
105
163
|
export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
|
|
106
|
-
state_entry_time_ms:
|
|
107
|
-
state_time_ms:
|
|
164
|
+
state_entry_time_ms: UInt64Schema;
|
|
165
|
+
state_time_ms: UInt64Schema;
|
|
108
166
|
current_state: import("typed-binary").ByteSchema;
|
|
109
167
|
previous_state: import("typed-binary").ByteSchema;
|
|
110
168
|
last_event: import("typed-binary").ByteSchema;
|
|
169
|
+
last_abort_reason: import("typed-binary").ByteSchema;
|
|
111
170
|
}>;
|
|
112
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>;
|
|
113
193
|
export declare const spec: {
|
|
114
194
|
actuators_servo_ServoStatus: {
|
|
115
195
|
port: number;
|
|
@@ -154,18 +234,6 @@ export declare const spec: {
|
|
|
154
234
|
}>;
|
|
155
235
|
enums: {};
|
|
156
236
|
};
|
|
157
|
-
sensors_pressure_PressureBatch: {
|
|
158
|
-
port: number;
|
|
159
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
160
|
-
t0_ms: import("typed-binary").Uint32Schema;
|
|
161
|
-
dt_us: import("typed-binary").Uint16Schema;
|
|
162
|
-
count: import("typed-binary").ByteSchema;
|
|
163
|
-
seq: import("typed-binary").ByteSchema;
|
|
164
|
-
overrun: import("typed-binary").BoolSchema;
|
|
165
|
-
samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
166
|
-
}>;
|
|
167
|
-
enums: {};
|
|
168
|
-
};
|
|
169
237
|
actuators_solenoid_SolenoidStatus: {
|
|
170
238
|
port: number;
|
|
171
239
|
schema: import("typed-binary").ObjectSchema<{
|
|
@@ -191,46 +259,74 @@ export declare const spec: {
|
|
|
191
259
|
}>;
|
|
192
260
|
enums: {};
|
|
193
261
|
};
|
|
262
|
+
RegulatorStatusArrayPacket: {
|
|
263
|
+
port: number;
|
|
264
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
265
|
+
count: import("typed-binary").ByteSchema;
|
|
266
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
267
|
+
entries: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
|
|
268
|
+
id: import("typed-binary").ByteSchema;
|
|
269
|
+
name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
270
|
+
status: import("typed-binary").ObjectSchema<{
|
|
271
|
+
operator_enabled: import("typed-binary").BoolSchema;
|
|
272
|
+
policy_enabled: import("typed-binary").BoolSchema;
|
|
273
|
+
active: import("typed-binary").BoolSchema;
|
|
274
|
+
setpoint: import("typed-binary").Float32Schema;
|
|
275
|
+
kp: import("typed-binary").Float32Schema;
|
|
276
|
+
ki: import("typed-binary").Float32Schema;
|
|
277
|
+
kd: import("typed-binary").Float32Schema;
|
|
278
|
+
integral: import("typed-binary").Float32Schema;
|
|
279
|
+
previous_error: import("typed-binary").Float32Schema;
|
|
280
|
+
last_measurement: import("typed-binary").Float32Schema;
|
|
281
|
+
last_output: import("typed-binary").Float32Schema;
|
|
282
|
+
last_servo_command_: import("typed-binary").Float32Schema;
|
|
283
|
+
last_update_ms: import("typed-binary").Uint32Schema;
|
|
284
|
+
}>;
|
|
285
|
+
}>>;
|
|
286
|
+
}>;
|
|
287
|
+
enums: {};
|
|
288
|
+
};
|
|
194
289
|
fsm_FsmStatus: {
|
|
195
290
|
port: number;
|
|
196
291
|
schema: import("typed-binary").ObjectSchema<{
|
|
197
|
-
state_entry_time_ms:
|
|
198
|
-
state_time_ms:
|
|
292
|
+
state_entry_time_ms: UInt64Schema;
|
|
293
|
+
state_time_ms: UInt64Schema;
|
|
199
294
|
current_state: import("typed-binary").ByteSchema;
|
|
200
295
|
previous_state: import("typed-binary").ByteSchema;
|
|
201
296
|
last_event: import("typed-binary").ByteSchema;
|
|
297
|
+
last_abort_reason: import("typed-binary").ByteSchema;
|
|
202
298
|
}>;
|
|
203
299
|
enums: {
|
|
204
300
|
current_state: {
|
|
205
301
|
readonly Safe: 0;
|
|
206
|
-
readonly
|
|
207
|
-
readonly
|
|
208
|
-
readonly
|
|
209
|
-
readonly
|
|
210
|
-
readonly
|
|
211
|
-
readonly
|
|
212
|
-
readonly
|
|
213
|
-
readonly
|
|
214
|
-
readonly
|
|
215
|
-
readonly
|
|
216
|
-
readonly
|
|
217
|
-
readonly
|
|
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;
|
|
218
314
|
readonly Calibrate: 13;
|
|
219
315
|
};
|
|
220
316
|
previous_state: {
|
|
221
317
|
readonly Safe: 0;
|
|
222
|
-
readonly
|
|
223
|
-
readonly
|
|
224
|
-
readonly
|
|
225
|
-
readonly
|
|
226
|
-
readonly
|
|
227
|
-
readonly
|
|
228
|
-
readonly
|
|
229
|
-
readonly
|
|
230
|
-
readonly
|
|
231
|
-
readonly
|
|
232
|
-
readonly
|
|
233
|
-
readonly
|
|
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;
|
|
234
330
|
readonly Calibrate: 13;
|
|
235
331
|
};
|
|
236
332
|
last_event: {
|
|
@@ -244,6 +340,29 @@ export declare const spec: {
|
|
|
244
340
|
readonly None: 7;
|
|
245
341
|
readonly Count: 8;
|
|
246
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: {};
|
|
247
366
|
};
|
|
248
367
|
};
|
|
249
368
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import bin, { Measurer, Schema
|
|
2
|
-
// This file was generated by FRICC on 2026-03-23
|
|
1
|
+
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
+
// This file was generated by FRICC on 2026-03-23 21:33:45. Do not edit manually!
|
|
3
3
|
// The current version of typed-binary does not support 64-bit primitives.
|
|
4
|
-
// So for we'll implement our own schemas. :)
|
|
4
|
+
// So for we'll implement our own schemas. :)
|
|
5
5
|
const __littleEndian = true;
|
|
6
6
|
class UInt64Schema extends Schema {
|
|
7
7
|
maxSize = 8;
|
|
@@ -83,18 +83,18 @@ export const actuators_solenoid_Opening = {
|
|
|
83
83
|
};
|
|
84
84
|
export const StateId = {
|
|
85
85
|
Safe: 0,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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
|
|
@@ -146,12 +144,50 @@ export const actuators_solenoid_SolenoidStatus = bin.object({
|
|
|
146
144
|
export const HeartBeatTelemetry = bin.object({
|
|
147
145
|
message: bin.arrayOf(bin.i8, 16), // char[16]
|
|
148
146
|
});
|
|
147
|
+
export const regulators_RegulatorStatus = bin.object({
|
|
148
|
+
operator_enabled: bin.bool, // bool
|
|
149
|
+
policy_enabled: bin.bool, // bool
|
|
150
|
+
active: bin.bool, // bool
|
|
151
|
+
setpoint: bin.f32, // float
|
|
152
|
+
kp: bin.f32, // float
|
|
153
|
+
ki: bin.f32, // float
|
|
154
|
+
kd: bin.f32, // float
|
|
155
|
+
integral: bin.f32, // float
|
|
156
|
+
previous_error: bin.f32, // float
|
|
157
|
+
last_measurement: bin.f32, // float
|
|
158
|
+
last_output: bin.f32, // float
|
|
159
|
+
last_servo_command_: bin.f32, // float
|
|
160
|
+
last_update_ms: bin.u32, // unsigned int
|
|
161
|
+
});
|
|
162
|
+
export const RegulatorStatusEntry = bin.object({
|
|
163
|
+
id: bin.u8, // node::regulator::Id
|
|
164
|
+
name: bin.arrayOf(bin.i8, 24), // char[24]
|
|
165
|
+
status: regulators_RegulatorStatus, // regulators::RegulatorStatus
|
|
166
|
+
});
|
|
167
|
+
export const RegulatorStatusArrayPacket = bin.object({
|
|
168
|
+
count: bin.u8, // unsigned char
|
|
169
|
+
timestamp_ms: bin.u32, // unsigned int
|
|
170
|
+
entries: bin.arrayOf(RegulatorStatusEntry, 1), // RegulatorStatusEntry[1]
|
|
171
|
+
});
|
|
149
172
|
export const fsm_FsmStatus = bin.object({
|
|
150
|
-
state_entry_time_ms:
|
|
151
|
-
state_time_ms:
|
|
173
|
+
state_entry_time_ms: u64, // unsigned long long
|
|
174
|
+
state_time_ms: u64, // unsigned long long
|
|
152
175
|
current_state: bin.u8, // StateId
|
|
153
176
|
previous_state: bin.u8, // StateId
|
|
154
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
|
|
155
191
|
});
|
|
156
192
|
export const spec = {
|
|
157
193
|
actuators_servo_ServoStatus: {
|
|
@@ -167,11 +203,6 @@ export const spec = {
|
|
|
167
203
|
schema: BldcTelemetry,
|
|
168
204
|
enums: {},
|
|
169
205
|
},
|
|
170
|
-
sensors_pressure_PressureBatch: {
|
|
171
|
-
port: 5002,
|
|
172
|
-
schema: sensors_pressure_PressureBatch,
|
|
173
|
-
enums: {},
|
|
174
|
-
},
|
|
175
206
|
actuators_solenoid_SolenoidStatus: {
|
|
176
207
|
port: 5004,
|
|
177
208
|
schema: actuators_solenoid_SolenoidStatus,
|
|
@@ -184,6 +215,11 @@ export const spec = {
|
|
|
184
215
|
schema: HeartBeatTelemetry,
|
|
185
216
|
enums: {},
|
|
186
217
|
},
|
|
218
|
+
RegulatorStatusArrayPacket: {
|
|
219
|
+
port: 5005,
|
|
220
|
+
schema: RegulatorStatusArrayPacket,
|
|
221
|
+
enums: {},
|
|
222
|
+
},
|
|
187
223
|
fsm_FsmStatus: {
|
|
188
224
|
port: 5001,
|
|
189
225
|
schema: fsm_FsmStatus,
|
|
@@ -191,6 +227,14 @@ export const spec = {
|
|
|
191
227
|
current_state: StateId,
|
|
192
228
|
previous_state: StateId,
|
|
193
229
|
last_event: Event,
|
|
230
|
+
last_abort_reason: fsm_AbortReason,
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
PressureSensorData: {
|
|
234
|
+
port: 5002,
|
|
235
|
+
schema: PressureSensorData,
|
|
236
|
+
enums: {
|
|
237
|
+
data: {},
|
|
194
238
|
},
|
|
195
239
|
},
|
|
196
240
|
};
|