fossekall-interface 0.1.40 → 0.1.42

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-03-30 10:33:33. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-31 11:07:11. 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;
@@ -106,6 +106,13 @@ export declare const node_regulator_Id: {
106
106
  readonly Count: 1;
107
107
  };
108
108
  export type node_regulator_Id = (typeof node_regulator_Id)[keyof typeof node_regulator_Id];
109
+ export declare const node_load_cell_Id: {
110
+ readonly LoadCell1: 0;
111
+ readonly LoadCell2: 1;
112
+ readonly LoadCell3: 2;
113
+ readonly Count: 3;
114
+ };
115
+ export type node_load_cell_Id = (typeof node_load_cell_Id)[keyof typeof node_load_cell_Id];
109
116
  export declare const actuators_bldc_BldcTelemetry: import("typed-binary").ObjectSchema<{
110
117
  valve_position: import("typed-binary").Float32Schema;
111
118
  motor_position: import("typed-binary").Float32Schema;
@@ -240,6 +247,52 @@ export declare const RegulatorStatusPacket: import("typed-binary").ObjectSchema<
240
247
  }>;
241
248
  }>;
242
249
  export type RegulatorStatusPacket = bin.Parsed<typeof RegulatorStatusPacket>;
250
+ export declare const proto_can_thermocouple_ThermocoupleSample: import("typed-binary").ObjectSchema<{
251
+ timestamp_us: UInt64Schema;
252
+ interval_us: import("typed-binary").Float32Schema;
253
+ temperature_c: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
254
+ }>;
255
+ export type proto_can_thermocouple_ThermocoupleSample = bin.Parsed<typeof proto_can_thermocouple_ThermocoupleSample>;
256
+ export declare const proto_can_thermocouple_ThermocoupleSamples: import("typed-binary").ObjectSchema<{
257
+ port: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
258
+ timestamp_us: UInt64Schema;
259
+ interval_us: import("typed-binary").Float32Schema;
260
+ temperature_c: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
261
+ }>>;
262
+ }>;
263
+ export type proto_can_thermocouple_ThermocoupleSamples = bin.Parsed<typeof proto_can_thermocouple_ThermocoupleSamples>;
264
+ export declare const ThermocouplePacket: import("typed-binary").ObjectSchema<{
265
+ timestamp_ms: import("typed-binary").Uint32Schema;
266
+ samples: import("typed-binary").ObjectSchema<{
267
+ port: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
268
+ timestamp_us: UInt64Schema;
269
+ interval_us: import("typed-binary").Float32Schema;
270
+ temperature_c: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
271
+ }>>;
272
+ }>;
273
+ }>;
274
+ export type ThermocouplePacket = bin.Parsed<typeof ThermocouplePacket>;
275
+ export declare const sensors_loadcell_LoadCellBatch: import("typed-binary").ObjectSchema<{
276
+ t0_ms: import("typed-binary").Uint32Schema;
277
+ dt_us: import("typed-binary").Uint16Schema;
278
+ count: import("typed-binary").ByteSchema;
279
+ seq: import("typed-binary").ByteSchema;
280
+ overrun: import("typed-binary").BoolSchema;
281
+ samples: import("typed-binary").ArraySchema<import("typed-binary").Int32Schema>;
282
+ }>;
283
+ export type sensors_loadcell_LoadCellBatch = bin.Parsed<typeof sensors_loadcell_LoadCellBatch>;
284
+ export declare const LoadCellPacket: import("typed-binary").ObjectSchema<{
285
+ loadcell_id: import("typed-binary").ByteSchema;
286
+ data: import("typed-binary").ObjectSchema<{
287
+ t0_ms: import("typed-binary").Uint32Schema;
288
+ dt_us: import("typed-binary").Uint16Schema;
289
+ count: import("typed-binary").ByteSchema;
290
+ seq: import("typed-binary").ByteSchema;
291
+ overrun: import("typed-binary").BoolSchema;
292
+ samples: import("typed-binary").ArraySchema<import("typed-binary").Int32Schema>;
293
+ }>;
294
+ }>;
295
+ export type LoadCellPacket = bin.Parsed<typeof LoadCellPacket>;
243
296
  export declare const spec: {
244
297
  actuators_bldc_BldcTelemetry: {
245
298
  port: number;
@@ -467,6 +520,45 @@ export declare const spec: {
467
520
  status: {};
468
521
  };
469
522
  };
523
+ ThermocouplePacket: {
524
+ port: number;
525
+ schema: import("typed-binary").ObjectSchema<{
526
+ timestamp_ms: import("typed-binary").Uint32Schema;
527
+ samples: import("typed-binary").ObjectSchema<{
528
+ port: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
529
+ timestamp_us: UInt64Schema;
530
+ interval_us: import("typed-binary").Float32Schema;
531
+ temperature_c: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
532
+ }>>;
533
+ }>;
534
+ }>;
535
+ enums: {
536
+ samples: {};
537
+ };
538
+ };
539
+ LoadCellPacket: {
540
+ port: number;
541
+ schema: import("typed-binary").ObjectSchema<{
542
+ loadcell_id: import("typed-binary").ByteSchema;
543
+ data: import("typed-binary").ObjectSchema<{
544
+ t0_ms: import("typed-binary").Uint32Schema;
545
+ dt_us: import("typed-binary").Uint16Schema;
546
+ count: import("typed-binary").ByteSchema;
547
+ seq: import("typed-binary").ByteSchema;
548
+ overrun: import("typed-binary").BoolSchema;
549
+ samples: import("typed-binary").ArraySchema<import("typed-binary").Int32Schema>;
550
+ }>;
551
+ }>;
552
+ enums: {
553
+ loadcell_id: {
554
+ readonly LoadCell1: 0;
555
+ readonly LoadCell2: 1;
556
+ readonly LoadCell3: 2;
557
+ readonly Count: 3;
558
+ };
559
+ data: {};
560
+ };
561
+ };
470
562
  };
