fossekall-interface 0.1.27 → 0.1.29
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.
|
@@ -27,18 +27,6 @@ export declare const StateId: {
|
|
|
27
27
|
readonly Calibrate: 13;
|
|
28
28
|
};
|
|
29
29
|
export type StateId = (typeof StateId)[keyof typeof StateId];
|
|
30
|
-
export declare const Event: {
|
|
31
|
-
readonly Boot: 0;
|
|
32
|
-
readonly NextState: 1;
|
|
33
|
-
readonly PreviousState: 2;
|
|
34
|
-
readonly Timeout: 3;
|
|
35
|
-
readonly CalibrateRequest: 4;
|
|
36
|
-
readonly BurnwireCut: 5;
|
|
37
|
-
readonly Abort: 6;
|
|
38
|
-
readonly None: 7;
|
|
39
|
-
readonly Count: 8;
|
|
40
|
-
};
|
|
41
|
-
export type Event = (typeof Event)[keyof typeof Event];
|
|
42
30
|
export declare const node_servo_Id: {
|
|
43
31
|
readonly MainFuel: 0;
|
|
44
32
|
readonly MainOx: 1;
|
|
@@ -104,6 +92,10 @@ export declare const FsmCommands_NextStatePayload: import("typed-binary").Object
|
|
|
104
92
|
current_state: import("typed-binary").ByteSchema;
|
|
105
93
|
}>;
|
|
106
94
|
export type FsmCommands_NextStatePayload = bin.Parsed<typeof FsmCommands_NextStatePayload>;
|
|
95
|
+
export declare const FsmCommands_PreviousStatePayload: import("typed-binary").ObjectSchema<{
|
|
96
|
+
current_state: import("typed-binary").ByteSchema;
|
|
97
|
+
}>;
|
|
98
|
+
export type FsmCommands_PreviousStatePayload = bin.Parsed<typeof FsmCommands_PreviousStatePayload>;
|
|
107
99
|
export declare const FsmCommands_AbortPayload: import("typed-binary").ObjectSchema<{
|
|
108
100
|
reserved: import("typed-binary").ByteSchema;
|
|
109
101
|
}>;
|
|
@@ -112,10 +104,6 @@ export declare const FsmCommands_StatusPayload: import("typed-binary").ObjectSch
|
|
|
112
104
|
reserved: import("typed-binary").ByteSchema;
|
|
113
105
|
}>;
|
|
114
106
|
export type FsmCommands_StatusPayload = bin.Parsed<typeof FsmCommands_StatusPayload>;
|
|
115
|
-
export declare const FsmCommands_RaiseEventPayload: import("typed-binary").ObjectSchema<{
|
|
116
|
-
event: import("typed-binary").ByteSchema;
|
|
117
|
-
}>;
|
|
118
|
-
export type FsmCommands_RaiseEventPayload = bin.Parsed<typeof FsmCommands_RaiseEventPayload>;
|
|
119
107
|
export declare const ServoCommands_OpenCloseServoPayload: import("typed-binary").ObjectSchema<{
|
|
120
108
|
servo_id: import("typed-binary").ByteSchema;
|
|
121
109
|
open_close: import("typed-binary").ByteSchema;
|
|
@@ -203,38 +191,43 @@ export declare const spec: {
|
|
|
203
191
|
};
|
|
204
192
|
};
|
|
205
193
|
};
|
|
206
|
-
|
|
194
|
+
FsmCommands_PreviousStatePayload: {
|
|
207
195
|
id: number;
|
|
208
196
|
schema: import("typed-binary").ObjectSchema<{
|
|
209
|
-
|
|
197
|
+
current_state: import("typed-binary").ByteSchema;
|
|
210
198
|
}>;
|
|
211
|
-
enums: {
|
|
199
|
+
enums: {
|
|
200
|
+
current_state: {
|
|
201
|
+
readonly Safe: 0;
|
|
202
|
+
readonly N2Fill: 1;
|
|
203
|
+
readonly PostN2Fill: 2;
|
|
204
|
+
readonly OxFill: 3;
|
|
205
|
+
readonly PostOxFill: 4;
|
|
206
|
+
readonly Prechill: 5;
|
|
207
|
+
readonly PostPrechill: 6;
|
|
208
|
+
readonly QDDisconnect: 7;
|
|
209
|
+
readonly Pressurized: 8;
|
|
210
|
+
readonly Armed: 9;
|
|
211
|
+
readonly Burn: 10;
|
|
212
|
+
readonly Shutdown: 11;
|
|
213
|
+
readonly PostShutdown: 12;
|
|
214
|
+
readonly Calibrate: 13;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
212
217
|
};
|
|
213
|
-
|
|
218
|
+
FsmCommands_AbortPayload: {
|
|
214
219
|
id: number;
|
|
215
220
|
schema: import("typed-binary").ObjectSchema<{
|
|
216
221
|
reserved: import("typed-binary").ByteSchema;
|
|
217
222
|
}>;
|
|
218
223
|
enums: {};
|
|
219
224
|
};
|
|
220
|
-
|
|
225
|
+
FsmCommands_StatusPayload: {
|
|
221
226
|
id: number;
|
|
222
227
|
schema: import("typed-binary").ObjectSchema<{
|
|
223
|
-
|
|
228
|
+
reserved: import("typed-binary").ByteSchema;
|
|
224
229
|
}>;
|
|
225
|
-
enums: {
|
|
226
|
-
event: {
|
|
227
|
-
readonly Boot: 0;
|
|
228
|
-
readonly NextState: 1;
|
|
229
|
-
readonly PreviousState: 2;
|
|
230
|
-
readonly Timeout: 3;
|
|
231
|
-
readonly CalibrateRequest: 4;
|
|
232
|
-
readonly BurnwireCut: 5;
|
|
233
|
-
readonly Abort: 6;
|
|
234
|
-
readonly None: 7;
|
|
235
|
-
readonly Count: 8;
|
|
236
|
-
};
|
|
237
|
-
};
|
|
230
|
+
enums: {};
|
|
238
231
|
};
|
|
239
232
|
ServoCommands_OpenCloseServoPayload: {
|
|
240
233
|
id: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-03-26
|
|
2
|
+
// This file was generated by FRICC on 2026-03-26 17:15:52. 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;
|
|
@@ -85,17 +85,6 @@ export const StateId = {
|
|
|
85
85
|
PostShutdown: 12,
|
|
86
86
|
Calibrate: 13,
|
|
87
87
|
};
|
|
88
|
-
export const Event = {
|
|
89
|
-
Boot: 0,
|
|
90
|
-
NextState: 1,
|
|
91
|
-
PreviousState: 2,
|
|
92
|
-
Timeout: 3,
|
|
93
|
-
CalibrateRequest: 4,
|
|
94
|
-
BurnwireCut: 5,
|
|
95
|
-
Abort: 6,
|
|
96
|
-
None: 7,
|
|
97
|
-
Count: 8,
|
|
98
|
-
};
|
|
99
88
|
export const node_servo_Id = {
|
|
100
89
|
MainFuel: 0,
|
|
101
90
|
MainOx: 1,
|
|
@@ -150,15 +139,15 @@ export const BldcCommands_SetBldcPayload = bin.object({
|
|
|
150
139
|
export const FsmCommands_NextStatePayload = bin.object({
|
|
151
140
|
current_state: bin.u8, // StateId
|
|
152
141
|
});
|
|
142
|
+
export const FsmCommands_PreviousStatePayload = bin.object({
|
|
143
|
+
current_state: bin.u8, // StateId
|
|
144
|
+
});
|
|
153
145
|
export const FsmCommands_AbortPayload = bin.object({
|
|
154
146
|
reserved: bin.u8, // unsigned char
|
|
155
147
|
});
|
|
156
148
|
export const FsmCommands_StatusPayload = bin.object({
|
|
157
149
|
reserved: bin.u8, // unsigned char
|
|
158
150
|
});
|
|
159
|
-
export const FsmCommands_RaiseEventPayload = bin.object({
|
|
160
|
-
event: bin.u8, // Event
|
|
161
|
-
});
|
|
162
151
|
export const ServoCommands_OpenCloseServoPayload = bin.object({
|
|
163
152
|
servo_id: bin.u8, // node::servo::Id
|
|
164
153
|
open_close: bin.u8, // ServoCommands::OpenClose
|
|
@@ -212,23 +201,23 @@ export const spec = {
|
|
|
212
201
|
current_state: StateId,
|
|
213
202
|
},
|
|
214
203
|
},
|
|
215
|
-
|
|
204
|
+
FsmCommands_PreviousStatePayload: {
|
|
216
205
|
id: 33,
|
|
206
|
+
schema: FsmCommands_PreviousStatePayload,
|
|
207
|
+
enums: {
|
|
208
|
+
current_state: StateId,
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
FsmCommands_AbortPayload: {
|
|
212
|
+
id: 34,
|
|
217
213
|
schema: FsmCommands_AbortPayload,
|
|
218
214
|
enums: {},
|
|
219
215
|
},
|
|
220
216
|
FsmCommands_StatusPayload: {
|
|
221
|
-
id:
|
|
217
|
+
id: 35,
|
|
222
218
|
schema: FsmCommands_StatusPayload,
|
|
223
219
|
enums: {},
|
|
224
220
|
},
|
|
225
|
-
FsmCommands_RaiseEventPayload: {
|
|
226
|
-
id: 35,
|
|
227
|
-
schema: FsmCommands_RaiseEventPayload,
|
|
228
|
-
enums: {
|
|
229
|
-
event: Event,
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
221
|
ServoCommands_OpenCloseServoPayload: {
|
|
233
222
|
id: 48,
|
|
234
223
|
schema: ServoCommands_OpenCloseServoPayload,
|
|
@@ -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;
|
|
@@ -61,9 +36,10 @@ export declare const Event: {
|
|
|
61
36
|
export type Event = (typeof Event)[keyof typeof Event];
|
|
62
37
|
export declare const fsm_AbortReason: {
|
|
63
38
|
readonly None: 0;
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
39
|
+
readonly Manual: 1;
|
|
40
|
+
readonly FuelTankOverpressure: 2;
|
|
41
|
+
readonly OxTankOverpressure: 3;
|
|
42
|
+
readonly ChamberUnderpressure: 4;
|
|
67
43
|
};
|
|
68
44
|
export type fsm_AbortReason = (typeof fsm_AbortReason)[keyof typeof fsm_AbortReason];
|
|
69
45
|
export declare const node_pressure_sensor_Id: {
|
|
@@ -88,6 +64,19 @@ export declare const node_servo_Id: {
|
|
|
88
64
|
readonly Count: 5;
|
|
89
65
|
};
|
|
90
66
|
export type node_servo_Id = (typeof node_servo_Id)[keyof typeof node_servo_Id];
|
|
67
|
+
export declare const actuators_servo_ServoMode: {
|
|
68
|
+
readonly kUnknown: 0;
|
|
69
|
+
readonly kPosition: 1;
|
|
70
|
+
readonly kCalibrate: 2;
|
|
71
|
+
};
|
|
72
|
+
export type actuators_servo_ServoMode = (typeof actuators_servo_ServoMode)[keyof typeof actuators_servo_ServoMode];
|
|
73
|
+
export declare const actuators_servo_PowerState: {
|
|
74
|
+
readonly kUnknown: 0;
|
|
75
|
+
readonly kOff: 1;
|
|
76
|
+
readonly kBooting: 2;
|
|
77
|
+
readonly kOn: 3;
|
|
78
|
+
};
|
|
79
|
+
export type actuators_servo_PowerState = (typeof actuators_servo_PowerState)[keyof typeof actuators_servo_PowerState];
|
|
91
80
|
export declare const node_solenoid_Id: {
|
|
92
81
|
readonly FuelVent: 0;
|
|
93
82
|
readonly OxVent: 1;
|
|
@@ -100,20 +89,23 @@ export declare const node_solenoid_Id: {
|
|
|
100
89
|
readonly Count: 8;
|
|
101
90
|
};
|
|
102
91
|
export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
|
|
92
|
+
export declare const actuators_solenoid_PowerState: {
|
|
93
|
+
readonly kUnknown: 0;
|
|
94
|
+
readonly kOff: 1;
|
|
95
|
+
readonly kOn: 2;
|
|
96
|
+
};
|
|
97
|
+
export type actuators_solenoid_PowerState = (typeof actuators_solenoid_PowerState)[keyof typeof actuators_solenoid_PowerState];
|
|
98
|
+
export declare const actuators_solenoid_Opening: {
|
|
99
|
+
readonly kUnknown: 0;
|
|
100
|
+
readonly kClosed: 1;
|
|
101
|
+
readonly kOpen: 2;
|
|
102
|
+
};
|
|
103
|
+
export type actuators_solenoid_Opening = (typeof actuators_solenoid_Opening)[keyof typeof actuators_solenoid_Opening];
|
|
103
104
|
export declare const node_regulator_Id: {
|
|
104
105
|
readonly OxBoiloff: 0;
|
|
105
106
|
readonly Count: 1;
|
|
106
107
|
};
|
|
107
108
|
export type node_regulator_Id = (typeof node_regulator_Id)[keyof typeof node_regulator_Id];
|
|
108
|
-
export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
|
|
109
|
-
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
110
|
-
target_angle_deg: import("typed-binary").Float32Schema;
|
|
111
|
-
measured_angle_deg: import("typed-binary").Float32Schema;
|
|
112
|
-
current_ma: import("typed-binary").Float32Schema;
|
|
113
|
-
mode: import("typed-binary").ByteSchema;
|
|
114
|
-
power_state: import("typed-binary").ByteSchema;
|
|
115
|
-
}>;
|
|
116
|
-
export type actuators_servo_ServoStatus = bin.Parsed<typeof actuators_servo_ServoStatus>;
|
|
117
109
|
export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
|
|
118
110
|
valve_position: import("typed-binary").Float32Schema;
|
|
119
111
|
motor_position: import("typed-binary").Float32Schema;
|
|
@@ -130,11 +122,6 @@ export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
|
|
|
130
122
|
calibrated: import("typed-binary").ByteSchema;
|
|
131
123
|
}>;
|
|
132
124
|
export type BldcTelemetry = bin.Parsed<typeof BldcTelemetry>;
|
|
133
|
-
export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").ObjectSchema<{
|
|
134
|
-
power_state: import("typed-binary").ByteSchema;
|
|
135
|
-
opening: import("typed-binary").ByteSchema;
|
|
136
|
-
}>;
|
|
137
|
-
export type actuators_solenoid_SolenoidStatus = bin.Parsed<typeof actuators_solenoid_SolenoidStatus>;
|
|
138
125
|
export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
|
|
139
126
|
message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
140
127
|
}>;
|
|
@@ -181,6 +168,15 @@ export declare const PressureSensorPacket: import("typed-binary").ObjectSchema<{
|
|
|
181
168
|
}>;
|
|
182
169
|
}>;
|
|
183
170
|
export type PressureSensorPacket = bin.Parsed<typeof PressureSensorPacket>;
|
|
171
|
+
export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
|
|
172
|
+
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
173
|
+
target_angle_deg: import("typed-binary").Float32Schema;
|
|
174
|
+
measured_angle_deg: import("typed-binary").Float32Schema;
|
|
175
|
+
current_ma: import("typed-binary").Float32Schema;
|
|
176
|
+
mode: import("typed-binary").ByteSchema;
|
|
177
|
+
power_state: import("typed-binary").ByteSchema;
|
|
178
|
+
}>;
|
|
179
|
+
export type actuators_servo_ServoStatus = bin.Parsed<typeof actuators_servo_ServoStatus>;
|
|
184
180
|
export declare const ServoStatusPacket: import("typed-binary").ObjectSchema<{
|
|
185
181
|
id: import("typed-binary").ByteSchema;
|
|
186
182
|
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
@@ -194,6 +190,11 @@ export declare const ServoStatusPacket: import("typed-binary").ObjectSchema<{
|
|
|
194
190
|
}>;
|
|
195
191
|
}>;
|
|
196
192
|
export type ServoStatusPacket = bin.Parsed<typeof ServoStatusPacket>;
|
|
193
|
+
export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").ObjectSchema<{
|
|
194
|
+
power_state: import("typed-binary").ByteSchema;
|
|
195
|
+
opening: import("typed-binary").ByteSchema;
|
|
196
|
+
}>;
|
|
197
|
+
export type actuators_solenoid_SolenoidStatus = bin.Parsed<typeof actuators_solenoid_SolenoidStatus>;
|
|
197
198
|
export declare const SolenoidStatusPacket: import("typed-binary").ObjectSchema<{
|
|
198
199
|
id: import("typed-binary").ByteSchema;
|
|
199
200
|
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
@@ -240,30 +241,6 @@ export declare const RegulatorStatusPacket: import("typed-binary").ObjectSchema<
|
|
|
240
241
|
}>;
|
|
241
242
|
export type RegulatorStatusPacket = bin.Parsed<typeof RegulatorStatusPacket>;
|
|
242
243
|
export declare const spec: {
|
|
243
|
-
actuators_servo_ServoStatus: {
|
|
244
|
-
port: number;
|
|
245
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
246
|
-
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
247
|
-
target_angle_deg: import("typed-binary").Float32Schema;
|
|
248
|
-
measured_angle_deg: import("typed-binary").Float32Schema;
|
|
249
|
-
current_ma: import("typed-binary").Float32Schema;
|
|
250
|
-
mode: import("typed-binary").ByteSchema;
|
|
251
|
-
power_state: import("typed-binary").ByteSchema;
|
|
252
|
-
}>;
|
|
253
|
-
enums: {
|
|
254
|
-
mode: {
|
|
255
|
-
readonly kUnknown: 0;
|
|
256
|
-
readonly kPosition: 1;
|
|
257
|
-
readonly kCalibrate: 2;
|
|
258
|
-
};
|
|
259
|
-
power_state: {
|
|
260
|
-
readonly kUnknown: 0;
|
|
261
|
-
readonly kOff: 1;
|
|
262
|
-
readonly kBooting: 2;
|
|
263
|
-
readonly kOn: 3;
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
244
|
BldcTelemetry: {
|
|
268
245
|
port: number;
|
|
269
246
|
schema: import("typed-binary").ObjectSchema<{
|
|
@@ -283,25 +260,6 @@ export declare const spec: {
|
|
|
283
260
|
}>;
|
|
284
261
|
enums: {};
|
|
285
262
|
};
|
|
286
|
-
actuators_solenoid_SolenoidStatus: {
|
|
287
|
-
port: number;
|
|
288
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
289
|
-
power_state: import("typed-binary").ByteSchema;
|
|
290
|
-
opening: import("typed-binary").ByteSchema;
|
|
291
|
-
}>;
|
|
292
|
-
enums: {
|
|
293
|
-
power_state: {
|
|
294
|
-
readonly kUnknown: 0;
|
|
295
|
-
readonly kOff: 1;
|
|
296
|
-
readonly kOn: 2;
|
|
297
|
-
};
|
|
298
|
-
opening: {
|
|
299
|
-
readonly kUnknown: 0;
|
|
300
|
-
readonly kClosed: 1;
|
|
301
|
-
readonly kOpen: 2;
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
};
|
|
305
263
|
HeartBeatTelemetry: {
|
|
306
264
|
port: number;
|
|
307
265
|
schema: import("typed-binary").ObjectSchema<{
|
|
@@ -369,9 +327,10 @@ export declare const spec: {
|
|
|
369
327
|
};
|
|
370
328
|
last_abort_reason: {
|
|
371
329
|
readonly None: 0;
|
|
372
|
-
readonly
|
|
373
|
-
readonly
|
|
374
|
-
readonly
|
|
330
|
+
readonly Manual: 1;
|
|
331
|
+
readonly FuelTankOverpressure: 2;
|
|
332
|
+
readonly OxTankOverpressure: 3;
|
|
333
|
+
readonly ChamberUnderpressure: 4;
|
|
375
334
|
};
|
|
376
335
|
};
|
|
377
336
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-03-26
|
|
2
|
+
// This file was generated by FRICC on 2026-03-26 17:15:49. 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,
|
|
@@ -110,9 +89,10 @@ export const Event = {
|
|
|
110
89
|
};
|
|
111
90
|
export const fsm_AbortReason = {
|
|
112
91
|
None: 0,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
92
|
+
Manual: 1,
|
|
93
|
+
FuelTankOverpressure: 2,
|
|
94
|
+
OxTankOverpressure: 3,
|
|
95
|
+
ChamberUnderpressure: 4,
|
|
116
96
|
};
|
|
117
97
|
export const node_pressure_sensor_Id = {
|
|
118
98
|
N2Tank: 0,
|
|
@@ -134,6 +114,17 @@ export const node_servo_Id = {
|
|
|
134
114
|
OxSupply: 4,
|
|
135
115
|
Count: 5,
|
|
136
116
|
};
|
|
117
|
+
export const actuators_servo_ServoMode = {
|
|
118
|
+
kUnknown: 0,
|
|
119
|
+
kPosition: 1,
|
|
120
|
+
kCalibrate: 2,
|
|
121
|
+
};
|
|
122
|
+
export const actuators_servo_PowerState = {
|
|
123
|
+
kUnknown: 0,
|
|
124
|
+
kOff: 1,
|
|
125
|
+
kBooting: 2,
|
|
126
|
+
kOn: 3,
|
|
127
|
+
};
|
|
137
128
|
export const node_solenoid_Id = {
|
|
138
129
|
FuelVent: 0,
|
|
139
130
|
OxVent: 1,
|
|
@@ -145,18 +136,20 @@ export const node_solenoid_Id = {
|
|
|
145
136
|
QD_2: 7,
|
|
146
137
|
Count: 8,
|
|
147
138
|
};
|
|
139
|
+
export const actuators_solenoid_PowerState = {
|
|
140
|
+
kUnknown: 0,
|
|
141
|
+
kOff: 1,
|
|
142
|
+
kOn: 2,
|
|
143
|
+
};
|
|
144
|
+
export const actuators_solenoid_Opening = {
|
|
145
|
+
kUnknown: 0,
|
|
146
|
+
kClosed: 1,
|
|
147
|
+
kOpen: 2,
|
|
148
|
+
};
|
|
148
149
|
export const node_regulator_Id = {
|
|
149
150
|
OxBoiloff: 0,
|
|
150
151
|
Count: 1,
|
|
151
152
|
};
|
|
152
|
-
export const actuators_servo_ServoStatus = bin.object({
|
|
153
|
-
commanded_angle_deg: bin.f32, // float
|
|
154
|
-
target_angle_deg: bin.f32, // float
|
|
155
|
-
measured_angle_deg: bin.f32, // float
|
|
156
|
-
current_ma: bin.f32, // float
|
|
157
|
-
mode: bin.u8, // actuators::servo::ServoMode
|
|
158
|
-
power_state: bin.u8, // actuators::servo::PowerState
|
|
159
|
-
});
|
|
160
153
|
export const BldcTelemetry = bin.object({
|
|
161
154
|
valve_position: bin.f32, // float
|
|
162
155
|
motor_position: bin.f32, // float
|
|
@@ -172,10 +165,6 @@ export const BldcTelemetry = bin.object({
|
|
|
172
165
|
position_raw: bin.f32, // float
|
|
173
166
|
calibrated: bin.u8, // unsigned char
|
|
174
167
|
});
|
|
175
|
-
export const actuators_solenoid_SolenoidStatus = bin.object({
|
|
176
|
-
power_state: bin.u8, // actuators::solenoid::PowerState
|
|
177
|
-
opening: bin.u8, // actuators::solenoid::Opening
|
|
178
|
-
});
|
|
179
168
|
export const HeartBeatTelemetry = bin.object({
|
|
180
169
|
message: bin.arrayOf(bin.i8, 16), // char[16]
|
|
181
170
|
});
|
|
@@ -203,11 +192,23 @@ export const PressureSensorPacket = bin.object({
|
|
|
203
192
|
sensor_id: bin.u8, // node::pressure_sensor::Id
|
|
204
193
|
data: sensors_pressure_PressureBatch, // sensors::pressure::PressureBatch
|
|
205
194
|
});
|
|
195
|
+
export const actuators_servo_ServoStatus = bin.object({
|
|
196
|
+
commanded_angle_deg: bin.f32, // float
|
|
197
|
+
target_angle_deg: bin.f32, // float
|
|
198
|
+
measured_angle_deg: bin.f32, // float
|
|
199
|
+
current_ma: bin.f32, // float
|
|
200
|
+
mode: bin.u8, // actuators::servo::ServoMode
|
|
201
|
+
power_state: bin.u8, // actuators::servo::PowerState
|
|
202
|
+
});
|
|
206
203
|
export const ServoStatusPacket = bin.object({
|
|
207
204
|
id: bin.u8, // node::servo::Id
|
|
208
205
|
timestamp_ms: bin.u32, // unsigned int
|
|
209
206
|
status: actuators_servo_ServoStatus, // actuators::servo::ServoStatus
|
|
210
207
|
});
|
|
208
|
+
export const actuators_solenoid_SolenoidStatus = bin.object({
|
|
209
|
+
power_state: bin.u8, // actuators::solenoid::PowerState
|
|
210
|
+
opening: bin.u8, // actuators::solenoid::Opening
|
|
211
|
+
});
|
|
211
212
|
export const SolenoidStatusPacket = bin.object({
|
|
212
213
|
id: bin.u8, // node::solenoid::Id
|
|
213
214
|
timestamp_ms: bin.u32, // unsigned int
|
|
@@ -234,27 +235,11 @@ export const RegulatorStatusPacket = bin.object({
|
|
|
234
235
|
status: regulators_RegulatorStatus, // regulators::RegulatorStatus
|
|
235
236
|
});
|
|
236
237
|
export const spec = {
|
|
237
|
-
actuators_servo_ServoStatus: {
|
|
238
|
-
port: 5003,
|
|
239
|
-
schema: actuators_servo_ServoStatus,
|
|
240
|
-
enums: {
|
|
241
|
-
mode: actuators_servo_ServoMode,
|
|
242
|
-
power_state: actuators_servo_PowerState,
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
238
|
BldcTelemetry: {
|
|
246
239
|
port: 5000,
|
|
247
240
|
schema: BldcTelemetry,
|
|
248
241
|
enums: {},
|
|
249
242
|
},
|
|
250
|
-
actuators_solenoid_SolenoidStatus: {
|
|
251
|
-
port: 5004,
|
|
252
|
-
schema: actuators_solenoid_SolenoidStatus,
|
|
253
|
-
enums: {
|
|
254
|
-
power_state: actuators_solenoid_PowerState,
|
|
255
|
-
opening: actuators_solenoid_Opening,
|
|
256
|
-
},
|
|
257
|
-
},
|
|
258
243
|
HeartBeatTelemetry: {
|
|
259
244
|
port: 57005,
|
|
260
245
|
schema: HeartBeatTelemetry,
|