fossekall-interface 0.1.132 → 0.1.135
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.js +1 -1
- package/dist/generated/ecu/telemetry.d.ts +38 -0
- package/dist/generated/ecu/telemetry.js +21 -1
- package/dist/generated/ecu/telemetry.json +65 -0
- package/dist/generated/fc/commands.d.ts +26 -76
- package/dist/generated/fc/commands.js +18 -57
- package/dist/generated/fs/commands.js +1 -1
- package/dist/generated/fs/telemetry.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-07-
|
|
2
|
+
// This file was generated by FRICC on 2026-07-05 14:13:42. 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;
|
|
@@ -189,6 +189,26 @@ export declare const PressureSensorPacket: import("typed-binary").ObjectSchema<{
|
|
|
189
189
|
}>;
|
|
190
190
|
}>;
|
|
191
191
|
export type PressureSensorPacket = bin.Parsed<typeof PressureSensorPacket>;
|
|
192
|
+
export declare const sensors_capacitance_LevelBatch: import("typed-binary").ObjectSchema<{
|
|
193
|
+
t0_us: UInt64Schema;
|
|
194
|
+
dt_us: import("typed-binary").Uint32Schema;
|
|
195
|
+
count: import("typed-binary").ByteSchema;
|
|
196
|
+
seq: import("typed-binary").ByteSchema;
|
|
197
|
+
heights_m: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
198
|
+
}>;
|
|
199
|
+
export type sensors_capacitance_LevelBatch = bin.Parsed<typeof sensors_capacitance_LevelBatch>;
|
|
200
|
+
export declare const LevelTelemetryPacket: import("typed-binary").ObjectSchema<{
|
|
201
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
202
|
+
faults: import("typed-binary").Uint16Schema;
|
|
203
|
+
data: import("typed-binary").ObjectSchema<{
|
|
204
|
+
t0_us: UInt64Schema;
|
|
205
|
+
dt_us: import("typed-binary").Uint32Schema;
|
|
206
|
+
count: import("typed-binary").ByteSchema;
|
|
207
|
+
seq: import("typed-binary").ByteSchema;
|
|
208
|
+
heights_m: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
209
|
+
}>;
|
|
210
|
+
}>;
|
|
211
|
+
export type LevelTelemetryPacket = bin.Parsed<typeof LevelTelemetryPacket>;
|
|
192
212
|
export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
|
|
193
213
|
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
194
214
|
target_angle_deg: import("typed-binary").Float32Schema;
|
|
@@ -511,6 +531,24 @@ export declare const spec: {
|
|
|
511
531
|
data: {};
|
|
512
532
|
};
|
|
513
533
|
};
|
|
534
|
+
LevelTelemetryPacket: {
|
|
535
|
+
port: number;
|
|
536
|
+
packed: null;
|
|
537
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
538
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
539
|
+
faults: import("typed-binary").Uint16Schema;
|
|
540
|
+
data: import("typed-binary").ObjectSchema<{
|
|
541
|
+
t0_us: UInt64Schema;
|
|
542
|
+
dt_us: import("typed-binary").Uint32Schema;
|
|
543
|
+
count: import("typed-binary").ByteSchema;
|
|
544
|
+
seq: import("typed-binary").ByteSchema;
|
|
545
|
+
heights_m: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
546
|
+
}>;
|
|
547
|
+
}>;
|
|
548
|
+
enums: {
|
|
549
|
+
data: {};
|
|
550
|
+
};
|
|
551
|
+
};
|
|
514
552
|
ServoStatusPacket: {
|
|
515
553
|
port: number;
|
|
516
554
|
fragment: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-07-
|
|
2
|
+
// This file was generated by FRICC on 2026-07-05 14:13:44. 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;
|
|
@@ -196,6 +196,18 @@ export const PressureSensorPacket = bin.object({
|
|
|
196
196
|
sensor_id: bin.u8, // sensors::pressure::Id
|
|
197
197
|
data: sensors_pressure_PressureBatch, // sensors::pressure::PressureBatch
|
|
198
198
|
});
|
|
199
|
+
export const sensors_capacitance_LevelBatch = bin.object({
|
|
200
|
+
t0_us: u64, // unsigned long long
|
|
201
|
+
dt_us: bin.u32, // unsigned int
|
|
202
|
+
count: bin.u8, // unsigned char
|
|
203
|
+
seq: bin.u8, // unsigned char
|
|
204
|
+
heights_m: bin.arrayOf(bin.f32, 8), // float[8]
|
|
205
|
+
});
|
|
206
|
+
export const LevelTelemetryPacket = bin.object({
|
|
207
|
+
timestamp_ms: bin.u32, // unsigned int
|
|
208
|
+
faults: bin.u16, // unsigned short
|
|
209
|
+
data: sensors_capacitance_LevelBatch, // sensors::capacitance::LevelBatch
|
|
210
|
+
});
|
|
199
211
|
export const actuators_servo_ServoStatus = bin.object({
|
|
200
212
|
commanded_angle_deg: bin.f32, // float
|
|
201
213
|
target_angle_deg: bin.f32, // float
|
|
@@ -323,6 +335,14 @@ export const spec = {
|
|
|
323
335
|
data: {},
|
|
324
336
|
},
|
|
325
337
|
},
|
|
338
|
+
LevelTelemetryPacket: {
|
|
339
|
+
port: 5010,
|
|
340
|
+
packed: null,
|
|
341
|
+
schema: LevelTelemetryPacket,
|
|
342
|
+
enums: {
|
|
343
|
+
data: {},
|
|
344
|
+
},
|
|
345
|
+
},
|
|
326
346
|
ServoStatusPacket: {
|
|
327
347
|
port: 5003,
|
|
328
348
|
fragment: "servo_id",
|
|
@@ -229,6 +229,71 @@
|
|
|
229
229
|
],
|
|
230
230
|
"format_string": "<BQIBBhhhhhhhhhhhhhhhhhhhh"
|
|
231
231
|
},
|
|
232
|
+
"LevelTelemetryPacket": {
|
|
233
|
+
"port": 5010,
|
|
234
|
+
"packed": null,
|
|
235
|
+
"kind": "struct",
|
|
236
|
+
"type": "LevelTelemetryPacket",
|
|
237
|
+
"fields": [
|
|
238
|
+
{
|
|
239
|
+
"name": "timestamp_ms",
|
|
240
|
+
"kind": "primitive",
|
|
241
|
+
"type": "unsigned int",
|
|
242
|
+
"format_string": "<I"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "faults",
|
|
246
|
+
"kind": "primitive",
|
|
247
|
+
"type": "unsigned short",
|
|
248
|
+
"format_string": "<H"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "data",
|
|
252
|
+
"kind": "struct",
|
|
253
|
+
"type": "sensors::capacitance::LevelBatch",
|
|
254
|
+
"fields": [
|
|
255
|
+
{
|
|
256
|
+
"name": "t0_us",
|
|
257
|
+
"kind": "primitive",
|
|
258
|
+
"type": "unsigned long long",
|
|
259
|
+
"format_string": "<Q"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "dt_us",
|
|
263
|
+
"kind": "primitive",
|
|
264
|
+
"type": "unsigned int",
|
|
265
|
+
"format_string": "<I"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "count",
|
|
269
|
+
"kind": "primitive",
|
|
270
|
+
"type": "unsigned char",
|
|
271
|
+
"format_string": "<B"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "seq",
|
|
275
|
+
"kind": "primitive",
|
|
276
|
+
"type": "unsigned char",
|
|
277
|
+
"format_string": "<B"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "heights_m",
|
|
281
|
+
"kind": "array",
|
|
282
|
+
"type": "float[8]",
|
|
283
|
+
"element": {
|
|
284
|
+
"kind": "primitive",
|
|
285
|
+
"type": "float",
|
|
286
|
+
"format_string": "<f"
|
|
287
|
+
},
|
|
288
|
+
"count": 8,
|
|
289
|
+
"format_string": "<ffffffff"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"format_string": "<QIBBffffffff"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
"format_string": "<IHQIBBffffffff"
|
|
296
|
+
},
|
|
232
297
|
"ServoStatusPacket": {
|
|
233
298
|
"port": 5003,
|
|
234
299
|
"fragment": "servo_id",
|
|
@@ -1,85 +1,35 @@
|
|
|
1
1
|
import bin from 'typed-binary';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare const Commands_CloseFlotationFillingSolenoid: import("typed-binary").ObjectSchema<{
|
|
15
|
-
cmd: import("typed-binary").BoolSchema;
|
|
16
|
-
}>;
|
|
17
|
-
export type Commands_CloseFlotationFillingSolenoid = bin.Parsed<typeof Commands_CloseFlotationFillingSolenoid>;
|
|
18
|
-
export declare const Commands_OpenFlotationSolenoid: import("typed-binary").ObjectSchema<{
|
|
19
|
-
cmd: import("typed-binary").BoolSchema;
|
|
20
|
-
}>;
|
|
21
|
-
export type Commands_OpenFlotationSolenoid = bin.Parsed<typeof Commands_OpenFlotationSolenoid>;
|
|
22
|
-
export declare const Commands_CloseFlotationSolenoid: import("typed-binary").ObjectSchema<{
|
|
23
|
-
cmd: import("typed-binary").BoolSchema;
|
|
24
|
-
}>;
|
|
25
|
-
export type Commands_CloseFlotationSolenoid = bin.Parsed<typeof Commands_CloseFlotationSolenoid>;
|
|
26
|
-
export declare const Commands_SetServoPayload: import("typed-binary").ObjectSchema<{
|
|
27
|
-
angle_deg: import("typed-binary").Float32Schema;
|
|
28
|
-
duration_ms: import("typed-binary").Uint16Schema;
|
|
29
|
-
delay_ms: import("typed-binary").Uint16Schema;
|
|
2
|
+
export declare const Commands_StateCommands: {
|
|
3
|
+
readonly IDLE: 0;
|
|
4
|
+
readonly OPEN_FILLING: 1;
|
|
5
|
+
readonly OPEN_RECOVERY_FILL: 2;
|
|
6
|
+
readonly EXPECT_LIFTOFF: 3;
|
|
7
|
+
readonly OPEN_FLOTATION_FILL: 4;
|
|
8
|
+
readonly SEPERATION: 5;
|
|
9
|
+
readonly FLOTATION: 6;
|
|
10
|
+
};
|
|
11
|
+
export type Commands_StateCommands = (typeof Commands_StateCommands)[keyof typeof Commands_StateCommands];
|
|
12
|
+
export declare const Commands_FSMStateCommand: import("typed-binary").ObjectSchema<{
|
|
13
|
+
command: import("typed-binary").ByteSchema;
|
|
30
14
|
}>;
|
|
31
|
-
export type
|
|
15
|
+
export type Commands_FSMStateCommand = bin.Parsed<typeof Commands_FSMStateCommand>;
|
|
32
16
|
export declare const spec: {
|
|
33
|
-
|
|
34
|
-
id: number;
|
|
35
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
36
|
-
cmd: import("typed-binary").BoolSchema;
|
|
37
|
-
}>;
|
|
38
|
-
enums: {};
|
|
39
|
-
};
|
|
40
|
-
Commands_CloseSeperationFillingSolenoid: {
|
|
41
|
-
id: number;
|
|
42
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
43
|
-
cmd: import("typed-binary").BoolSchema;
|
|
44
|
-
}>;
|
|
45
|
-
enums: {};
|
|
46
|
-
};
|
|
47
|
-
Commands_OpenFlotationFillingSolenoid: {
|
|
48
|
-
id: number;
|
|
49
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
50
|
-
cmd: import("typed-binary").BoolSchema;
|
|
51
|
-
}>;
|
|
52
|
-
enums: {};
|
|
53
|
-
};
|
|
54
|
-
Commands_CloseFlotationFillingSolenoid: {
|
|
55
|
-
id: number;
|
|
56
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
57
|
-
cmd: import("typed-binary").BoolSchema;
|
|
58
|
-
}>;
|
|
59
|
-
enums: {};
|
|
60
|
-
};
|
|
61
|
-
Commands_OpenFlotationSolenoid: {
|
|
62
|
-
id: number;
|
|
63
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
64
|
-
cmd: import("typed-binary").BoolSchema;
|
|
65
|
-
}>;
|
|
66
|
-
enums: {};
|
|
67
|
-
};
|
|
68
|
-
Commands_CloseFlotationSolenoid: {
|
|
69
|
-
id: number;
|
|
70
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
71
|
-
cmd: import("typed-binary").BoolSchema;
|
|
72
|
-
}>;
|
|
73
|
-
enums: {};
|
|
74
|
-
};
|
|
75
|
-
Commands_SetServoPayload: {
|
|
17
|
+
Commands_FSMStateCommand: {
|
|
76
18
|
id: number;
|
|
77
19
|
schema: import("typed-binary").ObjectSchema<{
|
|
78
|
-
|
|
79
|
-
duration_ms: import("typed-binary").Uint16Schema;
|
|
80
|
-
delay_ms: import("typed-binary").Uint16Schema;
|
|
20
|
+
command: import("typed-binary").ByteSchema;
|
|
81
21
|
}>;
|
|
82
|
-
enums: {
|
|
22
|
+
enums: {
|
|
23
|
+
command: {
|
|
24
|
+
readonly IDLE: 0;
|
|
25
|
+
readonly OPEN_FILLING: 1;
|
|
26
|
+
readonly OPEN_RECOVERY_FILL: 2;
|
|
27
|
+
readonly EXPECT_LIFTOFF: 3;
|
|
28
|
+
readonly OPEN_FLOTATION_FILL: 4;
|
|
29
|
+
readonly SEPERATION: 5;
|
|
30
|
+
readonly FLOTATION: 6;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
83
33
|
};
|
|
84
34
|
};
|
|
85
35
|
export default spec;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-07-04
|
|
2
|
+
// This file was generated by FRICC on 2026-07-04 14:47:16. 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,64 +60,25 @@ 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
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
export const
|
|
73
|
-
|
|
74
|
-
});
|
|
75
|
-
export const Commands_OpenFlotationSolenoid = bin.object({
|
|
76
|
-
cmd: bin.bool, // bool
|
|
77
|
-
});
|
|
78
|
-
export const Commands_CloseFlotationSolenoid = bin.object({
|
|
79
|
-
cmd: bin.bool, // bool
|
|
80
|
-
});
|
|
81
|
-
export const Commands_SetServoPayload = bin.object({
|
|
82
|
-
angle_deg: bin.f32, // float
|
|
83
|
-
duration_ms: bin.u16, // unsigned short
|
|
84
|
-
delay_ms: bin.u16, // unsigned short
|
|
63
|
+
export const Commands_StateCommands = {
|
|
64
|
+
IDLE: 0,
|
|
65
|
+
OPEN_FILLING: 1,
|
|
66
|
+
OPEN_RECOVERY_FILL: 2,
|
|
67
|
+
EXPECT_LIFTOFF: 3,
|
|
68
|
+
OPEN_FLOTATION_FILL: 4,
|
|
69
|
+
SEPERATION: 5,
|
|
70
|
+
FLOTATION: 6,
|
|
71
|
+
};
|
|
72
|
+
export const Commands_FSMStateCommand = bin.object({
|
|
73
|
+
command: bin.u8, // Commands::StateCommands
|
|
85
74
|
});
|
|
86
75
|
export const spec = {
|
|
87
|
-
|
|
88
|
-
id:
|
|
89
|
-
schema:
|
|
90
|
-
enums: {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
id: 129,
|
|
94
|
-
schema: Commands_CloseSeperationFillingSolenoid,
|
|
95
|
-
enums: {},
|
|
96
|
-
},
|
|
97
|
-
Commands_OpenFlotationFillingSolenoid: {
|
|
98
|
-
id: 144,
|
|
99
|
-
schema: Commands_OpenFlotationFillingSolenoid,
|
|
100
|
-
enums: {},
|
|
101
|
-
},
|
|
102
|
-
Commands_CloseFlotationFillingSolenoid: {
|
|
103
|
-
id: 145,
|
|
104
|
-
schema: Commands_CloseFlotationFillingSolenoid,
|
|
105
|
-
enums: {},
|
|
106
|
-
},
|
|
107
|
-
Commands_OpenFlotationSolenoid: {
|
|
108
|
-
id: 32,
|
|
109
|
-
schema: Commands_OpenFlotationSolenoid,
|
|
110
|
-
enums: {},
|
|
111
|
-
},
|
|
112
|
-
Commands_CloseFlotationSolenoid: {
|
|
113
|
-
id: 33,
|
|
114
|
-
schema: Commands_CloseFlotationSolenoid,
|
|
115
|
-
enums: {},
|
|
116
|
-
},
|
|
117
|
-
Commands_SetServoPayload: {
|
|
118
|
-
id: 64,
|
|
119
|
-
schema: Commands_SetServoPayload,
|
|
120
|
-
enums: {},
|
|
76
|
+
Commands_FSMStateCommand: {
|
|
77
|
+
id: 16,
|
|
78
|
+
schema: Commands_FSMStateCommand,
|
|
79
|
+
enums: {
|
|
80
|
+
command: Commands_StateCommands,
|
|
81
|
+
},
|
|
121
82
|
},
|
|
122
83
|
};
|
|
123
84
|
export default spec;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-
|
|
2
|
+
// This file was generated by FRICC on 2026-07-05 13:58:04. 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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-
|
|
2
|
+
// This file was generated by FRICC on 2026-07-05 13:58:05. 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;
|