fossekall-interface 0.1.50 → 0.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-04-01
|
|
2
|
+
// This file was generated by FRICC on 2026-04-01 14:25: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;
|
|
@@ -5,6 +5,12 @@ 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 node_bldc_Id: {
|
|
9
|
+
readonly Fuel: 0;
|
|
10
|
+
readonly Ox: 1;
|
|
11
|
+
readonly Count: 2;
|
|
12
|
+
};
|
|
13
|
+
export type node_bldc_Id = (typeof node_bldc_Id)[keyof typeof node_bldc_Id];
|
|
8
14
|
export declare const StateId: {
|
|
9
15
|
readonly Safe: 0;
|
|
10
16
|
readonly N2Fill: 1;
|
|
@@ -113,6 +119,10 @@ export declare const node_load_cell_Id: {
|
|
|
113
119
|
readonly Count: 3;
|
|
114
120
|
};
|
|
115
121
|
export type node_load_cell_Id = (typeof node_load_cell_Id)[keyof typeof node_load_cell_Id];
|
|
122
|
+
export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
|
|
123
|
+
message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
124
|
+
}>;
|
|
125
|
+
export type HeartBeatTelemetry = bin.Parsed<typeof HeartBeatTelemetry>;
|
|
116
126
|
export declare const actuators_bldc_BldcTelemetry: import("typed-binary").ObjectSchema<{
|
|
117
127
|
valve_position: import("typed-binary").Float32Schema;
|
|
118
128
|
motor_position: import("typed-binary").Float32Schema;
|
|
@@ -129,10 +139,26 @@ export declare const actuators_bldc_BldcTelemetry: import("typed-binary").Object
|
|
|
129
139
|
calibrated: import("typed-binary").ByteSchema;
|
|
130
140
|
}>;
|
|
131
141
|
export type actuators_bldc_BldcTelemetry = bin.Parsed<typeof actuators_bldc_BldcTelemetry>;
|
|
132
|
-
export declare const
|
|
133
|
-
|
|
142
|
+
export declare const BldcTelemetryPacket: import("typed-binary").ObjectSchema<{
|
|
143
|
+
bldc_id: import("typed-binary").ByteSchema;
|
|
144
|
+
fsm_state: import("typed-binary").ByteSchema;
|
|
145
|
+
telemetry: import("typed-binary").ObjectSchema<{
|
|
146
|
+
valve_position: import("typed-binary").Float32Schema;
|
|
147
|
+
motor_position: import("typed-binary").Float32Schema;
|
|
148
|
+
timestamp: UInt64Schema;
|
|
149
|
+
current_draw: import("typed-binary").Float32Schema;
|
|
150
|
+
u_p: import("typed-binary").Float32Schema;
|
|
151
|
+
u_i: import("typed-binary").Float32Schema;
|
|
152
|
+
u_d: import("typed-binary").Float32Schema;
|
|
153
|
+
u_pid: import("typed-binary").Float32Schema;
|
|
154
|
+
u_ff: import("typed-binary").Float32Schema;
|
|
155
|
+
u_set: import("typed-binary").Float32Schema;
|
|
156
|
+
u_total: import("typed-binary").Float32Schema;
|
|
157
|
+
position_raw: import("typed-binary").Float32Schema;
|
|
158
|
+
calibrated: import("typed-binary").ByteSchema;
|
|
159
|
+
}>;
|
|
134
160
|
}>;
|
|
135
|
-
export type
|
|
161
|
+
export type BldcTelemetryPacket = bin.Parsed<typeof BldcTelemetryPacket>;
|
|
136
162
|
export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
|
|
137
163
|
state_entry_time_ms: UInt64Schema;
|
|
138
164
|
state_time_ms: UInt64Schema;
|
|
@@ -294,31 +320,58 @@ export declare const LoadCellPacket: import("typed-binary").ObjectSchema<{
|
|
|
294
320
|
}>;
|
|
295
321
|
export type LoadCellPacket = bin.Parsed<typeof LoadCellPacket>;
|
|
296
322
|
export declare const spec: {
|
|
297
|
-
|
|
323
|
+
HeartBeatTelemetry: {
|
|
298
324
|
port: number;
|
|
299
325
|
schema: import("typed-binary").ObjectSchema<{
|
|
300
|
-
|
|
301
|
-
motor_position: import("typed-binary").Float32Schema;
|
|
302
|
-
timestamp: UInt64Schema;
|
|
303
|
-
current_draw: import("typed-binary").Float32Schema;
|
|
304
|
-
u_p: import("typed-binary").Float32Schema;
|
|
305
|
-
u_i: import("typed-binary").Float32Schema;
|
|
306
|
-
u_d: import("typed-binary").Float32Schema;
|
|
307
|
-
u_pid: import("typed-binary").Float32Schema;
|
|
308
|
-
u_ff: import("typed-binary").Float32Schema;
|
|
309
|
-
u_set: import("typed-binary").Float32Schema;
|
|
310
|
-
u_total: import("typed-binary").Float32Schema;
|
|
311
|
-
position_raw: import("typed-binary").Float32Schema;
|
|
312
|
-
calibrated: import("typed-binary").ByteSchema;
|
|
326
|
+
message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
313
327
|
}>;
|
|
314
328
|
enums: {};
|
|
315
329
|
};
|
|
316
|
-
|
|
330
|
+
BldcTelemetryPacket: {
|
|
317
331
|
port: number;
|
|
318
332
|
schema: import("typed-binary").ObjectSchema<{
|
|
319
|
-
|
|
333
|
+
bldc_id: import("typed-binary").ByteSchema;
|
|
334
|
+
fsm_state: import("typed-binary").ByteSchema;
|
|
335
|
+
telemetry: import("typed-binary").ObjectSchema<{
|
|
336
|
+
valve_position: import("typed-binary").Float32Schema;
|
|
337
|
+
motor_position: import("typed-binary").Float32Schema;
|
|
338
|
+
timestamp: UInt64Schema;
|
|
339
|
+
current_draw: import("typed-binary").Float32Schema;
|
|
340
|
+
u_p: import("typed-binary").Float32Schema;
|
|
341
|
+
u_i: import("typed-binary").Float32Schema;
|
|
342
|
+
u_d: import("typed-binary").Float32Schema;
|
|
343
|
+
u_pid: import("typed-binary").Float32Schema;
|
|
344
|
+
u_ff: import("typed-binary").Float32Schema;
|
|
345
|
+
u_set: import("typed-binary").Float32Schema;
|
|
346
|
+
u_total: import("typed-binary").Float32Schema;
|
|
347
|
+
position_raw: import("typed-binary").Float32Schema;
|
|
348
|
+
calibrated: import("typed-binary").ByteSchema;
|
|
349
|
+
}>;
|
|
320
350
|
}>;
|
|
321
|
-
enums: {
|
|
351
|
+
enums: {
|
|
352
|
+
bldc_id: {
|
|
353
|
+
readonly Fuel: 0;
|
|
354
|
+
readonly Ox: 1;
|
|
355
|
+
readonly Count: 2;
|
|
356
|
+
};
|
|
357
|
+
fsm_state: {
|
|
358
|
+
readonly Safe: 0;
|
|
359
|
+
readonly N2Fill: 1;
|
|
360
|
+
readonly PostN2Fill: 2;
|
|
361
|
+
readonly OxFill: 3;
|
|
362
|
+
readonly PostOxFill: 4;
|
|
363
|
+
readonly Prechill: 5;
|
|
364
|
+
readonly PostPrechill: 6;
|
|
365
|
+
readonly QDDisconnect: 7;
|
|
366
|
+
readonly Pressurized: 8;
|
|
367
|
+
readonly Armed: 9;
|
|
368
|
+
readonly Burn: 10;
|
|
369
|
+
readonly Shutdown: 11;
|
|
370
|
+
readonly PostShutdown: 12;
|
|
371
|
+
readonly Calibrate: 13;
|
|
372
|
+
};
|
|
373
|
+
telemetry: {};
|
|
374
|
+
};
|
|
322
375
|
};
|
|
323
376
|
FsmStatusPacket: {
|
|
324
377
|
port: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-04-01
|
|
2
|
+
// This file was generated by FRICC on 2026-04-01 14:25: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,6 +60,11 @@ 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
|
+
Fuel: 0,
|
|
65
|
+
Ox: 1,
|
|
66
|
+
Count: 2,
|
|
67
|
+
};
|
|
63
68
|
export const StateId = {
|
|
64
69
|
Safe: 0,
|
|
65
70
|
N2Fill: 1,
|
|
@@ -156,6 +161,9 @@ export const node_load_cell_Id = {
|
|
|
156
161
|
LoadCell3: 2,
|
|
157
162
|
Count: 3,
|
|
158
163
|
};
|
|
164
|
+
export const HeartBeatTelemetry = bin.object({
|
|
165
|
+
message: bin.arrayOf(bin.i8, 16), // char[16]
|
|
166
|
+
});
|
|
159
167
|
export const actuators_bldc_BldcTelemetry = bin.object({
|
|
160
168
|
valve_position: bin.f32, // float
|
|
161
169
|
motor_position: bin.f32, // float
|
|
@@ -171,8 +179,10 @@ export const actuators_bldc_BldcTelemetry = bin.object({
|
|
|
171
179
|
position_raw: bin.f32, // float
|
|
172
180
|
calibrated: bin.u8, // unsigned char
|
|
173
181
|
});
|
|
174
|
-
export const
|
|
175
|
-
|
|
182
|
+
export const BldcTelemetryPacket = bin.object({
|
|
183
|
+
bldc_id: bin.u8, // node::bldc::Id
|
|
184
|
+
fsm_state: bin.u8, // StateId
|
|
185
|
+
telemetry: actuators_bldc_BldcTelemetry, // actuators::bldc::BldcTelemetry
|
|
176
186
|
});
|
|
177
187
|
export const fsm_FsmStatus = bin.object({
|
|
178
188
|
state_entry_time_ms: u64, // unsigned long long
|
|
@@ -265,16 +275,20 @@ export const LoadCellPacket = bin.object({
|
|
|
265
275
|
data: sensors_loadcell_LoadCellBatch, // sensors::loadcell::LoadCellBatch
|
|
266
276
|
});
|
|
267
277
|
export const spec = {
|
|
268
|
-
actuators_bldc_BldcTelemetry: {
|
|
269
|
-
port: 5000,
|
|
270
|
-
schema: actuators_bldc_BldcTelemetry,
|
|
271
|
-
enums: {},
|
|
272
|
-
},
|
|
273
278
|
HeartBeatTelemetry: {
|
|
274
279
|
port: 57005,
|
|
275
280
|
schema: HeartBeatTelemetry,
|
|
276
281
|
enums: {},
|
|
277
282
|
},
|
|
283
|
+
BldcTelemetryPacket: {
|
|
284
|
+
port: 5000,
|
|
285
|
+
schema: BldcTelemetryPacket,
|
|
286
|
+
enums: {
|
|
287
|
+
bldc_id: node_bldc_Id,
|
|
288
|
+
fsm_state: StateId,
|
|
289
|
+
telemetry: {},
|
|
290
|
+
},
|
|
291
|
+
},
|
|
278
292
|
FsmStatusPacket: {
|
|
279
293
|
port: 5001,
|
|
280
294
|
schema: FsmStatusPacket,
|