471
563
  export default spec;
472
564
  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-03-30 10:33:30. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-31 11:07:08. 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;
@@ -150,6 +150,12 @@ export const node_regulator_Id = {
150
150
  OxBoiloff: 0,
151
151
  Count: 1,
152
152
  };
153
+ export const node_load_cell_Id = {
154
+ LoadCell1: 0,
155
+ LoadCell2: 1,
156
+ LoadCell3: 2,
157
+ Count: 3,
158
+ };
153
159
  export const actuators_bldc_BldcTelemetry = bin.object({
154
160
  valve_position: bin.f32, // float
155
161
  motor_position: bin.f32, // float
@@ -186,7 +192,7 @@ export const sensors_pressure_PressureBatch = bin.object({
186
192
  count: bin.u8, // unsigned char
187
193
  seq: bin.u8, // unsigned char
188
194
  overrun: bin.bool, // bool
189
- samples: bin.arrayOf(bin.i16, 10), // short[10]
195
+ samples: bin.arrayOf(bin.i16, 20), // short[20]
190
196
  });
191
197
  export const PressureSensorPacket = bin.object({
192
198
  sensor_id: bin.u8, // node::pressure_sensor::Id
@@ -234,6 +240,30 @@ export const RegulatorStatusPacket = bin.object({
234
240
  timestamp_ms: bin.u32, // unsigned int
235
241
  status: regulators_RegulatorStatus, // regulators::RegulatorStatus
236
242
  });
243
+ export const proto_can_thermocouple_ThermocoupleSample = bin.object({
244
+ timestamp_us: u64, // unsigned long long
245
+ interval_us: bin.f32, // float
246
+ temperature_c: bin.arrayOf(bin.f32, 8), // float[8]
247
+ });
248
+ export const proto_can_thermocouple_ThermocoupleSamples = bin.object({
249
+ port: bin.arrayOf(proto_can_thermocouple_ThermocoupleSample, 4), // proto::can::thermocouple::ThermocoupleSample[4]
250
+ });
251
+ export const ThermocouplePacket = bin.object({
252
+ timestamp_ms: bin.u32, // unsigned int
253
+ samples: proto_can_thermocouple_ThermocoupleSamples, // proto::can::thermocouple::ThermocoupleSamples
254
+ });
255
+ export const sensors_loadcell_LoadCellBatch = bin.object({
256
+ t0_ms: bin.u32, // unsigned int
257
+ dt_us: bin.u16, // unsigned short
258
+ count: bin.u8, // unsigned char
259
+ seq: bin.u8, // unsigned char
260
+ overrun: bin.bool, // bool
261
+ samples: bin.arrayOf(bin.i32, 10), // int[10]
262
+ });
263
+ export const LoadCellPacket = bin.object({
264
+ loadcell_id: bin.u8, // node::load_cell::Id
265
+ data: sensors_loadcell_LoadCellBatch, // sensors::loadcell::LoadCellBatch
266
+ });
237
267
  export const spec = {
238
268
  actuators_bldc_BldcTelemetry: {
239
269
  port: 5000,
@@ -295,5 +325,20 @@ export const spec = {
295
325
  status: {},
296
326
  },
297
327
  },
328
+ ThermocouplePacket: {
329
+ port: 5006,
330
+ schema: ThermocouplePacket,
331
+ enums: {
332
+ samples: {},
333
+ },
334
+ },
335
+ LoadCellPacket: {
336
+ port: 5007,
337
+ schema: LoadCellPacket,
338
+ enums: {
339
+ loadcell_id: node_load_cell_Id,
340
+ data: {},
341
+ },
342
+ },
298
343
  };
299
344
  export default spec;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.40",
3
+ "version": "0.1.42",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",