fossekall-interface 0.1.139 → 0.1.141
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 +176 -8
- package/dist/generated/ecu/telemetry.js +67 -6
- package/dist/generated/ecu/telemetry.json +254 -4
- package/dist/generated/fc/commands.d.ts +1 -34
- package/dist/generated/fc/commands.js +3 -23
- package/dist/generated/fc/telemetry.js +1 -1
- package/dist/generated/fs/commands.js +1 -1
- package/dist/generated/fs/telemetry.d.ts +2 -0
- package/dist/generated/fs/telemetry.js +2 -1
- package/dist/generated/fs/telemetry.json +2 -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-09 22:23:27. 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;
|
|
@@ -64,13 +64,13 @@ export declare const sensors_pressure_Id: {
|
|
|
64
64
|
readonly Count: 7;
|
|
65
65
|
};
|
|
66
66
|
export type sensors_pressure_Id = (typeof sensors_pressure_Id)[keyof typeof sensors_pressure_Id];
|
|
67
|
-
export declare const
|
|
67
|
+
export declare const sensors_capacitance_Id: {
|
|
68
68
|
readonly Main: 0;
|
|
69
69
|
readonly LiquidRef: 1;
|
|
70
70
|
readonly GasRef: 2;
|
|
71
71
|
readonly Count: 3;
|
|
72
72
|
};
|
|
73
|
-
export type
|
|
73
|
+
export type sensors_capacitance_Id = (typeof sensors_capacitance_Id)[keyof typeof sensors_capacitance_Id];
|
|
74
74
|
export declare const actuators_servo_Id: {
|
|
75
75
|
readonly MainFuel: 0;
|
|
76
76
|
readonly MainOx: 1;
|
|
@@ -117,13 +117,22 @@ export declare const proto_can_thermocouple_Id: {
|
|
|
117
117
|
readonly OxTankTop: 1;
|
|
118
118
|
readonly FuelTank: 2;
|
|
119
119
|
readonly OxInjector: 3;
|
|
120
|
-
readonly Chamber1: 4;
|
|
121
120
|
readonly FuelInjector: 5;
|
|
122
|
-
readonly Chamber2: 6;
|
|
123
121
|
readonly ExtraNodeOne: 7;
|
|
124
122
|
readonly Count: 8;
|
|
125
123
|
};
|
|
126
124
|
export type proto_can_thermocouple_Id = (typeof proto_can_thermocouple_Id)[keyof typeof proto_can_thermocouple_Id];
|
|
125
|
+
export declare const sensors_bms_ChargingStatus: {
|
|
126
|
+
readonly NotCharging: 0;
|
|
127
|
+
readonly TrickleCharge: 1;
|
|
128
|
+
readonly PreCharge: 2;
|
|
129
|
+
readonly FastCharge: 3;
|
|
130
|
+
readonly TaperCharge: 4;
|
|
131
|
+
readonly Reserved: 5;
|
|
132
|
+
readonly TopOffTimerCharge: 6;
|
|
133
|
+
readonly ChargeTermination: 7;
|
|
134
|
+
};
|
|
135
|
+
export type sensors_bms_ChargingStatus = (typeof sensors_bms_ChargingStatus)[keyof typeof sensors_bms_ChargingStatus];
|
|
127
136
|
export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
|
|
128
137
|
message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
129
138
|
status_flags: import("typed-binary").ByteSchema;
|
|
@@ -430,6 +439,102 @@ export declare const BatteryMonitorTelemetryPacket: import("typed-binary").Objec
|
|
|
430
439
|
voltages: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
431
440
|
}>;
|
|
432
441
|
export type BatteryMonitorTelemetryPacket = bin.Parsed<typeof BatteryMonitorTelemetryPacket>;
|
|
442
|
+
export declare const sensors_bms_RailMeasurement: import("typed-binary").ObjectSchema<{
|
|
443
|
+
current: import("typed-binary").Float32Schema;
|
|
444
|
+
volts: import("typed-binary").Float32Schema;
|
|
445
|
+
shunt_voltage: import("typed-binary").Float32Schema;
|
|
446
|
+
power: import("typed-binary").Float32Schema;
|
|
447
|
+
}>;
|
|
448
|
+
export type sensors_bms_RailMeasurement = bin.Parsed<typeof sensors_bms_RailMeasurement>;
|
|
449
|
+
export declare const sensors_bms_RailData: import("typed-binary").ObjectSchema<{
|
|
450
|
+
vbat: import("typed-binary").ObjectSchema<{
|
|
451
|
+
current: import("typed-binary").Float32Schema;
|
|
452
|
+
volts: import("typed-binary").Float32Schema;
|
|
453
|
+
shunt_voltage: import("typed-binary").Float32Schema;
|
|
454
|
+
power: import("typed-binary").Float32Schema;
|
|
455
|
+
}>;
|
|
456
|
+
v_12: import("typed-binary").ObjectSchema<{
|
|
457
|
+
current: import("typed-binary").Float32Schema;
|
|
458
|
+
volts: import("typed-binary").Float32Schema;
|
|
459
|
+
shunt_voltage: import("typed-binary").Float32Schema;
|
|
460
|
+
power: import("typed-binary").Float32Schema;
|
|
461
|
+
}>;
|
|
462
|
+
v_24: import("typed-binary").ObjectSchema<{
|
|
463
|
+
current: import("typed-binary").Float32Schema;
|
|
464
|
+
volts: import("typed-binary").Float32Schema;
|
|
465
|
+
shunt_voltage: import("typed-binary").Float32Schema;
|
|
466
|
+
power: import("typed-binary").Float32Schema;
|
|
467
|
+
}>;
|
|
468
|
+
}>;
|
|
469
|
+
export type sensors_bms_RailData = bin.Parsed<typeof sensors_bms_RailData>;
|
|
470
|
+
export declare const sensors_bms_BatteryPackData: import("typed-binary").ObjectSchema<{
|
|
471
|
+
cell: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
472
|
+
voltage: import("typed-binary").Float32Schema;
|
|
473
|
+
current: import("typed-binary").Float32Schema;
|
|
474
|
+
die_temperature: import("typed-binary").Float32Schema;
|
|
475
|
+
balancing_mask: import("typed-binary").ByteSchema;
|
|
476
|
+
alert: import("typed-binary").BoolSchema;
|
|
477
|
+
comms_ok: import("typed-binary").BoolSchema;
|
|
478
|
+
}>;
|
|
479
|
+
export type sensors_bms_BatteryPackData = bin.Parsed<typeof sensors_bms_BatteryPackData>;
|
|
480
|
+
export declare const sensors_bms_ChargerData: import("typed-binary").ObjectSchema<{
|
|
481
|
+
vac: Float64Schema;
|
|
482
|
+
vbat: Float64Schema;
|
|
483
|
+
vsys: Float64Schema;
|
|
484
|
+
iac: Float64Schema;
|
|
485
|
+
ibat: Float64Schema;
|
|
486
|
+
temperature: Float64Schema;
|
|
487
|
+
charging: import("typed-binary").BoolSchema;
|
|
488
|
+
power_good: import("typed-binary").BoolSchema;
|
|
489
|
+
faults: import("typed-binary").ByteSchema;
|
|
490
|
+
state: import("typed-binary").Uint32Schema;
|
|
491
|
+
}>;
|
|
492
|
+
export type sensors_bms_ChargerData = bin.Parsed<typeof sensors_bms_ChargerData>;
|
|
493
|
+
export declare const BmsTelemetryPacket: import("typed-binary").ObjectSchema<{
|
|
494
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
495
|
+
rail: import("typed-binary").ObjectSchema<{
|
|
496
|
+
vbat: import("typed-binary").ObjectSchema<{
|
|
497
|
+
current: import("typed-binary").Float32Schema;
|
|
498
|
+
volts: import("typed-binary").Float32Schema;
|
|
499
|
+
shunt_voltage: import("typed-binary").Float32Schema;
|
|
500
|
+
power: import("typed-binary").Float32Schema;
|
|
501
|
+
}>;
|
|
502
|
+
v_12: import("typed-binary").ObjectSchema<{
|
|
503
|
+
current: import("typed-binary").Float32Schema;
|
|
504
|
+
volts: import("typed-binary").Float32Schema;
|
|
505
|
+
shunt_voltage: import("typed-binary").Float32Schema;
|
|
506
|
+
power: import("typed-binary").Float32Schema;
|
|
507
|
+
}>;
|
|
508
|
+
v_24: import("typed-binary").ObjectSchema<{
|
|
509
|
+
current: import("typed-binary").Float32Schema;
|
|
510
|
+
volts: import("typed-binary").Float32Schema;
|
|
511
|
+
shunt_voltage: import("typed-binary").Float32Schema;
|
|
512
|
+
power: import("typed-binary").Float32Schema;
|
|
513
|
+
}>;
|
|
514
|
+
}>;
|
|
515
|
+
battery_pack: import("typed-binary").ObjectSchema<{
|
|
516
|
+
cell: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
517
|
+
voltage: import("typed-binary").Float32Schema;
|
|
518
|
+
current: import("typed-binary").Float32Schema;
|
|
519
|
+
die_temperature: import("typed-binary").Float32Schema;
|
|
520
|
+
balancing_mask: import("typed-binary").ByteSchema;
|
|
521
|
+
alert: import("typed-binary").BoolSchema;
|
|
522
|
+
comms_ok: import("typed-binary").BoolSchema;
|
|
523
|
+
}>;
|
|
524
|
+
charger: import("typed-binary").ObjectSchema<{
|
|
525
|
+
vac: Float64Schema;
|
|
526
|
+
vbat: Float64Schema;
|
|
527
|
+
vsys: Float64Schema;
|
|
528
|
+
iac: Float64Schema;
|
|
529
|
+
ibat: Float64Schema;
|
|
530
|
+
temperature: Float64Schema;
|
|
531
|
+
charging: import("typed-binary").BoolSchema;
|
|
532
|
+
power_good: import("typed-binary").BoolSchema;
|
|
533
|
+
faults: import("typed-binary").ByteSchema;
|
|
534
|
+
state: import("typed-binary").Uint32Schema;
|
|
535
|
+
}>;
|
|
536
|
+
}>;
|
|
537
|
+
export type BmsTelemetryPacket = bin.Parsed<typeof BmsTelemetryPacket>;
|
|
433
538
|
export declare const spec: {
|
|
434
539
|
HeartBeatTelemetry: {
|
|
435
540
|
port: number;
|
|
@@ -737,9 +842,7 @@ export declare const spec: {
|
|
|
737
842
|
readonly OxTankTop: 1;
|
|
738
843
|
readonly FuelTank: 2;
|
|
739
844
|
readonly OxInjector: 3;
|
|
740
|
-
readonly Chamber1: 4;
|
|
741
845
|
readonly FuelInjector: 5;
|
|
742
|
-
readonly Chamber2: 6;
|
|
743
846
|
readonly ExtraNodeOne: 7;
|
|
744
847
|
readonly Count: 8;
|
|
745
848
|
};
|
|
@@ -749,9 +852,7 @@ export declare const spec: {
|
|
|
749
852
|
readonly OxTankTop: 1;
|
|
750
853
|
readonly FuelTank: 2;
|
|
751
854
|
readonly OxInjector: 3;
|
|
752
|
-
readonly Chamber1: 4;
|
|
753
855
|
readonly FuelInjector: 5;
|
|
754
|
-
readonly Chamber2: 6;
|
|
755
856
|
readonly ExtraNodeOne: 7;
|
|
756
857
|
readonly Count: 8;
|
|
757
858
|
};
|
|
@@ -818,6 +919,73 @@ export declare const spec: {
|
|
|
818
919
|
}>;
|
|
819
920
|
enums: {};
|
|
820
921
|
};
|
|
922
|
+
BmsTelemetryPacket: {
|
|
923
|
+
port: number;
|
|
924
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
925
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
926
|
+
rail: import("typed-binary").ObjectSchema<{
|
|
927
|
+
vbat: import("typed-binary").ObjectSchema<{
|
|
928
|
+
current: import("typed-binary").Float32Schema;
|
|
929
|
+
volts: import("typed-binary").Float32Schema;
|
|
930
|
+
shunt_voltage: import("typed-binary").Float32Schema;
|
|
931
|
+
power: import("typed-binary").Float32Schema;
|
|
932
|
+
}>;
|
|
933
|
+
v_12: import("typed-binary").ObjectSchema<{
|
|
934
|
+
current: import("typed-binary").Float32Schema;
|
|
935
|
+
volts: import("typed-binary").Float32Schema;
|
|
936
|
+
shunt_voltage: import("typed-binary").Float32Schema;
|
|
937
|
+
power: import("typed-binary").Float32Schema;
|
|
938
|
+
}>;
|
|
939
|
+
v_24: import("typed-binary").ObjectSchema<{
|
|
940
|
+
current: import("typed-binary").Float32Schema;
|
|
941
|
+
volts: import("typed-binary").Float32Schema;
|
|
942
|
+
shunt_voltage: import("typed-binary").Float32Schema;
|
|
943
|
+
power: import("typed-binary").Float32Schema;
|
|
944
|
+
}>;
|
|
945
|
+
}>;
|
|
946
|
+
battery_pack: import("typed-binary").ObjectSchema<{
|
|
947
|
+
cell: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
948
|
+
voltage: import("typed-binary").Float32Schema;
|
|
949
|
+
current: import("typed-binary").Float32Schema;
|
|
950
|
+
die_temperature: import("typed-binary").Float32Schema;
|
|
951
|
+
balancing_mask: import("typed-binary").ByteSchema;
|
|
952
|
+
alert: import("typed-binary").BoolSchema;
|
|
953
|
+
comms_ok: import("typed-binary").BoolSchema;
|
|
954
|
+
}>;
|
|
955
|
+
charger: import("typed-binary").ObjectSchema<{
|
|
956
|
+
vac: Float64Schema;
|
|
957
|
+
vbat: Float64Schema;
|
|
958
|
+
vsys: Float64Schema;
|
|
959
|
+
iac: Float64Schema;
|
|
960
|
+
ibat: Float64Schema;
|
|
961
|
+
temperature: Float64Schema;
|
|
962
|
+
charging: import("typed-binary").BoolSchema;
|
|
963
|
+
power_good: import("typed-binary").BoolSchema;
|
|
964
|
+
faults: import("typed-binary").ByteSchema;
|
|
965
|
+
state: import("typed-binary").Uint32Schema;
|
|
966
|
+
}>;
|
|
967
|
+
}>;
|
|
968
|
+
enums: {
|
|
969
|
+
rail: {
|
|
970
|
+
vbat: {};
|
|
971
|
+
v_12: {};
|
|
972
|
+
v_24: {};
|
|
973
|
+
};
|
|
974
|
+
battery_pack: {};
|
|
975
|
+
charger: {
|
|
976
|
+
state: {
|
|
977
|
+
readonly NotCharging: 0;
|
|
978
|
+
readonly TrickleCharge: 1;
|
|
979
|
+
readonly PreCharge: 2;
|
|
980
|
+
readonly FastCharge: 3;
|
|
981
|
+
readonly TaperCharge: 4;
|
|
982
|
+
readonly Reserved: 5;
|
|
983
|
+
readonly TopOffTimerCharge: 6;
|
|
984
|
+
readonly ChargeTermination: 7;
|
|
985
|
+
};
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
};
|
|
821
989
|
};
|
|
822
990
|
export default spec;
|
|
823
991
|
export type Spec = typeof spec;
|
|
@@ -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-09 22:23:30. 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;
|
|
@@ -108,7 +108,7 @@ export const sensors_pressure_Id = {
|
|
|
108
108
|
Chamber: 6,
|
|
109
109
|
Count: 7,
|
|
110
110
|
};
|
|
111
|
-
export const
|
|
111
|
+
export const sensors_capacitance_Id = {
|
|
112
112
|
Main: 0,
|
|
113
113
|
LiquidRef: 1,
|
|
114
114
|
GasRef: 2,
|
|
@@ -154,12 +154,20 @@ export const proto_can_thermocouple_Id = {
|
|
|
154
154
|
OxTankTop: 1,
|
|
155
155
|
FuelTank: 2,
|
|
156
156
|
OxInjector: 3,
|
|
157
|
-
Chamber1: 4,
|
|
158
157
|
FuelInjector: 5,
|
|
159
|
-
Chamber2: 6,
|
|
160
158
|
ExtraNodeOne: 7,
|
|
161
159
|
Count: 8,
|
|
162
160
|
};
|
|
161
|
+
export const sensors_bms_ChargingStatus = {
|
|
162
|
+
NotCharging: 0,
|
|
163
|
+
TrickleCharge: 1,
|
|
164
|
+
PreCharge: 2,
|
|
165
|
+
FastCharge: 3,
|
|
166
|
+
TaperCharge: 4,
|
|
167
|
+
Reserved: 5,
|
|
168
|
+
TopOffTimerCharge: 6,
|
|
169
|
+
ChargeTermination: 7,
|
|
170
|
+
};
|
|
163
171
|
export const HeartBeatTelemetry = bin.object({
|
|
164
172
|
message: bin.arrayOf(bin.i8, 16), // char[16]
|
|
165
173
|
status_flags: bin.u8, // unsigned char
|
|
@@ -217,7 +225,7 @@ export const sensors_capacitance_CapacitanceBatch = bin.object({
|
|
|
217
225
|
samples: bin.arrayOf(sensors_capacitance_CapacitanceSample, 8), // sensors::capacitance::CapacitanceSample[8]
|
|
218
226
|
});
|
|
219
227
|
export const CapacitanceSensorPacket = bin.object({
|
|
220
|
-
sensor_id: bin.u8, // sensors::
|
|
228
|
+
sensor_id: bin.u8, // sensors::capacitance::Id
|
|
221
229
|
data: sensors_capacitance_CapacitanceBatch, // sensors::capacitance::CapacitanceBatch
|
|
222
230
|
});
|
|
223
231
|
export const sensors_capacitance_LevelBatch = bin.object({
|
|
@@ -320,6 +328,44 @@ export const BatteryMonitorTelemetryPacket = bin.object({
|
|
|
320
328
|
timestamp_ms: bin.u32, // unsigned int
|
|
321
329
|
voltages: bin.arrayOf(bin.f32, 2), // float[2]
|
|
322
330
|
});
|
|
331
|
+
export const sensors_bms_RailMeasurement = bin.object({
|
|
332
|
+
current: bin.f32, // float
|
|
333
|
+
volts: bin.f32, // float
|
|
334
|
+
shunt_voltage: bin.f32, // float
|
|
335
|
+
power: bin.f32, // float
|
|
336
|
+
});
|
|
337
|
+
export const sensors_bms_RailData = bin.object({
|
|
338
|
+
vbat: sensors_bms_RailMeasurement, // sensors::bms::RailMeasurement
|
|
339
|
+
v_12: sensors_bms_RailMeasurement, // sensors::bms::RailMeasurement
|
|
340
|
+
v_24: sensors_bms_RailMeasurement, // sensors::bms::RailMeasurement
|
|
341
|
+
});
|
|
342
|
+
export const sensors_bms_BatteryPackData = bin.object({
|
|
343
|
+
cell: bin.arrayOf(bin.f32, 6), // float[6]
|
|
344
|
+
voltage: bin.f32, // float
|
|
345
|
+
current: bin.f32, // float
|
|
346
|
+
die_temperature: bin.f32, // float
|
|
347
|
+
balancing_mask: bin.u8, // unsigned char
|
|
348
|
+
alert: bin.bool, // bool
|
|
349
|
+
comms_ok: bin.bool, // bool
|
|
350
|
+
});
|
|
351
|
+
export const sensors_bms_ChargerData = bin.object({
|
|
352
|
+
vac: f64, // double
|
|
353
|
+
vbat: f64, // double
|
|
354
|
+
vsys: f64, // double
|
|
355
|
+
iac: f64, // double
|
|
356
|
+
ibat: f64, // double
|
|
357
|
+
temperature: f64, // double
|
|
358
|
+
charging: bin.bool, // bool
|
|
359
|
+
power_good: bin.bool, // bool
|
|
360
|
+
faults: bin.u8, // unsigned char
|
|
361
|
+
state: bin.u32, // sensors::bms::ChargingStatus
|
|
362
|
+
});
|
|
363
|
+
export const BmsTelemetryPacket = bin.object({
|
|
364
|
+
timestamp_ms: bin.u32, // unsigned int
|
|
365
|
+
rail: sensors_bms_RailData, // sensors::bms::RailData
|
|
366
|
+
battery_pack: sensors_bms_BatteryPackData, // sensors::bms::BatteryPackData
|
|
367
|
+
charger: sensors_bms_ChargerData, // sensors::bms::ChargerData
|
|
368
|
+
});
|
|
323
369
|
export const spec = {
|
|
324
370
|
HeartBeatTelemetry: {
|
|
325
371
|
port: 57005,
|
|
@@ -364,7 +410,7 @@ export const spec = {
|
|
|
364
410
|
packed: null,
|
|
365
411
|
schema: CapacitanceSensorPacket,
|
|
366
412
|
enums: {
|
|
367
|
-
sensor_id:
|
|
413
|
+
sensor_id: sensors_capacitance_Id,
|
|
368
414
|
data: {},
|
|
369
415
|
},
|
|
370
416
|
},
|
|
@@ -438,5 +484,20 @@ export const spec = {
|
|
|
438
484
|
schema: BatteryMonitorTelemetryPacket,
|
|
439
485
|
enums: {},
|
|
440
486
|
},
|
|
487
|
+
BmsTelemetryPacket: {
|
|
488
|
+
port: 5012,
|
|
489
|
+
schema: BmsTelemetryPacket,
|
|
490
|
+
enums: {
|
|
491
|
+
rail: {
|
|
492
|
+
vbat: {},
|
|
493
|
+
v_12: {},
|
|
494
|
+
v_24: {},
|
|
495
|
+
},
|
|
496
|
+
battery_pack: {},
|
|
497
|
+
charger: {
|
|
498
|
+
state: sensors_bms_ChargingStatus,
|
|
499
|
+
},
|
|
500
|
+
},
|
|
501
|
+
},
|
|
441
502
|
};
|
|
442
503
|
export default spec;
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
{
|
|
246
246
|
"name": "sensor_id",
|
|
247
247
|
"kind": "enum",
|
|
248
|
-
"type": "sensors::
|
|
248
|
+
"type": "sensors::capacitance::Id",
|
|
249
249
|
"format_string": "<B"
|
|
250
250
|
},
|
|
251
251
|
{
|
|
@@ -870,6 +870,248 @@
|
|
|
870
870
|
}
|
|
871
871
|
],
|
|
872
872
|
"format_string": "<Iff"
|
|
873
|
+
},
|
|
874
|
+
"BmsTelemetryPacket": {
|
|
875
|
+
"port": 5012,
|
|
876
|
+
"kind": "struct",
|
|
877
|
+
"type": "BmsTelemetryPacket",
|
|
878
|
+
"fields": [
|
|
879
|
+
{
|
|
880
|
+
"name": "timestamp_ms",
|
|
881
|
+
"kind": "primitive",
|
|
882
|
+
"type": "unsigned int",
|
|
883
|
+
"format_string": "<I"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"name": "rail",
|
|
887
|
+
"kind": "struct",
|
|
888
|
+
"type": "sensors::bms::RailData",
|
|
889
|
+
"fields": [
|
|
890
|
+
{
|
|
891
|
+
"name": "vbat",
|
|
892
|
+
"kind": "struct",
|
|
893
|
+
"type": "sensors::bms::RailMeasurement",
|
|
894
|
+
"fields": [
|
|
895
|
+
{
|
|
896
|
+
"name": "current",
|
|
897
|
+
"kind": "primitive",
|
|
898
|
+
"type": "float",
|
|
899
|
+
"format_string": "<f"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"name": "volts",
|
|
903
|
+
"kind": "primitive",
|
|
904
|
+
"type": "float",
|
|
905
|
+
"format_string": "<f"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"name": "shunt_voltage",
|
|
909
|
+
"kind": "primitive",
|
|
910
|
+
"type": "float",
|
|
911
|
+
"format_string": "<f"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"name": "power",
|
|
915
|
+
"kind": "primitive",
|
|
916
|
+
"type": "float",
|
|
917
|
+
"format_string": "<f"
|
|
918
|
+
}
|
|
919
|
+
],
|
|
920
|
+
"format_string": "<ffff"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"name": "v_12",
|
|
924
|
+
"kind": "struct",
|
|
925
|
+
"type": "sensors::bms::RailMeasurement",
|
|
926
|
+
"fields": [
|
|
927
|
+
{
|
|
928
|
+
"name": "current",
|
|
929
|
+
"kind": "primitive",
|
|
930
|
+
"type": "float",
|
|
931
|
+
"format_string": "<f"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"name": "volts",
|
|
935
|
+
"kind": "primitive",
|
|
936
|
+
"type": "float",
|
|
937
|
+
"format_string": "<f"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"name": "shunt_voltage",
|
|
941
|
+
"kind": "primitive",
|
|
942
|
+
"type": "float",
|
|
943
|
+
"format_string": "<f"
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"name": "power",
|
|
947
|
+
"kind": "primitive",
|
|
948
|
+
"type": "float",
|
|
949
|
+
"format_string": "<f"
|
|
950
|
+
}
|
|
951
|
+
],
|
|
952
|
+
"format_string": "<ffff"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"name": "v_24",
|
|
956
|
+
"kind": "struct",
|
|
957
|
+
"type": "sensors::bms::RailMeasurement",
|
|
958
|
+
"fields": [
|
|
959
|
+
{
|
|
960
|
+
"name": "current",
|
|
961
|
+
"kind": "primitive",
|
|
962
|
+
"type": "float",
|
|
963
|
+
"format_string": "<f"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "volts",
|
|
967
|
+
"kind": "primitive",
|
|
968
|
+
"type": "float",
|
|
969
|
+
"format_string": "<f"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"name": "shunt_voltage",
|
|
973
|
+
"kind": "primitive",
|
|
974
|
+
"type": "float",
|
|
975
|
+
"format_string": "<f"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"name": "power",
|
|
979
|
+
"kind": "primitive",
|
|
980
|
+
"type": "float",
|
|
981
|
+
"format_string": "<f"
|
|
982
|
+
}
|
|
983
|
+
],
|
|
984
|
+
"format_string": "<ffff"
|
|
985
|
+
}
|
|
986
|
+
],
|
|
987
|
+
"format_string": "<ffffffffffff"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"name": "battery_pack",
|
|
991
|
+
"kind": "struct",
|
|
992
|
+
"type": "sensors::bms::BatteryPackData",
|
|
993
|
+
"fields": [
|
|
994
|
+
{
|
|
995
|
+
"name": "cell",
|
|
996
|
+
"kind": "array",
|
|
997
|
+
"type": "float[6]",
|
|
998
|
+
"element": {
|
|
999
|
+
"kind": "primitive",
|
|
1000
|
+
"type": "float",
|
|
1001
|
+
"format_string": "<f"
|
|
1002
|
+
},
|
|
1003
|
+
"count": 6,
|
|
1004
|
+
"format_string": "<ffffff"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "voltage",
|
|
1008
|
+
"kind": "primitive",
|
|
1009
|
+
"type": "float",
|
|
1010
|
+
"format_string": "<f"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"name": "current",
|
|
1014
|
+
"kind": "primitive",
|
|
1015
|
+
"type": "float",
|
|
1016
|
+
"format_string": "<f"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"name": "die_temperature",
|
|
1020
|
+
"kind": "primitive",
|
|
1021
|
+
"type": "float",
|
|
1022
|
+
"format_string": "<f"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"name": "balancing_mask",
|
|
1026
|
+
"kind": "primitive",
|
|
1027
|
+
"type": "unsigned char",
|
|
1028
|
+
"format_string": "<B"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"name": "alert",
|
|
1032
|
+
"kind": "primitive",
|
|
1033
|
+
"type": "bool",
|
|
1034
|
+
"format_string": "<?"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"name": "comms_ok",
|
|
1038
|
+
"kind": "primitive",
|
|
1039
|
+
"type": "bool",
|
|
1040
|
+
"format_string": "<?"
|
|
1041
|
+
}
|
|
1042
|
+
],
|
|
1043
|
+
"format_string": "<fffffffffB??"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"name": "charger",
|
|
1047
|
+
"kind": "struct",
|
|
1048
|
+
"type": "sensors::bms::ChargerData",
|
|
1049
|
+
"fields": [
|
|
1050
|
+
{
|
|
1051
|
+
"name": "vac",
|
|
1052
|
+
"kind": "primitive",
|
|
1053
|
+
"type": "double",
|
|
1054
|
+
"format_string": "<d"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"name": "vbat",
|
|
1058
|
+
"kind": "primitive",
|
|
1059
|
+
"type": "double",
|
|
1060
|
+
"format_string": "<d"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"name": "vsys",
|
|
1064
|
+
"kind": "primitive",
|
|
1065
|
+
"type": "double",
|
|
1066
|
+
"format_string": "<d"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"name": "iac",
|
|
1070
|
+
"kind": "primitive",
|
|
1071
|
+
"type": "double",
|
|
1072
|
+
"format_string": "<d"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"name": "ibat",
|
|
1076
|
+
"kind": "primitive",
|
|
1077
|
+
"type": "double",
|
|
1078
|
+
"format_string": "<d"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"name": "temperature",
|
|
1082
|
+
"kind": "primitive",
|
|
1083
|
+
"type": "double",
|
|
1084
|
+
"format_string": "<d"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"name": "charging",
|
|
1088
|
+
"kind": "primitive",
|
|
1089
|
+
"type": "bool",
|
|
1090
|
+
"format_string": "<?"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"name": "power_good",
|
|
1094
|
+
"kind": "primitive",
|
|
1095
|
+
"type": "bool",
|
|
1096
|
+
"format_string": "<?"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"name": "faults",
|
|
1100
|
+
"kind": "primitive",
|
|
1101
|
+
"type": "unsigned char",
|
|
1102
|
+
"format_string": "<B"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"name": "state",
|
|
1106
|
+
"kind": "enum",
|
|
1107
|
+
"type": "sensors::bms::ChargingStatus",
|
|
1108
|
+
"format_string": "<I"
|
|
1109
|
+
}
|
|
1110
|
+
],
|
|
1111
|
+
"format_string": "<dddddd??BI"
|
|
1112
|
+
}
|
|
1113
|
+
],
|
|
1114
|
+
"format_string": "<IfffffffffffffffffffffB??dddddd??BI"
|
|
873
1115
|
}
|
|
874
1116
|
},
|
|
875
1117
|
"enums": {
|
|
@@ -921,7 +1163,7 @@
|
|
|
921
1163
|
"Chamber": 6,
|
|
922
1164
|
"Count": 7
|
|
923
1165
|
},
|
|
924
|
-
"sensors::
|
|
1166
|
+
"sensors::capacitance::Id": {
|
|
925
1167
|
"Main": 0,
|
|
926
1168
|
"LiquidRef": 1,
|
|
927
1169
|
"GasRef": 2,
|
|
@@ -967,11 +1209,19 @@
|
|
|
967
1209
|
"OxTankTop": 1,
|
|
968
1210
|
"FuelTank": 2,
|
|
969
1211
|
"OxInjector": 3,
|
|
970
|
-
"Chamber1": 4,
|
|
971
1212
|
"FuelInjector": 5,
|
|
972
|
-
"Chamber2": 6,
|
|
973
1213
|
"ExtraNodeOne": 7,
|
|
974
1214
|
"Count": 8
|
|
1215
|
+
},
|
|
1216
|
+
"sensors::bms::ChargingStatus": {
|
|
1217
|
+
"NotCharging": 0,
|
|
1218
|
+
"TrickleCharge": 1,
|
|
1219
|
+
"PreCharge": 2,
|
|
1220
|
+
"FastCharge": 3,
|
|
1221
|
+
"TaperCharge": 4,
|
|
1222
|
+
"Reserved": 5,
|
|
1223
|
+
"TopOffTimerCharge": 6,
|
|
1224
|
+
"ChargeTermination": 7
|
|
975
1225
|
}
|
|
976
1226
|
}
|
|
977
1227
|
}
|
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
|
|
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;
|
|
14
|
-
}>;
|
|
15
|
-
export type Commands_FSMStateCommand = bin.Parsed<typeof Commands_FSMStateCommand>;
|
|
16
|
-
export declare const spec: {
|
|
17
|
-
Commands_FSMStateCommand: {
|
|
18
|
-
id: number;
|
|
19
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
20
|
-
command: import("typed-binary").ByteSchema;
|
|
21
|
-
}>;
|
|
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
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
1
|
+
export declare const spec: {};
|
|
35
2
|
export default spec;
|
|
36
3
|
export type Spec = typeof spec;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
// This file was generated by FRICC on 2026-07-
|
|
1
|
+
import { Measurer, Schema } from 'typed-binary';
|
|
2
|
+
// This file was generated by FRICC on 2026-07-08 21:58:00. 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,25 +60,5 @@ 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
|
-
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
|
|
74
|
-
});
|
|
75
|
-
export const spec = {
|
|
76
|
-
Commands_FSMStateCommand: {
|
|
77
|
-
id: 16,
|
|
78
|
-
schema: Commands_FSMStateCommand,
|
|
79
|
-
enums: {
|
|
80
|
-
command: Commands_StateCommands,
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
};
|
|
63
|
+
export const spec = {};
|
|
84
64
|
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-
|
|
2
|
+
// This file was generated by FRICC on 2026-07-08 21:58:02. 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-09 16:43: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;
|
|
@@ -30,6 +30,7 @@ export type Event = (typeof Event)[keyof typeof Event];
|
|
|
30
30
|
export declare const fsm_AbortReason: {
|
|
31
31
|
readonly None: 0;
|
|
32
32
|
readonly Manual: 1;
|
|
33
|
+
readonly ConnectionLost: 2;
|
|
33
34
|
};
|
|
34
35
|
export type fsm_AbortReason = (typeof fsm_AbortReason)[keyof typeof fsm_AbortReason];
|
|
35
36
|
export declare const sensors_pressure_Id: {
|
|
@@ -239,6 +240,7 @@ export declare const spec: {
|
|
|
239
240
|
last_abort_reason: {
|
|
240
241
|
readonly None: 0;
|
|
241
242
|
readonly Manual: 1;
|
|
243
|
+
readonly ConnectionLost: 2;
|
|
242
244
|
};
|
|
243
245
|
};
|
|
244
246
|
};
|
|
@@ -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-09 16:43: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;
|
|
@@ -83,6 +83,7 @@ export const Event = {
|
|
|
83
83
|
export const fsm_AbortReason = {
|
|
84
84
|
None: 0,
|
|
85
85
|
Manual: 1,
|
|
86
|
+
ConnectionLost: 2,
|
|
86
87
|
};
|
|
87
88
|
export const sensors_pressure_Id = {
|
|
88
89
|
OxSupply: 0,
|