fossekall-interface 0.1.135 → 0.1.137
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 +15 -25
- package/dist/generated/ecu/telemetry.js +9 -12
- package/dist/generated/ecu/telemetry.json +59 -43
- package/dist/generated/fc/status.d.ts +33 -0
- package/dist/generated/fc/status.js +18 -1
- package/dist/generated/fs/commands.js +1 -1
- package/dist/generated/fs/telemetry.js +7 -7
- package/dist/generated/fs/telemetry.json +6 -6
- 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-06 13:11:50. 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,24 +189,16 @@ 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
192
|
export declare const LevelTelemetryPacket: import("typed-binary").ObjectSchema<{
|
|
201
193
|
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
202
194
|
faults: import("typed-binary").Uint16Schema;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
195
|
+
height_m: import("typed-binary").Float32Schema;
|
|
196
|
+
main_count: import("typed-binary").ByteSchema;
|
|
197
|
+
gas_count: import("typed-binary").ByteSchema;
|
|
198
|
+
liquid_count: import("typed-binary").ByteSchema;
|
|
199
|
+
main_cpf: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
200
|
+
gas_cpf: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
201
|
+
liquid_cpf: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
210
202
|
}>;
|
|
211
203
|
export type LevelTelemetryPacket = bin.Parsed<typeof LevelTelemetryPacket>;
|
|
212
204
|
export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
|
|
@@ -537,17 +529,15 @@ export declare const spec: {
|
|
|
537
529
|
schema: import("typed-binary").ObjectSchema<{
|
|
538
530
|
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
539
531
|
faults: import("typed-binary").Uint16Schema;
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
532
|
+
height_m: import("typed-binary").Float32Schema;
|
|
533
|
+
main_count: import("typed-binary").ByteSchema;
|
|
534
|
+
gas_count: import("typed-binary").ByteSchema;
|
|
535
|
+
liquid_count: import("typed-binary").ByteSchema;
|
|
536
|
+
main_cpf: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
537
|
+
gas_cpf: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
538
|
+
liquid_cpf: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
547
539
|
}>;
|
|
548
|
-
enums: {
|
|
549
|
-
data: {};
|
|
550
|
-
};
|
|
540
|
+
enums: {};
|
|
551
541
|
};
|
|
552
542
|
ServoStatusPacket: {
|
|
553
543
|
port: number;
|
|
@@ -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-06 13:11:53. 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,17 +196,16 @@ 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
199
|
export const LevelTelemetryPacket = bin.object({
|
|
207
200
|
timestamp_ms: bin.u32, // unsigned int
|
|
208
201
|
faults: bin.u16, // unsigned short
|
|
209
|
-
|
|
202
|
+
height_m: bin.f32, // float
|
|
203
|
+
main_count: bin.u8, // unsigned char
|
|
204
|
+
gas_count: bin.u8, // unsigned char
|
|
205
|
+
liquid_count: bin.u8, // unsigned char
|
|
206
|
+
main_cpf: bin.arrayOf(bin.i16, 8), // short[8]
|
|
207
|
+
gas_cpf: bin.arrayOf(bin.i16, 8), // short[8]
|
|
208
|
+
liquid_cpf: bin.arrayOf(bin.i16, 8), // short[8]
|
|
210
209
|
});
|
|
211
210
|
export const actuators_servo_ServoStatus = bin.object({
|
|
212
211
|
commanded_angle_deg: bin.f32, // float
|
|
@@ -339,9 +338,7 @@ export const spec = {
|
|
|
339
338
|
port: 5010,
|
|
340
339
|
packed: null,
|
|
341
340
|
schema: LevelTelemetryPacket,
|
|
342
|
-
enums: {
|
|
343
|
-
data: {},
|
|
344
|
-
},
|
|
341
|
+
enums: {},
|
|
345
342
|
},
|
|
346
343
|
ServoStatusPacket: {
|
|
347
344
|
port: 5003,
|
|
@@ -248,51 +248,67 @@
|
|
|
248
248
|
"format_string": "<H"
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
|
-
"name": "
|
|
252
|
-
"kind": "
|
|
253
|
-
"type": "
|
|
254
|
-
"
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
251
|
+
"name": "height_m",
|
|
252
|
+
"kind": "primitive",
|
|
253
|
+
"type": "float",
|
|
254
|
+
"format_string": "<f"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "main_count",
|
|
258
|
+
"kind": "primitive",
|
|
259
|
+
"type": "unsigned char",
|
|
260
|
+
"format_string": "<B"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "gas_count",
|
|
264
|
+
"kind": "primitive",
|
|
265
|
+
"type": "unsigned char",
|
|
266
|
+
"format_string": "<B"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "liquid_count",
|
|
270
|
+
"kind": "primitive",
|
|
271
|
+
"type": "unsigned char",
|
|
272
|
+
"format_string": "<B"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "main_cpf",
|
|
276
|
+
"kind": "array",
|
|
277
|
+
"type": "short[8]",
|
|
278
|
+
"element": {
|
|
279
|
+
"kind": "primitive",
|
|
280
|
+
"type": "short",
|
|
281
|
+
"format_string": "<h"
|
|
282
|
+
},
|
|
283
|
+
"count": 8,
|
|
284
|
+
"format_string": "<hhhhhhhh"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "gas_cpf",
|
|
288
|
+
"kind": "array",
|
|
289
|
+
"type": "short[8]",
|
|
290
|
+
"element": {
|
|
291
|
+
"kind": "primitive",
|
|
292
|
+
"type": "short",
|
|
293
|
+
"format_string": "<h"
|
|
294
|
+
},
|
|
295
|
+
"count": 8,
|
|
296
|
+
"format_string": "<hhhhhhhh"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "liquid_cpf",
|
|
300
|
+
"kind": "array",
|
|
301
|
+
"type": "short[8]",
|
|
302
|
+
"element": {
|
|
303
|
+
"kind": "primitive",
|
|
304
|
+
"type": "short",
|
|
305
|
+
"format_string": "<h"
|
|
306
|
+
},
|
|
307
|
+
"count": 8,
|
|
308
|
+
"format_string": "<hhhhhhhh"
|
|
293
309
|
}
|
|
294
310
|
],
|
|
295
|
-
"format_string": "<
|
|
311
|
+
"format_string": "<IHfBBBhhhhhhhhhhhhhhhhhhhhhhhh"
|
|
296
312
|
},
|
|
297
313
|
"ServoStatusPacket": {
|
|
298
314
|
"port": 5003,
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import bin from 'typed-binary';
|
|
2
|
+
export declare const STATE_NAME: {
|
|
3
|
+
readonly NONE: 0;
|
|
4
|
+
readonly IDLE: 1;
|
|
5
|
+
readonly READY: 2;
|
|
6
|
+
readonly FILLING: 3;
|
|
7
|
+
readonly SEPARATION_FILLING: 4;
|
|
8
|
+
readonly FLOTATION_FILLING: 5;
|
|
9
|
+
readonly THRUSTING: 6;
|
|
10
|
+
readonly COASTING: 7;
|
|
11
|
+
readonly SEPARATION: 8;
|
|
12
|
+
readonly FLOTATION: 9;
|
|
13
|
+
readonly SHUTDOWN: 10;
|
|
14
|
+
readonly TEST_SEPARATION: 11;
|
|
15
|
+
readonly TEST_FLOTATION: 12;
|
|
16
|
+
};
|
|
17
|
+
export type STATE_NAME = (typeof STATE_NAME)[keyof typeof STATE_NAME];
|
|
2
18
|
export declare const Telemetry_ActuatorStatus: import("typed-binary").ObjectSchema<{
|
|
3
19
|
separation_filling_online: import("typed-binary").BoolSchema;
|
|
4
20
|
flotation_filling_online: import("typed-binary").BoolSchema;
|
|
@@ -49,6 +65,7 @@ export declare const Telemetry_SystemStatus: import("typed-binary").ObjectSchema
|
|
|
49
65
|
sensor_thread_online: import("typed-binary").BoolSchema;
|
|
50
66
|
fsm_thread_online: import("typed-binary").BoolSchema;
|
|
51
67
|
}>;
|
|
68
|
+
current_state: import("typed-binary").Uint32Schema;
|
|
52
69
|
}>;
|
|
53
70
|
export type Telemetry_SystemStatus = bin.Parsed<typeof Telemetry_SystemStatus>;
|
|
54
71
|
export declare const spec: {
|
|
@@ -78,11 +95,27 @@ export declare const spec: {
|
|
|
78
95
|
sensor_thread_online: import("typed-binary").BoolSchema;
|
|
79
96
|
fsm_thread_online: import("typed-binary").BoolSchema;
|
|
80
97
|
}>;
|
|
98
|
+
current_state: import("typed-binary").Uint32Schema;
|
|
81
99
|
}>;
|
|
82
100
|
enums: {
|
|
83
101
|
actuators: {};
|
|
84
102
|
sensors: {};
|
|
85
103
|
hardware: {};
|
|
104
|
+
current_state: {
|
|
105
|
+
readonly NONE: 0;
|
|
106
|
+
readonly IDLE: 1;
|
|
107
|
+
readonly READY: 2;
|
|
108
|
+
readonly FILLING: 3;
|
|
109
|
+
readonly SEPARATION_FILLING: 4;
|
|
110
|
+
readonly FLOTATION_FILLING: 5;
|
|
111
|
+
readonly THRUSTING: 6;
|
|
112
|
+
readonly COASTING: 7;
|
|
113
|
+
readonly SEPARATION: 8;
|
|
114
|
+
readonly FLOTATION: 9;
|
|
115
|
+
readonly SHUTDOWN: 10;
|
|
116
|
+
readonly TEST_SEPARATION: 11;
|
|
117
|
+
readonly TEST_FLOTATION: 12;
|
|
118
|
+
};
|
|
86
119
|
};
|
|
87
120
|
};
|
|
88
121
|
};
|
|
@@ -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-06 02:23:39. 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,21 @@ 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 STATE_NAME = {
|
|
64
|
+
NONE: 0,
|
|
65
|
+
IDLE: 1,
|
|
66
|
+
READY: 2,
|
|
67
|
+
FILLING: 3,
|
|
68
|
+
SEPARATION_FILLING: 4,
|
|
69
|
+
FLOTATION_FILLING: 5,
|
|
70
|
+
THRUSTING: 6,
|
|
71
|
+
COASTING: 7,
|
|
72
|
+
SEPARATION: 8,
|
|
73
|
+
FLOTATION: 9,
|
|
74
|
+
SHUTDOWN: 10,
|
|
75
|
+
TEST_SEPARATION: 11,
|
|
76
|
+
TEST_FLOTATION: 12,
|
|
77
|
+
};
|
|
63
78
|
export const Telemetry_ActuatorStatus = bin.object({
|
|
64
79
|
separation_filling_online: bin.bool, // bool
|
|
65
80
|
flotation_filling_online: bin.bool, // bool
|
|
@@ -87,6 +102,7 @@ export const Telemetry_SystemStatus = bin.object({
|
|
|
87
102
|
actuators: Telemetry_ActuatorStatus, // Telemetry::ActuatorStatus
|
|
88
103
|
sensors: Telemetry_SensorStatus, // Telemetry::SensorStatus
|
|
89
104
|
hardware: Telemetry_HardwareStatus, // Telemetry::HardwareStatus
|
|
105
|
+
current_state: bin.u32, // STATE_NAME
|
|
90
106
|
});
|
|
91
107
|
export const spec = {
|
|
92
108
|
Telemetry_SystemStatus: {
|
|
@@ -96,6 +112,7 @@ export const spec = {
|
|
|
96
112
|
actuators: {},
|
|
97
113
|
sensors: {},
|
|
98
114
|
hardware: {},
|
|
115
|
+
current_state: STATE_NAME,
|
|
99
116
|
},
|
|
100
117
|
},
|
|
101
118
|
};
|
|
@@ -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-06 14:54: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;
|
|
@@ -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-06 14:54:46. 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;
|
|
@@ -188,12 +188,12 @@ export const LoadCellPacket = bin.object({
|
|
|
188
188
|
});
|
|
189
189
|
export const spec = {
|
|
190
190
|
HeartBeatTelemetry: {
|
|
191
|
-
port:
|
|
191
|
+
port: 57045,
|
|
192
192
|
schema: HeartBeatTelemetry,
|
|
193
193
|
enums: {},
|
|
194
194
|
},
|
|
195
195
|
FsmStatusPacket: {
|
|
196
|
-
port:
|
|
196
|
+
port: 5041,
|
|
197
197
|
schema: FsmStatusPacket,
|
|
198
198
|
enums: {
|
|
199
199
|
status: {
|
|
@@ -205,7 +205,7 @@ export const spec = {
|
|
|
205
205
|
},
|
|
206
206
|
},
|
|
207
207
|
PressureSensorPacket: {
|
|
208
|
-
port:
|
|
208
|
+
port: 5042,
|
|
209
209
|
fragment: "sensor_id",
|
|
210
210
|
packed: null,
|
|
211
211
|
schema: PressureSensorPacket,
|
|
@@ -215,7 +215,7 @@ export const spec = {
|
|
|
215
215
|
},
|
|
216
216
|
},
|
|
217
217
|
ServoStatusPacket: {
|
|
218
|
-
port:
|
|
218
|
+
port: 5043,
|
|
219
219
|
fragment: "servo_id",
|
|
220
220
|
schema: ServoStatusPacket,
|
|
221
221
|
enums: {
|
|
@@ -226,7 +226,7 @@ export const spec = {
|
|
|
226
226
|
},
|
|
227
227
|
},
|
|
228
228
|
SolenoidStatusPacket: {
|
|
229
|
-
port:
|
|
229
|
+
port: 5044,
|
|
230
230
|
fragment: "solenoid_id",
|
|
231
231
|
schema: SolenoidStatusPacket,
|
|
232
232
|
enums: {
|
|
@@ -238,7 +238,7 @@ export const spec = {
|
|
|
238
238
|
},
|
|
239
239
|
},
|
|
240
240
|
LoadCellPacket: {
|
|
241
|
-
port:
|
|
241
|
+
port: 5047,
|
|
242
242
|
fragment: "loadcell_id",
|
|
243
243
|
schema: LoadCellPacket,
|
|
244
244
|
enums: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": 1,
|
|
3
3
|
"structs": {
|
|
4
4
|
"HeartBeatTelemetry": {
|
|
5
|
-
"port":
|
|
5
|
+
"port": 57045,
|
|
6
6
|
"kind": "struct",
|
|
7
7
|
"type": "HeartBeatTelemetry",
|
|
8
8
|
"fields": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"format_string": "<ccccccccccccccccB"
|
|
29
29
|
},
|
|
30
30
|
"FsmStatusPacket": {
|
|
31
|
-
"port":
|
|
31
|
+
"port": 5041,
|
|
32
32
|
"kind": "struct",
|
|
33
33
|
"type": "FsmStatusPacket",
|
|
34
34
|
"fields": [
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"format_string": "<QQBBBBI"
|
|
87
87
|
},
|
|
88
88
|
"PressureSensorPacket": {
|
|
89
|
-
"port":
|
|
89
|
+
"port": 5042,
|
|
90
90
|
"fragment": "sensor_id",
|
|
91
91
|
"packed": null,
|
|
92
92
|
"kind": "struct",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"format_string": "<BQIBBhhhhhhhhhhhhhhhhhhhh"
|
|
148
148
|
},
|
|
149
149
|
"ServoStatusPacket": {
|
|
150
|
-
"port":
|
|
150
|
+
"port": 5043,
|
|
151
151
|
"fragment": "servo_id",
|
|
152
152
|
"kind": "struct",
|
|
153
153
|
"type": "ServoStatusPacket",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"format_string": "<BIffffB"
|
|
207
207
|
},
|
|
208
208
|
"SolenoidStatusPacket": {
|
|
209
|
-
"port":
|
|
209
|
+
"port": 5044,
|
|
210
210
|
"fragment": "solenoid_id",
|
|
211
211
|
"kind": "struct",
|
|
212
212
|
"type": "SolenoidStatusPacket",
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
"format_string": "<BIBBf"
|
|
254
254
|
},
|
|
255
255
|
"LoadCellPacket": {
|
|
256
|
-
"port":
|
|
256
|
+
"port": 5047,
|
|
257
257
|
"fragment": "loadcell_id",
|
|
258
258
|
"kind": "struct",
|
|
259
259
|
"type": "LoadCellPacket",
|