fossekall-interface 0.1.133 → 0.1.136
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 +28 -0
- package/dist/generated/ecu/telemetry.js +18 -1
- package/dist/generated/ecu/telemetry.json +81 -0
- 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 +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 18:36: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;
|
|
@@ -189,6 +189,18 @@ 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 LevelTelemetryPacket: import("typed-binary").ObjectSchema<{
|
|
193
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
194
|
+
faults: import("typed-binary").Uint16Schema;
|
|
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>;
|
|
202
|
+
}>;
|
|
203
|
+
export type LevelTelemetryPacket = bin.Parsed<typeof LevelTelemetryPacket>;
|
|
192
204
|
export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
|
|
193
205
|
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
194
206
|
target_angle_deg: import("typed-binary").Float32Schema;
|
|
@@ -511,6 +523,22 @@ export declare const spec: {
|
|
|
511
523
|
data: {};
|
|
512
524
|
};
|
|
513
525
|
};
|
|
526
|
+
LevelTelemetryPacket: {
|
|
527
|
+
port: number;
|
|
528
|
+
packed: null;
|
|
529
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
530
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
531
|
+
faults: import("typed-binary").Uint16Schema;
|
|
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>;
|
|
539
|
+
}>;
|
|
540
|
+
enums: {};
|
|
541
|
+
};
|
|
514
542
|
ServoStatusPacket: {
|
|
515
543
|
port: number;
|
|
516
544
|
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 18:36:51. 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,17 @@ 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 LevelTelemetryPacket = bin.object({
|
|
200
|
+
timestamp_ms: bin.u32, // unsigned int
|
|
201
|
+
faults: bin.u16, // unsigned short
|
|
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]
|
|
209
|
+
});
|
|
199
210
|
export const actuators_servo_ServoStatus = bin.object({
|
|
200
211
|
commanded_angle_deg: bin.f32, // float
|
|
201
212
|
target_angle_deg: bin.f32, // float
|
|
@@ -323,6 +334,12 @@ export const spec = {
|
|
|
323
334
|
data: {},
|
|
324
335
|
},
|
|
325
336
|
},
|
|
337
|
+
LevelTelemetryPacket: {
|
|
338
|
+
port: 5010,
|
|
339
|
+
packed: null,
|
|
340
|
+
schema: LevelTelemetryPacket,
|
|
341
|
+
enums: {},
|
|
342
|
+
},
|
|
326
343
|
ServoStatusPacket: {
|
|
327
344
|
port: 5003,
|
|
328
345
|
fragment: "servo_id",
|
|
@@ -229,6 +229,87 @@
|
|
|
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": "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"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"format_string": "<IHfBBBhhhhhhhhhhhhhhhhhhhhhhhh"
|
|
312
|
+
},
|
|
232
313
|
"ServoStatusPacket": {
|
|
233
314
|
"port": 5003,
|
|
234
315
|
"fragment": "servo_id",
|
|
@@ -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-
|
|
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;
|