fossekall-interface 0.1.74 → 0.1.76
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-06
|
|
2
|
+
// This file was generated by FRICC on 2026-04-06 18:09:45. 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;
|
|
@@ -118,6 +118,15 @@ export declare const node_regulator_Id: {
|
|
|
118
118
|
readonly Count: 1;
|
|
119
119
|
};
|
|
120
120
|
export type node_regulator_Id = (typeof node_regulator_Id)[keyof typeof node_regulator_Id];
|
|
121
|
+
export declare const proto_can_thermocouple_Id: {
|
|
122
|
+
readonly OxTankBottom: 0;
|
|
123
|
+
readonly OxTankTop: 1;
|
|
124
|
+
readonly FuelTank: 2;
|
|
125
|
+
readonly OxInjector: 3;
|
|
126
|
+
readonly FuelInjector: 4;
|
|
127
|
+
readonly Count: 5;
|
|
128
|
+
};
|
|
129
|
+
export type proto_can_thermocouple_Id = (typeof proto_can_thermocouple_Id)[keyof typeof proto_can_thermocouple_Id];
|
|
121
130
|
export declare const node_load_cell_Id: {
|
|
122
131
|
readonly LoadCell1: 0;
|
|
123
132
|
readonly LoadCell2: 1;
|
|
@@ -287,27 +296,20 @@ export declare const RegulatorStatusPacket: import("typed-binary").ObjectSchema<
|
|
|
287
296
|
}>;
|
|
288
297
|
export type RegulatorStatusPacket = bin.Parsed<typeof RegulatorStatusPacket>;
|
|
289
298
|
export declare const proto_can_thermocouple_ThermocoupleSample: import("typed-binary").ObjectSchema<{
|
|
299
|
+
id: import("typed-binary").ByteSchema;
|
|
290
300
|
timestamp_us: UInt64Schema;
|
|
291
301
|
interval_us: import("typed-binary").Float32Schema;
|
|
292
302
|
temperature_c: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
293
303
|
}>;
|
|
294
304
|
export type proto_can_thermocouple_ThermocoupleSample = bin.Parsed<typeof proto_can_thermocouple_ThermocoupleSample>;
|
|
295
|
-
export declare const
|
|
296
|
-
|
|
305
|
+
export declare const ThermocouplePacket: import("typed-binary").ObjectSchema<{
|
|
306
|
+
thermocouple_id: import("typed-binary").ByteSchema;
|
|
307
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
308
|
+
data: import("typed-binary").ObjectSchema<{
|
|
309
|
+
id: import("typed-binary").ByteSchema;
|
|
297
310
|
timestamp_us: UInt64Schema;
|
|
298
311
|
interval_us: import("typed-binary").Float32Schema;
|
|
299
312
|
temperature_c: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
300
|
-
}>>;
|
|
301
|
-
}>;
|
|
302
|
-
export type proto_can_thermocouple_ThermocoupleSamples = bin.Parsed<typeof proto_can_thermocouple_ThermocoupleSamples>;
|
|
303
|
-
export declare const ThermocouplePacket: import("typed-binary").ObjectSchema<{
|
|
304
|
-
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
305
|
-
samples: import("typed-binary").ObjectSchema<{
|
|
306
|
-
port: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
|
|
307
|
-
timestamp_us: UInt64Schema;
|
|
308
|
-
interval_us: import("typed-binary").Float32Schema;
|
|
309
|
-
temperature_c: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
310
|
-
}>>;
|
|
311
313
|
}>;
|
|
312
314
|
}>;
|
|
313
315
|
export type ThermocouplePacket = bin.Parsed<typeof ThermocouplePacket>;
|
|
@@ -597,18 +599,36 @@ export declare const spec: {
|
|
|
597
599
|
};
|
|
598
600
|
ThermocouplePacket: {
|
|
599
601
|
port: number;
|
|
602
|
+
fragment: string;
|
|
600
603
|
schema: import("typed-binary").ObjectSchema<{
|
|
604
|
+
thermocouple_id: import("typed-binary").ByteSchema;
|
|
601
605
|
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}>>;
|
|
606
|
+
data: import("typed-binary").ObjectSchema<{
|
|
607
|
+
id: import("typed-binary").ByteSchema;
|
|
608
|
+
timestamp_us: UInt64Schema;
|
|
609
|
+
interval_us: import("typed-binary").Float32Schema;
|
|
610
|
+
temperature_c: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
608
611
|
}>;
|
|
609
612
|
}>;
|
|
610
613
|
enums: {
|
|
611
|
-
|
|
614
|
+
thermocouple_id: {
|
|
615
|
+
readonly OxTankBottom: 0;
|
|
616
|
+
readonly OxTankTop: 1;
|
|
617
|
+
readonly FuelTank: 2;
|
|
618
|
+
readonly OxInjector: 3;
|
|
619
|
+
readonly FuelInjector: 4;
|
|
620
|
+
readonly Count: 5;
|
|
621
|
+
};
|
|
622
|
+
data: {
|
|
623
|
+
id: {
|
|
624
|
+
readonly OxTankBottom: 0;
|
|
625
|
+
readonly OxTankTop: 1;
|
|
626
|
+
readonly FuelTank: 2;
|
|
627
|
+
readonly OxInjector: 3;
|
|
628
|
+
readonly FuelInjector: 4;
|
|
629
|
+
readonly Count: 5;
|
|
630
|
+
};
|
|
631
|
+
};
|
|
612
632
|
};
|
|
613
633
|
};
|
|
614
634
|
LoadCellPacket: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-04-06
|
|
2
|
+
// This file was generated by FRICC on 2026-04-06 18:09: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;
|
|
@@ -155,6 +155,14 @@ export const node_regulator_Id = {
|
|
|
155
155
|
OxBoiloff: 0,
|
|
156
156
|
Count: 1,
|
|
157
157
|
};
|
|
158
|
+
export const proto_can_thermocouple_Id = {
|
|
159
|
+
OxTankBottom: 0,
|
|
160
|
+
OxTankTop: 1,
|
|
161
|
+
FuelTank: 2,
|
|
162
|
+
OxInjector: 3,
|
|
163
|
+
FuelInjector: 4,
|
|
164
|
+
Count: 5,
|
|
165
|
+
};
|
|
158
166
|
export const node_load_cell_Id = {
|
|
159
167
|
LoadCell1: 0,
|
|
160
168
|
LoadCell2: 1,
|
|
@@ -255,16 +263,15 @@ export const RegulatorStatusPacket = bin.object({
|
|
|
255
263
|
status: regulators_RegulatorStatus, // regulators::RegulatorStatus
|
|
256
264
|
});
|
|
257
265
|
export const proto_can_thermocouple_ThermocoupleSample = bin.object({
|
|
266
|
+
id: bin.u8, // proto::can::thermocouple::Id
|
|
258
267
|
timestamp_us: u64, // unsigned long long
|
|
259
268
|
interval_us: bin.f32, // float
|
|
260
269
|
temperature_c: bin.arrayOf(bin.f32, 8), // float[8]
|
|
261
270
|
});
|
|
262
|
-
export const proto_can_thermocouple_ThermocoupleSamples = bin.object({
|
|
263
|
-
port: bin.arrayOf(proto_can_thermocouple_ThermocoupleSample, 4), // proto::can::thermocouple::ThermocoupleSample[4]
|
|
264
|
-
});
|
|
265
271
|
export const ThermocouplePacket = bin.object({
|
|
272
|
+
thermocouple_id: bin.u8, // proto::can::thermocouple::Id
|
|
266
273
|
timestamp_ms: bin.u32, // unsigned int
|
|
267
|
-
|
|
274
|
+
data: proto_can_thermocouple_ThermocoupleSample, // proto::can::thermocouple::ThermocoupleSample
|
|
268
275
|
});
|
|
269
276
|
export const sensors_loadcell_LoadCellBatch = bin.object({
|
|
270
277
|
t0_ms: bin.u32, // unsigned int
|
|
@@ -350,9 +357,13 @@ export const spec = {
|
|
|
350
357
|
},
|
|
351
358
|
ThermocouplePacket: {
|
|
352
359
|
port: 5006,
|
|
360
|
+
fragment: 'thermocouple_id',
|
|
353
361
|
schema: ThermocouplePacket,
|
|
354
362
|
enums: {
|
|
355
|
-
|
|
363
|
+
thermocouple_id: proto_can_thermocouple_Id,
|
|
364
|
+
data: {
|
|
365
|
+
id: proto_can_thermocouple_Id,
|
|
366
|
+
},
|
|
356
367
|
},
|
|
357
368
|
},
|
|
358
369
|
LoadCellPacket: {
|
|
@@ -490,9 +490,16 @@
|
|
|
490
490
|
},
|
|
491
491
|
"ThermocouplePacket": {
|
|
492
492
|
"port": 5006,
|
|
493
|
+
"fragment": "thermocouple_id",
|
|
493
494
|
"kind": "struct",
|
|
494
495
|
"type": "ThermocouplePacket",
|
|
495
496
|
"fields": [
|
|
497
|
+
{
|
|
498
|
+
"name": "thermocouple_id",
|
|
499
|
+
"kind": "enum",
|
|
500
|
+
"type": "proto::can::thermocouple::Id",
|
|
501
|
+
"format_string": "<B"
|
|
502
|
+
},
|
|
496
503
|
{
|
|
497
504
|
"name": "timestamp_ms",
|
|
498
505
|
"kind": "primitive",
|
|
@@ -500,53 +507,45 @@
|
|
|
500
507
|
"format_string": "<I"
|
|
501
508
|
},
|
|
502
509
|
{
|
|
503
|
-
"name": "
|
|
510
|
+
"name": "data",
|
|
504
511
|
"kind": "struct",
|
|
505
|
-
"type": "proto::can::thermocouple::
|
|
512
|
+
"type": "proto::can::thermocouple::ThermocoupleSample",
|
|
506
513
|
"fields": [
|
|
507
514
|
{
|
|
508
|
-
"name": "
|
|
515
|
+
"name": "id",
|
|
516
|
+
"kind": "enum",
|
|
517
|
+
"type": "proto::can::thermocouple::Id",
|
|
518
|
+
"format_string": "<B"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "timestamp_us",
|
|
522
|
+
"kind": "primitive",
|
|
523
|
+
"type": "unsigned long long",
|
|
524
|
+
"format_string": "<Q"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "interval_us",
|
|
528
|
+
"kind": "primitive",
|
|
529
|
+
"type": "float",
|
|
530
|
+
"format_string": "<f"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"name": "temperature_c",
|
|
509
534
|
"kind": "array",
|
|
510
|
-
"type": "
|
|
535
|
+
"type": "float[8]",
|
|
511
536
|
"element": {
|
|
512
|
-
"kind": "
|
|
513
|
-
"type": "
|
|
514
|
-
"
|
|
515
|
-
{
|
|
516
|
-
"name": "timestamp_us",
|
|
517
|
-
"kind": "primitive",
|
|
518
|
-
"type": "unsigned long long",
|
|
519
|
-
"format_string": "<Q"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"name": "interval_us",
|
|
523
|
-
"kind": "primitive",
|
|
524
|
-
"type": "float",
|
|
525
|
-
"format_string": "<f"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
"name": "temperature_c",
|
|
529
|
-
"kind": "array",
|
|
530
|
-
"type": "float[8]",
|
|
531
|
-
"element": {
|
|
532
|
-
"kind": "primitive",
|
|
533
|
-
"type": "float",
|
|
534
|
-
"format_string": "<f"
|
|
535
|
-
},
|
|
536
|
-
"count": 8,
|
|
537
|
-
"format_string": "<ffffffff"
|
|
538
|
-
}
|
|
539
|
-
],
|
|
540
|
-
"format_string": "<Qfffffffff"
|
|
537
|
+
"kind": "primitive",
|
|
538
|
+
"type": "float",
|
|
539
|
+
"format_string": "<f"
|
|
541
540
|
},
|
|
542
|
-
"count":
|
|
543
|
-
"format_string": "<
|
|
541
|
+
"count": 8,
|
|
542
|
+
"format_string": "<ffffffff"
|
|
544
543
|
}
|
|
545
544
|
],
|
|
546
|
-
"format_string": "<
|
|
545
|
+
"format_string": "<BQfffffffff"
|
|
547
546
|
}
|
|
548
547
|
],
|
|
549
|
-
"format_string": "<
|
|
548
|
+
"format_string": "<BIBQfffffffff"
|
|
550
549
|
},
|
|
551
550
|
"LoadCellPacket": {
|
|
552
551
|
"port": 5007,
|
|
@@ -710,6 +709,14 @@
|
|
|
710
709
|
"OxBoiloff": 0,
|
|
711
710
|
"Count": 1
|
|
712
711
|
},
|
|
712
|
+
"proto::can::thermocouple::Id": {
|
|
713
|
+
"OxTankBottom": 0,
|
|
714
|
+
"OxTankTop": 1,
|
|
715
|
+
"FuelTank": 2,
|
|
716
|
+
"OxInjector": 3,
|
|
717
|
+
"FuelInjector": 4,
|
|
718
|
+
"Count": 5
|
|
719
|
+
},
|
|
713
720
|
"node::load_cell::Id": {
|
|
714
721
|
"LoadCell1": 0,
|
|
715
722
|
"LoadCell2": 1,
|