fossekall-interface 0.1.26 → 0.1.28
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 +50 -54
- package/dist/generated/ecu/commands.js +21 -23
- package/dist/generated/ecu/telemetry.d.ts +318 -218
- package/dist/generated/ecu/telemetry.js +145 -88
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import bin from 'typed-binary';
|
|
2
2
|
export declare const node_bldc_Id: {
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
3
|
+
readonly Fuel: 0;
|
|
4
|
+
readonly Ox: 1;
|
|
5
|
+
readonly Count: 2;
|
|
6
6
|
};
|
|
7
7
|
export type node_bldc_Id = (typeof node_bldc_Id)[keyof typeof node_bldc_Id];
|
|
8
8
|
export declare const BldcCommands_SetBldcCommand: {
|
|
@@ -40,12 +40,12 @@ export declare const Event: {
|
|
|
40
40
|
};
|
|
41
41
|
export type Event = (typeof Event)[keyof typeof Event];
|
|
42
42
|
export declare const node_servo_Id: {
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
43
|
+
readonly MainFuel: 0;
|
|
44
|
+
readonly MainOx: 1;
|
|
45
|
+
readonly OxFill: 2;
|
|
46
|
+
readonly OxBoiloff: 3;
|
|
47
|
+
readonly OxSupply: 4;
|
|
48
|
+
readonly Count: 5;
|
|
49
49
|
};
|
|
50
50
|
export type node_servo_Id = (typeof node_servo_Id)[keyof typeof node_servo_Id];
|
|
51
51
|
export declare const ServoCommands_OpenClose: {
|
|
@@ -64,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
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
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
|
|
92
|
-
readonly
|
|
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: {
|
|
@@ -171,9 +169,9 @@ export declare const spec: {
|
|
|
171
169
|
}>;
|
|
172
170
|
enums: {
|
|
173
171
|
bldc_id: {
|
|
174
|
-
readonly
|
|
175
|
-
readonly
|
|
176
|
-
readonly
|
|
172
|
+
readonly Fuel: 0;
|
|
173
|
+
readonly Ox: 1;
|
|
174
|
+
readonly Count: 2;
|
|
177
175
|
};
|
|
178
176
|
command: {
|
|
179
177
|
readonly open: 0;
|
|
@@ -250,12 +248,12 @@ export declare const spec: {
|
|
|
250
248
|
}>;
|
|
251
249
|
enums: {
|
|
252
250
|
servo_id: {
|
|
253
|
-
readonly
|
|
254
|
-
readonly
|
|
255
|
-
readonly
|
|
256
|
-
readonly
|
|
257
|
-
readonly
|
|
258
|
-
readonly
|
|
251
|
+
readonly MainFuel: 0;
|
|
252
|
+
readonly MainOx: 1;
|
|
253
|
+
readonly OxFill: 2;
|
|
254
|
+
readonly OxBoiloff: 3;
|
|
255
|
+
readonly OxSupply: 4;
|
|
256
|
+
readonly Count: 5;
|
|
259
257
|
};
|
|
260
258
|
open_close: {
|
|
261
259
|
readonly Open: 0;
|
|
@@ -283,12 +281,12 @@ export declare const spec: {
|
|
|
283
281
|
}>;
|
|
284
282
|
enums: {
|
|
285
283
|
servo_id: {
|
|
286
|
-
readonly
|
|
287
|
-
readonly
|
|
288
|
-
readonly
|
|
289
|
-
readonly
|
|
290
|
-
readonly
|
|
291
|
-
readonly
|
|
284
|
+
readonly MainFuel: 0;
|
|
285
|
+
readonly MainOx: 1;
|
|
286
|
+
readonly OxFill: 2;
|
|
287
|
+
readonly OxBoiloff: 3;
|
|
288
|
+
readonly OxSupply: 4;
|
|
289
|
+
readonly Count: 5;
|
|
292
290
|
};
|
|
293
291
|
position_mode: {
|
|
294
292
|
readonly kAbsolute: 0;
|
|
@@ -308,17 +306,15 @@ export declare const spec: {
|
|
|
308
306
|
}>;
|
|
309
307
|
enums: {
|
|
310
308
|
solenoid_id: {
|
|
311
|
-
readonly
|
|
312
|
-
readonly
|
|
313
|
-
readonly
|
|
314
|
-
readonly
|
|
315
|
-
readonly
|
|
316
|
-
readonly
|
|
317
|
-
readonly
|
|
318
|
-
readonly
|
|
319
|
-
readonly
|
|
320
|
-
readonly kQD_2: 9;
|
|
321
|
-
readonly kCount: 10;
|
|
309
|
+
readonly FuelVent: 0;
|
|
310
|
+
readonly OxVent: 1;
|
|
311
|
+
readonly N2Fill: 2;
|
|
312
|
+
readonly OxHoseBleed: 3;
|
|
313
|
+
readonly N2_300_Supply: 4;
|
|
314
|
+
readonly N2_300_Hose_Bleed: 5;
|
|
315
|
+
readonly QD_1: 6;
|
|
316
|
+
readonly QD_2: 7;
|
|
317
|
+
readonly Count: 8;
|
|
322
318
|
};
|
|
323
319
|
opening_type: {
|
|
324
320
|
readonly Open: 0;
|
|
@@ -346,8 +342,8 @@ export declare const spec: {
|
|
|
346
342
|
}>;
|
|
347
343
|
enums: {
|
|
348
344
|
regulator_id: {
|
|
349
|
-
readonly
|
|
350
|
-
readonly
|
|
345
|
+
readonly OxBoiloff: 0;
|
|
346
|
+
readonly Count: 1;
|
|
351
347
|
};
|
|
352
348
|
value: {
|
|
353
349
|
readonly Disable: 0;
|
|
@@ -363,8 +359,8 @@ export declare const spec: {
|
|
|
363
359
|
}>;
|
|
364
360
|
enums: {
|
|
365
361
|
regulator_id: {
|
|
366
|
-
readonly
|
|
367
|
-
readonly
|
|
362
|
+
readonly OxBoiloff: 0;
|
|
363
|
+
readonly Count: 1;
|
|
368
364
|
};
|
|
369
365
|
};
|
|
370
366
|
};
|
|
@@ -378,8 +374,8 @@ export declare const spec: {
|
|
|
378
374
|
}>;
|
|
379
375
|
enums: {
|
|
380
376
|
regulator_id: {
|
|
381
|
-
readonly
|
|
382
|
-
readonly
|
|
377
|
+
readonly OxBoiloff: 0;
|
|
378
|
+
readonly Count: 1;
|
|
383
379
|
};
|
|
384
380
|
};
|
|
385
381
|
};
|
|
@@ -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-26 14:32:02. 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;
|
|
@@ -61,9 +61,9 @@ const u64 = new UInt64Schema();
|
|
|
61
61
|
const i64 = new Int64Schema();
|
|
62
62
|
const f64 = new Float64Schema();
|
|
63
63
|
export const node_bldc_Id = {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
Fuel: 0,
|
|
65
|
+
Ox: 1,
|
|
66
|
+
Count: 2,
|
|
67
67
|
};
|
|
68
68
|
export const BldcCommands_SetBldcCommand = {
|
|
69
69
|
open: 0,
|
|
@@ -97,12 +97,12 @@ export const Event = {
|
|
|
97
97
|
Count: 8,
|
|
98
98
|
};
|
|
99
99
|
export const node_servo_Id = {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
MainFuel: 0,
|
|
101
|
+
MainOx: 1,
|
|
102
|
+
OxFill: 2,
|
|
103
|
+
OxBoiloff: 3,
|
|
104
|
+
OxSupply: 4,
|
|
105
|
+
Count: 5,
|
|
106
106
|
};
|
|
107
107
|
export const ServoCommands_OpenClose = {
|
|
108
108
|
Open: 0,
|
|
@@ -117,17 +117,15 @@ export const actuators_servo_StartPolicy = {
|
|
|
117
117
|
kNoInterrupt: 1,
|
|
118
118
|
};
|
|
119
119
|
export const node_solenoid_Id = {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
kQD_2: 9,
|
|
130
|
-
kCount: 10,
|
|
120
|
+
FuelVent: 0,
|
|
121
|
+
OxVent: 1,
|
|
122
|
+
N2Fill: 2,
|
|
123
|
+
OxHoseBleed: 3,
|
|
124
|
+
N2_300_Supply: 4,
|
|
125
|
+
N2_300_Hose_Bleed: 5,
|
|
126
|
+
QD_1: 6,
|
|
127
|
+
QD_2: 7,
|
|
128
|
+
Count: 8,
|
|
131
129
|
};
|
|
132
130
|
export const SolenoidCommands_OpeningType = {
|
|
133
131
|
Open: 0,
|
|
@@ -138,8 +136,8 @@ export const ControlPolicyCommands_PolicyValue = {
|
|
|
138
136
|
Enable: 1,
|
|
139
137
|
};
|
|
140
138
|
export const node_regulator_Id = {
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
OxBoiloff: 0,
|
|
140
|
+
Count: 1,
|
|
143
141
|
};
|
|
144
142
|
export const RegulatorCommands_RegulatorValue = {
|
|
145
143
|
Disable: 0,
|
|
@@ -5,31 +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
|
-
export declare const actuators_servo_ServoMode: {
|
|
9
|
-
readonly kUnknown: 0;
|
|
10
|
-
readonly kPosition: 1;
|
|
11
|
-
readonly kCalibrate: 2;
|
|
12
|
-
};
|
|
13
|
-
export type actuators_servo_ServoMode = (typeof actuators_servo_ServoMode)[keyof typeof actuators_servo_ServoMode];
|
|
14
|
-
export declare const actuators_servo_PowerState: {
|
|
15
|
-
readonly kUnknown: 0;
|
|
16
|
-
readonly kOff: 1;
|
|
17
|
-
readonly kBooting: 2;
|
|
18
|
-
readonly kOn: 3;
|
|
19
|
-
};
|
|
20
|
-
export type actuators_servo_PowerState = (typeof actuators_servo_PowerState)[keyof typeof actuators_servo_PowerState];
|
|
21
|
-
export declare const actuators_solenoid_PowerState: {
|
|
22
|
-
readonly kUnknown: 0;
|
|
23
|
-
readonly kOff: 1;
|
|
24
|
-
readonly kOn: 2;
|
|
25
|
-
};
|
|
26
|
-
export type actuators_solenoid_PowerState = (typeof actuators_solenoid_PowerState)[keyof typeof actuators_solenoid_PowerState];
|
|
27
|
-
export declare const actuators_solenoid_Opening: {
|
|
28
|
-
readonly kUnknown: 0;
|
|
29
|
-
readonly kClosed: 1;
|
|
30
|
-
readonly kOpen: 2;
|
|
31
|
-
};
|
|
32
|
-
export type actuators_solenoid_Opening = (typeof actuators_solenoid_Opening)[keyof typeof actuators_solenoid_Opening];
|
|
33
8
|
export declare const StateId: {
|
|
34
9
|
readonly Safe: 0;
|
|
35
10
|
readonly N2Fill: 1;
|
|
@@ -66,15 +41,70 @@ export declare const fsm_AbortReason: {
|
|
|
66
41
|
readonly ChamberUnderpressure: 3;
|
|
67
42
|
};
|
|
68
43
|
export type fsm_AbortReason = (typeof fsm_AbortReason)[keyof typeof fsm_AbortReason];
|
|
69
|
-
export declare const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
44
|
+
export declare const node_pressure_sensor_Id: {
|
|
45
|
+
readonly N2Tank: 0;
|
|
46
|
+
readonly OxTank: 1;
|
|
47
|
+
readonly OxInjector: 2;
|
|
48
|
+
readonly FuelTank: 3;
|
|
49
|
+
readonly FuelInjector: 4;
|
|
50
|
+
readonly FuelInlet: 5;
|
|
51
|
+
readonly Chamber: 6;
|
|
52
|
+
readonly OxSupply: 7;
|
|
53
|
+
readonly N2_300: 8;
|
|
54
|
+
readonly Count: 9;
|
|
55
|
+
};
|
|
56
|
+
export type node_pressure_sensor_Id = (typeof node_pressure_sensor_Id)[keyof typeof node_pressure_sensor_Id];
|
|
57
|
+
export declare const node_servo_Id: {
|
|
58
|
+
readonly MainFuel: 0;
|
|
59
|
+
readonly MainOx: 1;
|
|
60
|
+
readonly OxFill: 2;
|
|
61
|
+
readonly OxBoiloff: 3;
|
|
62
|
+
readonly OxSupply: 4;
|
|
63
|
+
readonly Count: 5;
|
|
64
|
+
};
|
|
65
|
+
export type node_servo_Id = (typeof node_servo_Id)[keyof typeof node_servo_Id];
|
|
66
|
+
export declare const actuators_servo_ServoMode: {
|
|
67
|
+
readonly kUnknown: 0;
|
|
68
|
+
readonly kPosition: 1;
|
|
69
|
+
readonly kCalibrate: 2;
|
|
70
|
+
};
|
|
71
|
+
export type actuators_servo_ServoMode = (typeof actuators_servo_ServoMode)[keyof typeof actuators_servo_ServoMode];
|
|
72
|
+
export declare const actuators_servo_PowerState: {
|
|
73
|
+
readonly kUnknown: 0;
|
|
74
|
+
readonly kOff: 1;
|
|
75
|
+
readonly kBooting: 2;
|
|
76
|
+
readonly kOn: 3;
|
|
77
|
+
};
|
|
78
|
+
export type actuators_servo_PowerState = (typeof actuators_servo_PowerState)[keyof typeof actuators_servo_PowerState];
|
|
79
|
+
export declare const node_solenoid_Id: {
|
|
80
|
+
readonly FuelVent: 0;
|
|
81
|
+
readonly OxVent: 1;
|
|
82
|
+
readonly N2Fill: 2;
|
|
83
|
+
readonly OxHoseBleed: 3;
|
|
84
|
+
readonly N2_300_Supply: 4;
|
|
85
|
+
readonly N2_300_Hose_Bleed: 5;
|
|
86
|
+
readonly QD_1: 6;
|
|
87
|
+
readonly QD_2: 7;
|
|
88
|
+
readonly Count: 8;
|
|
89
|
+
};
|
|
90
|
+
export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
|
|
91
|
+
export declare const actuators_solenoid_PowerState: {
|
|
92
|
+
readonly kUnknown: 0;
|
|
93
|
+
readonly kOff: 1;
|
|
94
|
+
readonly kOn: 2;
|
|
95
|
+
};
|
|
96
|
+
export type actuators_solenoid_PowerState = (typeof actuators_solenoid_PowerState)[keyof typeof actuators_solenoid_PowerState];
|
|
97
|
+
export declare const actuators_solenoid_Opening: {
|
|
98
|
+
readonly kUnknown: 0;
|
|
99
|
+
readonly kClosed: 1;
|
|
100
|
+
readonly kOpen: 2;
|
|
101
|
+
};
|
|
102
|
+
export type actuators_solenoid_Opening = (typeof actuators_solenoid_Opening)[keyof typeof actuators_solenoid_Opening];
|
|
103
|
+
export declare const node_regulator_Id: {
|
|
104
|
+
readonly OxBoiloff: 0;
|
|
105
|
+
readonly Count: 1;
|
|
106
|
+
};
|
|
107
|
+
export type node_regulator_Id = (typeof node_regulator_Id)[keyof typeof node_regulator_Id];
|
|
78
108
|
export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
|
|
79
109
|
valve_position: import("typed-binary").Float32Schema;
|
|
80
110
|
motor_position: import("typed-binary").Float32Schema;
|
|
@@ -91,15 +121,88 @@ export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
|
|
|
91
121
|
calibrated: import("typed-binary").ByteSchema;
|
|
92
122
|
}>;
|
|
93
123
|
export type BldcTelemetry = bin.Parsed<typeof BldcTelemetry>;
|
|
124
|
+
export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
|
|
125
|
+
message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
126
|
+
}>;
|
|
127
|
+
export type HeartBeatTelemetry = bin.Parsed<typeof HeartBeatTelemetry>;
|
|
128
|
+
export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
|
|
129
|
+
state_entry_time_ms: UInt64Schema;
|
|
130
|
+
state_time_ms: UInt64Schema;
|
|
131
|
+
current_state: import("typed-binary").ByteSchema;
|
|
132
|
+
previous_state: import("typed-binary").ByteSchema;
|
|
133
|
+
last_event: import("typed-binary").ByteSchema;
|
|
134
|
+
last_abort_reason: import("typed-binary").ByteSchema;
|
|
135
|
+
}>;
|
|
136
|
+
export type fsm_FsmStatus = bin.Parsed<typeof fsm_FsmStatus>;
|
|
137
|
+
export declare const FsmStatusPacket: import("typed-binary").ObjectSchema<{
|
|
138
|
+
status: import("typed-binary").ObjectSchema<{
|
|
139
|
+
state_entry_time_ms: UInt64Schema;
|
|
140
|
+
state_time_ms: UInt64Schema;
|
|
141
|
+
current_state: import("typed-binary").ByteSchema;
|
|
142
|
+
previous_state: import("typed-binary").ByteSchema;
|
|
143
|
+
last_event: import("typed-binary").ByteSchema;
|
|
144
|
+
last_abort_reason: import("typed-binary").ByteSchema;
|
|
145
|
+
}>;
|
|
146
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
147
|
+
}>;
|
|
148
|
+
export type FsmStatusPacket = bin.Parsed<typeof FsmStatusPacket>;
|
|
149
|
+
export declare const sensors_pressure_PressureBatch: import("typed-binary").ObjectSchema<{
|
|
150
|
+
t0_ms: import("typed-binary").Uint32Schema;
|
|
151
|
+
dt_us: import("typed-binary").Uint16Schema;
|
|
152
|
+
count: import("typed-binary").ByteSchema;
|
|
153
|
+
seq: import("typed-binary").ByteSchema;
|
|
154
|
+
overrun: import("typed-binary").BoolSchema;
|
|
155
|
+
samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
156
|
+
}>;
|
|
157
|
+
export type sensors_pressure_PressureBatch = bin.Parsed<typeof sensors_pressure_PressureBatch>;
|
|
158
|
+
export declare const PressureSensorPacket: import("typed-binary").ObjectSchema<{
|
|
159
|
+
sensor_id: import("typed-binary").ByteSchema;
|
|
160
|
+
data: import("typed-binary").ObjectSchema<{
|
|
161
|
+
t0_ms: import("typed-binary").Uint32Schema;
|
|
162
|
+
dt_us: import("typed-binary").Uint16Schema;
|
|
163
|
+
count: import("typed-binary").ByteSchema;
|
|
164
|
+
seq: import("typed-binary").ByteSchema;
|
|
165
|
+
overrun: import("typed-binary").BoolSchema;
|
|
166
|
+
samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
167
|
+
}>;
|
|
168
|
+
}>;
|
|
169
|
+
export type PressureSensorPacket = bin.Parsed<typeof PressureSensorPacket>;
|
|
170
|
+
export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
|
|
171
|
+
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
172
|
+
target_angle_deg: import("typed-binary").Float32Schema;
|
|
173
|
+
measured_angle_deg: import("typed-binary").Float32Schema;
|
|
174
|
+
current_ma: import("typed-binary").Float32Schema;
|
|
175
|
+
mode: import("typed-binary").ByteSchema;
|
|
176
|
+
power_state: import("typed-binary").ByteSchema;
|
|
177
|
+
}>;
|
|
178
|
+
export type actuators_servo_ServoStatus = bin.Parsed<typeof actuators_servo_ServoStatus>;
|
|
179
|
+
export declare const ServoStatusPacket: import("typed-binary").ObjectSchema<{
|
|
180
|
+
id: import("typed-binary").ByteSchema;
|
|
181
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
182
|
+
status: import("typed-binary").ObjectSchema<{
|
|
183
|
+
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
184
|
+
target_angle_deg: import("typed-binary").Float32Schema;
|
|
185
|
+
measured_angle_deg: import("typed-binary").Float32Schema;
|
|
186
|
+
current_ma: import("typed-binary").Float32Schema;
|
|
187
|
+
mode: import("typed-binary").ByteSchema;
|
|
188
|
+
power_state: import("typed-binary").ByteSchema;
|
|
189
|
+
}>;
|
|
190
|
+
}>;
|
|
191
|
+
export type ServoStatusPacket = bin.Parsed<typeof ServoStatusPacket>;
|
|
94
192
|
export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").ObjectSchema<{
|
|
95
193
|
power_state: import("typed-binary").ByteSchema;
|
|
96
194
|
opening: import("typed-binary").ByteSchema;
|
|
97
195
|
}>;
|
|
98
196
|
export type actuators_solenoid_SolenoidStatus = bin.Parsed<typeof actuators_solenoid_SolenoidStatus>;
|
|
99
|
-
export declare const
|
|
100
|
-
|
|
197
|
+
export declare const SolenoidStatusPacket: import("typed-binary").ObjectSchema<{
|
|
198
|
+
id: import("typed-binary").ByteSchema;
|
|
199
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
200
|
+
status: import("typed-binary").ObjectSchema<{
|
|
201
|
+
power_state: import("typed-binary").ByteSchema;
|
|
202
|
+
opening: import("typed-binary").ByteSchema;
|
|
203
|
+
}>;
|
|
101
204
|
}>;
|
|
102
|
-
export type
|
|
205
|
+
export type SolenoidStatusPacket = bin.Parsed<typeof SolenoidStatusPacket>;
|
|
103
206
|
export declare const regulators_RegulatorStatus: import("typed-binary").ObjectSchema<{
|
|
104
207
|
operator_enabled: import("typed-binary").BoolSchema;
|
|
105
208
|
policy_enabled: import("typed-binary").BoolSchema;
|
|
@@ -116,9 +219,9 @@ export declare const regulators_RegulatorStatus: import("typed-binary").ObjectSc
|
|
|
116
219
|
last_update_ms: import("typed-binary").Uint32Schema;
|
|
117
220
|
}>;
|
|
118
221
|
export type regulators_RegulatorStatus = bin.Parsed<typeof regulators_RegulatorStatus>;
|
|
119
|
-
export declare const
|
|
222
|
+
export declare const RegulatorStatusPacket: import("typed-binary").ObjectSchema<{
|
|
120
223
|
id: import("typed-binary").ByteSchema;
|
|
121
|
-
|
|
224
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
122
225
|
status: import("typed-binary").ObjectSchema<{
|
|
123
226
|
operator_enabled: import("typed-binary").BoolSchema;
|
|
124
227
|
policy_enabled: import("typed-binary").BoolSchema;
|
|
@@ -135,86 +238,8 @@ export declare const RegulatorStatusEntry: import("typed-binary").ObjectSchema<{
|
|
|
135
238
|
last_update_ms: import("typed-binary").Uint32Schema;
|
|
136
239
|
}>;
|
|
137
240
|
}>;
|
|
138
|
-
export type
|
|
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>;
|
|
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;
|
|
170
|
-
}>;
|
|
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>;
|
|
241
|
+
export type RegulatorStatusPacket = bin.Parsed<typeof RegulatorStatusPacket>;
|
|
193
242
|
export declare const spec: {
|
|
194
|
-
actuators_servo_ServoStatus: {
|
|
195
|
-
port: number;
|
|
196
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
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;
|
|
203
|
-
}>;
|
|
204
|
-
enums: {
|
|
205
|
-
mode: {
|
|
206
|
-
readonly kUnknown: 0;
|
|
207
|
-
readonly kPosition: 1;
|
|
208
|
-
readonly kCalibrate: 2;
|
|
209
|
-
};
|
|
210
|
-
power_state: {
|
|
211
|
-
readonly kUnknown: 0;
|
|
212
|
-
readonly kOff: 1;
|
|
213
|
-
readonly kBooting: 2;
|
|
214
|
-
readonly kOn: 3;
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
243
|
BldcTelemetry: {
|
|
219
244
|
port: number;
|
|
220
245
|
schema: import("typed-binary").ObjectSchema<{
|
|
@@ -234,135 +259,210 @@ export declare const spec: {
|
|
|
234
259
|
}>;
|
|
235
260
|
enums: {};
|
|
236
261
|
};
|
|
237
|
-
|
|
262
|
+
HeartBeatTelemetry: {
|
|
238
263
|
port: number;
|
|
239
264
|
schema: import("typed-binary").ObjectSchema<{
|
|
240
|
-
|
|
241
|
-
|
|
265
|
+
message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
266
|
+
}>;
|
|
267
|
+
enums: {};
|
|
268
|
+
};
|
|
269
|
+
FsmStatusPacket: {
|
|
270
|
+
port: number;
|
|
271
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
272
|
+
status: import("typed-binary").ObjectSchema<{
|
|
273
|
+
state_entry_time_ms: UInt64Schema;
|
|
274
|
+
state_time_ms: UInt64Schema;
|
|
275
|
+
current_state: import("typed-binary").ByteSchema;
|
|
276
|
+
previous_state: import("typed-binary").ByteSchema;
|
|
277
|
+
last_event: import("typed-binary").ByteSchema;
|
|
278
|
+
last_abort_reason: import("typed-binary").ByteSchema;
|
|
279
|
+
}>;
|
|
280
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
242
281
|
}>;
|
|
243
282
|
enums: {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
283
|
+
status: {
|
|
284
|
+
current_state: {
|
|
285
|
+
readonly Safe: 0;
|
|
286
|
+
readonly N2Fill: 1;
|
|
287
|
+
readonly PostN2Fill: 2;
|
|
288
|
+
readonly OxFill: 3;
|
|
289
|
+
readonly PostOxFill: 4;
|
|
290
|
+
readonly Prechill: 5;
|
|
291
|
+
readonly PostPrechill: 6;
|
|
292
|
+
readonly QDDisconnect: 7;
|
|
293
|
+
readonly Pressurized: 8;
|
|
294
|
+
readonly Armed: 9;
|
|
295
|
+
readonly Burn: 10;
|
|
296
|
+
readonly Shutdown: 11;
|
|
297
|
+
readonly PostShutdown: 12;
|
|
298
|
+
readonly Calibrate: 13;
|
|
299
|
+
};
|
|
300
|
+
previous_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
|
+
last_event: {
|
|
317
|
+
readonly Boot: 0;
|
|
318
|
+
readonly NextState: 1;
|
|
319
|
+
readonly PreviousState: 2;
|
|
320
|
+
readonly Timeout: 3;
|
|
321
|
+
readonly CalibrateRequest: 4;
|
|
322
|
+
readonly BurnwireCut: 5;
|
|
323
|
+
readonly Abort: 6;
|
|
324
|
+
readonly None: 7;
|
|
325
|
+
readonly Count: 8;
|
|
326
|
+
};
|
|
327
|
+
last_abort_reason: {
|
|
328
|
+
readonly None: 0;
|
|
329
|
+
readonly FuelTankOverpressure: 1;
|
|
330
|
+
readonly OxTankOverpressure: 2;
|
|
331
|
+
readonly ChamberUnderpressure: 3;
|
|
332
|
+
};
|
|
253
333
|
};
|
|
254
334
|
};
|
|
255
335
|
};
|
|
256
|
-
|
|
336
|
+
PressureSensorPacket: {
|
|
337
|
+
port: number;
|
|
257
338
|
schema: import("typed-binary").ObjectSchema<{
|
|
258
|
-
|
|
339
|
+
sensor_id: import("typed-binary").ByteSchema;
|
|
340
|
+
data: import("typed-binary").ObjectSchema<{
|
|
341
|
+
t0_ms: import("typed-binary").Uint32Schema;
|
|
342
|
+
dt_us: import("typed-binary").Uint16Schema;
|
|
343
|
+
count: import("typed-binary").ByteSchema;
|
|
344
|
+
seq: import("typed-binary").ByteSchema;
|
|
345
|
+
overrun: import("typed-binary").BoolSchema;
|
|
346
|
+
samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
347
|
+
}>;
|
|
259
348
|
}>;
|
|
260
|
-
enums: {
|
|
349
|
+
enums: {
|
|
350
|
+
sensor_id: {
|
|
351
|
+
readonly N2Tank: 0;
|
|
352
|
+
readonly OxTank: 1;
|
|
353
|
+
readonly OxInjector: 2;
|
|
354
|
+
readonly FuelTank: 3;
|
|
355
|
+
readonly FuelInjector: 4;
|
|
356
|
+
readonly FuelInlet: 5;
|
|
357
|
+
readonly Chamber: 6;
|
|
358
|
+
readonly OxSupply: 7;
|
|
359
|
+
readonly N2_300: 8;
|
|
360
|
+
readonly Count: 9;
|
|
361
|
+
};
|
|
362
|
+
data: {};
|
|
363
|
+
};
|
|
261
364
|
};
|
|
262
|
-
|
|
365
|
+
ServoStatusPacket: {
|
|
263
366
|
port: number;
|
|
264
367
|
schema: import("typed-binary").ObjectSchema<{
|
|
265
|
-
|
|
368
|
+
id: import("typed-binary").ByteSchema;
|
|
266
369
|
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
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
|
-
}>>;
|
|
370
|
+
status: import("typed-binary").ObjectSchema<{
|
|
371
|
+
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
372
|
+
target_angle_deg: import("typed-binary").Float32Schema;
|
|
373
|
+
measured_angle_deg: import("typed-binary").Float32Schema;
|
|
374
|
+
current_ma: import("typed-binary").Float32Schema;
|
|
375
|
+
mode: import("typed-binary").ByteSchema;
|
|
376
|
+
power_state: import("typed-binary").ByteSchema;
|
|
377
|
+
}>;
|
|
286
378
|
}>;
|
|
287
|
-
enums: {
|
|
379
|
+
enums: {
|
|
380
|
+
id: {
|
|
381
|
+
readonly MainFuel: 0;
|
|
382
|
+
readonly MainOx: 1;
|
|
383
|
+
readonly OxFill: 2;
|
|
384
|
+
readonly OxBoiloff: 3;
|
|
385
|
+
readonly OxSupply: 4;
|
|
386
|
+
readonly Count: 5;
|
|
387
|
+
};
|
|
388
|
+
status: {
|
|
389
|
+
mode: {
|
|
390
|
+
readonly kUnknown: 0;
|
|
391
|
+
readonly kPosition: 1;
|
|
392
|
+
readonly kCalibrate: 2;
|
|
393
|
+
};
|
|
394
|
+
power_state: {
|
|
395
|
+
readonly kUnknown: 0;
|
|
396
|
+
readonly kOff: 1;
|
|
397
|
+
readonly kBooting: 2;
|
|
398
|
+
readonly kOn: 3;
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
};
|
|
288
402
|
};
|
|
289
|
-
|
|
403
|
+
SolenoidStatusPacket: {
|
|
290
404
|
port: number;
|
|
291
405
|
schema: import("typed-binary").ObjectSchema<{
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
406
|
+
id: import("typed-binary").ByteSchema;
|
|
407
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
408
|
+
status: import("typed-binary").ObjectSchema<{
|
|
409
|
+
power_state: import("typed-binary").ByteSchema;
|
|
410
|
+
opening: import("typed-binary").ByteSchema;
|
|
411
|
+
}>;
|
|
298
412
|
}>;
|
|
299
413
|
enums: {
|
|
300
|
-
|
|
301
|
-
readonly
|
|
302
|
-
readonly
|
|
303
|
-
readonly
|
|
304
|
-
readonly
|
|
305
|
-
readonly
|
|
306
|
-
readonly
|
|
307
|
-
readonly
|
|
308
|
-
readonly
|
|
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;
|
|
414
|
+
id: {
|
|
415
|
+
readonly FuelVent: 0;
|
|
416
|
+
readonly OxVent: 1;
|
|
417
|
+
readonly N2Fill: 2;
|
|
418
|
+
readonly OxHoseBleed: 3;
|
|
419
|
+
readonly N2_300_Supply: 4;
|
|
420
|
+
readonly N2_300_Hose_Bleed: 5;
|
|
421
|
+
readonly QD_1: 6;
|
|
422
|
+
readonly QD_2: 7;
|
|
341
423
|
readonly Count: 8;
|
|
342
424
|
};
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
425
|
+
status: {
|
|
426
|
+
power_state: {
|
|
427
|
+
readonly kUnknown: 0;
|
|
428
|
+
readonly kOff: 1;
|
|
429
|
+
readonly kOn: 2;
|
|
430
|
+
};
|
|
431
|
+
opening: {
|
|
432
|
+
readonly kUnknown: 0;
|
|
433
|
+
readonly kClosed: 1;
|
|
434
|
+
readonly kOpen: 2;
|
|
435
|
+
};
|
|
348
436
|
};
|
|
349
437
|
};
|
|
350
438
|
};
|
|
351
|
-
|
|
439
|
+
RegulatorStatusPacket: {
|
|
352
440
|
port: number;
|
|
353
441
|
schema: import("typed-binary").ObjectSchema<{
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
442
|
+
id: import("typed-binary").ByteSchema;
|
|
443
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
444
|
+
status: import("typed-binary").ObjectSchema<{
|
|
445
|
+
operator_enabled: import("typed-binary").BoolSchema;
|
|
446
|
+
policy_enabled: import("typed-binary").BoolSchema;
|
|
447
|
+
active: import("typed-binary").BoolSchema;
|
|
448
|
+
setpoint: import("typed-binary").Float32Schema;
|
|
449
|
+
kp: import("typed-binary").Float32Schema;
|
|
450
|
+
ki: import("typed-binary").Float32Schema;
|
|
451
|
+
kd: import("typed-binary").Float32Schema;
|
|
452
|
+
integral: import("typed-binary").Float32Schema;
|
|
453
|
+
previous_error: import("typed-binary").Float32Schema;
|
|
454
|
+
last_measurement: import("typed-binary").Float32Schema;
|
|
455
|
+
last_output: import("typed-binary").Float32Schema;
|
|
456
|
+
last_servo_command_: import("typed-binary").Float32Schema;
|
|
457
|
+
last_update_ms: import("typed-binary").Uint32Schema;
|
|
362
458
|
}>;
|
|
363
459
|
}>;
|
|
364
460
|
enums: {
|
|
365
|
-
|
|
461
|
+
id: {
|
|
462
|
+
readonly OxBoiloff: 0;
|
|
463
|
+
readonly Count: 1;
|
|
464
|
+
};
|
|
465
|
+
status: {};
|
|
366
466
|
};
|
|
367
467
|
};
|
|
368
468
|
};
|
|
@@ -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-26 14:31:59. 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,27 +60,6 @@ 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 actuators_servo_ServoMode = {
|
|
64
|
-
kUnknown: 0,
|
|
65
|
-
kPosition: 1,
|
|
66
|
-
kCalibrate: 2,
|
|
67
|
-
};
|
|
68
|
-
export const actuators_servo_PowerState = {
|
|
69
|
-
kUnknown: 0,
|
|
70
|
-
kOff: 1,
|
|
71
|
-
kBooting: 2,
|
|
72
|
-
kOn: 3,
|
|
73
|
-
};
|
|
74
|
-
export const actuators_solenoid_PowerState = {
|
|
75
|
-
kUnknown: 0,
|
|
76
|
-
kOff: 1,
|
|
77
|
-
kOn: 2,
|
|
78
|
-
};
|
|
79
|
-
export const actuators_solenoid_Opening = {
|
|
80
|
-
kUnknown: 0,
|
|
81
|
-
kClosed: 1,
|
|
82
|
-
kOpen: 2,
|
|
83
|
-
};
|
|
84
63
|
export const StateId = {
|
|
85
64
|
Safe: 0,
|
|
86
65
|
N2Fill: 1,
|
|
@@ -114,14 +93,62 @@ export const fsm_AbortReason = {
|
|
|
114
93
|
OxTankOverpressure: 2,
|
|
115
94
|
ChamberUnderpressure: 3,
|
|
116
95
|
};
|
|
117
|
-
export const
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
96
|
+
export const node_pressure_sensor_Id = {
|
|
97
|
+
N2Tank: 0,
|
|
98
|
+
OxTank: 1,
|
|
99
|
+
OxInjector: 2,
|
|
100
|
+
FuelTank: 3,
|
|
101
|
+
FuelInjector: 4,
|
|
102
|
+
FuelInlet: 5,
|
|
103
|
+
Chamber: 6,
|
|
104
|
+
OxSupply: 7,
|
|
105
|
+
N2_300: 8,
|
|
106
|
+
Count: 9,
|
|
107
|
+
};
|
|
108
|
+
export const node_servo_Id = {
|
|
109
|
+
MainFuel: 0,
|
|
110
|
+
MainOx: 1,
|
|
111
|
+
OxFill: 2,
|
|
112
|
+
OxBoiloff: 3,
|
|
113
|
+
OxSupply: 4,
|
|
114
|
+
Count: 5,
|
|
115
|
+
};
|
|
116
|
+
export const actuators_servo_ServoMode = {
|
|
117
|
+
kUnknown: 0,
|
|
118
|
+
kPosition: 1,
|
|
119
|
+
kCalibrate: 2,
|
|
120
|
+
};
|
|
121
|
+
export const actuators_servo_PowerState = {
|
|
122
|
+
kUnknown: 0,
|
|
123
|
+
kOff: 1,
|
|
124
|
+
kBooting: 2,
|
|
125
|
+
kOn: 3,
|
|
126
|
+
};
|
|
127
|
+
export const node_solenoid_Id = {
|
|
128
|
+
FuelVent: 0,
|
|
129
|
+
OxVent: 1,
|
|
130
|
+
N2Fill: 2,
|
|
131
|
+
OxHoseBleed: 3,
|
|
132
|
+
N2_300_Supply: 4,
|
|
133
|
+
N2_300_Hose_Bleed: 5,
|
|
134
|
+
QD_1: 6,
|
|
135
|
+
QD_2: 7,
|
|
136
|
+
Count: 8,
|
|
137
|
+
};
|
|
138
|
+
export const actuators_solenoid_PowerState = {
|
|
139
|
+
kUnknown: 0,
|
|
140
|
+
kOff: 1,
|
|
141
|
+
kOn: 2,
|
|
142
|
+
};
|
|
143
|
+
export const actuators_solenoid_Opening = {
|
|
144
|
+
kUnknown: 0,
|
|
145
|
+
kClosed: 1,
|
|
146
|
+
kOpen: 2,
|
|
147
|
+
};
|
|
148
|
+
export const node_regulator_Id = {
|
|
149
|
+
OxBoiloff: 0,
|
|
150
|
+
Count: 1,
|
|
151
|
+
};
|
|
125
152
|
export const BldcTelemetry = bin.object({
|
|
126
153
|
valve_position: bin.f32, // float
|
|
127
154
|
motor_position: bin.f32, // float
|
|
@@ -137,12 +164,54 @@ export const BldcTelemetry = bin.object({
|
|
|
137
164
|
position_raw: bin.f32, // float
|
|
138
165
|
calibrated: bin.u8, // unsigned char
|
|
139
166
|
});
|
|
167
|
+
export const HeartBeatTelemetry = bin.object({
|
|
168
|
+
message: bin.arrayOf(bin.i8, 16), // char[16]
|
|
169
|
+
});
|
|
170
|
+
export const fsm_FsmStatus = bin.object({
|
|
171
|
+
state_entry_time_ms: u64, // unsigned long long
|
|
172
|
+
state_time_ms: u64, // unsigned long long
|
|
173
|
+
current_state: bin.u8, // StateId
|
|
174
|
+
previous_state: bin.u8, // StateId
|
|
175
|
+
last_event: bin.u8, // Event
|
|
176
|
+
last_abort_reason: bin.u8, // fsm::AbortReason
|
|
177
|
+
});
|
|
178
|
+
export const FsmStatusPacket = bin.object({
|
|
179
|
+
status: fsm_FsmStatus, // fsm::FsmStatus
|
|
180
|
+
timestamp_ms: bin.u32, // unsigned int
|
|
181
|
+
});
|
|
182
|
+
export const sensors_pressure_PressureBatch = bin.object({
|
|
183
|
+
t0_ms: bin.u32, // unsigned int
|
|
184
|
+
dt_us: bin.u16, // unsigned short
|
|
185
|
+
count: bin.u8, // unsigned char
|
|
186
|
+
seq: bin.u8, // unsigned char
|
|
187
|
+
overrun: bin.bool, // bool
|
|
188
|
+
samples: bin.arrayOf(bin.i16, 10), // short[10]
|
|
189
|
+
});
|
|
190
|
+
export const PressureSensorPacket = bin.object({
|
|
191
|
+
sensor_id: bin.u8, // node::pressure_sensor::Id
|
|
192
|
+
data: sensors_pressure_PressureBatch, // sensors::pressure::PressureBatch
|
|
193
|
+
});
|
|
194
|
+
export const actuators_servo_ServoStatus = bin.object({
|
|
195
|
+
commanded_angle_deg: bin.f32, // float
|
|
196
|
+
target_angle_deg: bin.f32, // float
|
|
197
|
+
measured_angle_deg: bin.f32, // float
|
|
198
|
+
current_ma: bin.f32, // float
|
|
199
|
+
mode: bin.u8, // actuators::servo::ServoMode
|
|
200
|
+
power_state: bin.u8, // actuators::servo::PowerState
|
|
201
|
+
});
|
|
202
|
+
export const ServoStatusPacket = bin.object({
|
|
203
|
+
id: bin.u8, // node::servo::Id
|
|
204
|
+
timestamp_ms: bin.u32, // unsigned int
|
|
205
|
+
status: actuators_servo_ServoStatus, // actuators::servo::ServoStatus
|
|
206
|
+
});
|
|
140
207
|
export const actuators_solenoid_SolenoidStatus = bin.object({
|
|
141
208
|
power_state: bin.u8, // actuators::solenoid::PowerState
|
|
142
209
|
opening: bin.u8, // actuators::solenoid::Opening
|
|
143
210
|
});
|
|
144
|
-
export const
|
|
145
|
-
|
|
211
|
+
export const SolenoidStatusPacket = bin.object({
|
|
212
|
+
id: bin.u8, // node::solenoid::Id
|
|
213
|
+
timestamp_ms: bin.u32, // unsigned int
|
|
214
|
+
status: actuators_solenoid_SolenoidStatus, // actuators::solenoid::SolenoidStatus
|
|
146
215
|
});
|
|
147
216
|
export const regulators_RegulatorStatus = bin.object({
|
|
148
217
|
operator_enabled: bin.bool, // bool
|
|
@@ -159,83 +228,71 @@ export const regulators_RegulatorStatus = bin.object({
|
|
|
159
228
|
last_servo_command_: bin.f32, // float
|
|
160
229
|
last_update_ms: bin.u32, // unsigned int
|
|
161
230
|
});
|
|
162
|
-
export const
|
|
231
|
+
export const RegulatorStatusPacket = bin.object({
|
|
163
232
|
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
233
|
timestamp_ms: bin.u32, // unsigned int
|
|
170
|
-
|
|
171
|
-
});
|
|
172
|
-
export const fsm_FsmStatus = bin.object({
|
|
173
|
-
state_entry_time_ms: u64, // unsigned long long
|
|
174
|
-
state_time_ms: u64, // unsigned long long
|
|
175
|
-
current_state: bin.u8, // StateId
|
|
176
|
-
previous_state: bin.u8, // StateId
|
|
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
|
|
234
|
+
status: regulators_RegulatorStatus, // regulators::RegulatorStatus
|
|
191
235
|
});
|
|
192
236
|
export const spec = {
|
|
193
|
-
actuators_servo_ServoStatus: {
|
|
194
|
-
port: 5003,
|
|
195
|
-
schema: actuators_servo_ServoStatus,
|
|
196
|
-
enums: {
|
|
197
|
-
mode: actuators_servo_ServoMode,
|
|
198
|
-
power_state: actuators_servo_PowerState,
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
237
|
BldcTelemetry: {
|
|
202
238
|
port: 5000,
|
|
203
239
|
schema: BldcTelemetry,
|
|
204
240
|
enums: {},
|
|
205
241
|
},
|
|
206
|
-
actuators_solenoid_SolenoidStatus: {
|
|
207
|
-
port: 5004,
|
|
208
|
-
schema: actuators_solenoid_SolenoidStatus,
|
|
209
|
-
enums: {
|
|
210
|
-
power_state: actuators_solenoid_PowerState,
|
|
211
|
-
opening: actuators_solenoid_Opening,
|
|
212
|
-
},
|
|
213
|
-
},
|
|
214
242
|
HeartBeatTelemetry: {
|
|
243
|
+
port: 57005,
|
|
215
244
|
schema: HeartBeatTelemetry,
|
|
216
245
|
enums: {},
|
|
217
246
|
},
|
|
218
|
-
|
|
219
|
-
port: 5005,
|
|
220
|
-
schema: RegulatorStatusArrayPacket,
|
|
221
|
-
enums: {},
|
|
222
|
-
},
|
|
223
|
-
fsm_FsmStatus: {
|
|
247
|
+
FsmStatusPacket: {
|
|
224
248
|
port: 5001,
|
|
225
|
-
schema:
|
|
249
|
+
schema: FsmStatusPacket,
|
|
226
250
|
enums: {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
251
|
+
status: {
|
|
252
|
+
current_state: StateId,
|
|
253
|
+
previous_state: StateId,
|
|
254
|
+
last_event: Event,
|
|
255
|
+
last_abort_reason: fsm_AbortReason,
|
|
256
|
+
},
|
|
231
257
|
},
|
|
232
258
|
},
|
|
233
|
-
|
|
259
|
+
PressureSensorPacket: {
|
|
234
260
|
port: 5002,
|
|
235
|
-
schema:
|
|
261
|
+
schema: PressureSensorPacket,
|
|
236
262
|
enums: {
|
|
263
|
+
sensor_id: node_pressure_sensor_Id,
|
|
237
264
|
data: {},
|
|
238
265
|
},
|
|
239
266
|
},
|
|
267
|
+
ServoStatusPacket: {
|
|
268
|
+
port: 5003,
|
|
269
|
+
schema: ServoStatusPacket,
|
|
270
|
+
enums: {
|
|
271
|
+
id: node_servo_Id,
|
|
272
|
+
status: {
|
|
273
|
+
mode: actuators_servo_ServoMode,
|
|
274
|
+
power_state: actuators_servo_PowerState,
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
SolenoidStatusPacket: {
|
|
279
|
+
port: 5004,
|
|
280
|
+
schema: SolenoidStatusPacket,
|
|
281
|
+
enums: {
|
|
282
|
+
id: node_solenoid_Id,
|
|
283
|
+
status: {
|
|
284
|
+
power_state: actuators_solenoid_PowerState,
|
|
285
|
+
opening: actuators_solenoid_Opening,
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
RegulatorStatusPacket: {
|
|
290
|
+
port: 5005,
|
|
291
|
+
schema: RegulatorStatusPacket,
|
|
292
|
+
enums: {
|
|
293
|
+
id: node_regulator_Id,
|
|
294
|
+
status: {},
|
|
295
|
+
},
|
|
296
|
+
},
|
|
240
297
|
};
|
|
241
298
|
export default spec;
|