fossekall-interface 0.1.136 → 0.1.138

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-07-05 18:36:49. Do not edit manually!
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;
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-07-05 18:36:51. Do not edit manually!
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;
@@ -1,4 +1,2 @@
1
1
  export * as commands from "./commands";
2
- export * as kalman from "./kalman";
3
- export * as status from "./status";
4
2
  export * as telemetry from "./telemetry";
@@ -1,4 +1,2 @@
1
1
  export * as commands from "./commands";
2
- export * as kalman from "./kalman";
3
- export * as status from "./status";
4
2
  export * as telemetry from "./telemetry";
@@ -5,6 +5,22 @@ declare class Float64Schema extends Schema<number> {
5
5
  write(output: ISerialOutput, value: number): void;
6
6
  measure(_: number | typeof MaxValue, measurer?: IMeasurer): IMeasurer;
7
7
  }
8
+ export declare const STATE_NAME: {
9
+ readonly NONE: 0;
10
+ readonly IDLE: 1;
11
+ readonly READY: 2;
12
+ readonly FILLING: 3;
13
+ readonly SEPARATION_FILLING: 4;
14
+ readonly FLOTATION_FILLING: 5;
15
+ readonly THRUSTING: 6;
16
+ readonly COASTING: 7;
17
+ readonly SEPARATION: 8;
18
+ readonly FLOTATION: 9;
19
+ readonly SHUTDOWN: 10;
20
+ readonly TEST_SEPARATION: 11;
21
+ readonly TEST_FLOTATION: 12;
22
+ };
23
+ export type STATE_NAME = (typeof STATE_NAME)[keyof typeof STATE_NAME];
8
24
  export declare const Telemetry_GNSS_DATA: import("typed-binary").ObjectSchema<{
9
25
  data_valid: import("typed-binary").ByteSchema;
10
26
  numSV: import("typed-binary").ByteSchema;
@@ -138,6 +154,64 @@ export declare const Telemetry_SensorData: import("typed-binary").ObjectSchema<{
138
154
  }>;
139
155
  }>;
140
156
  export type Telemetry_SensorData = bin.Parsed<typeof Telemetry_SensorData>;
157
+ export declare const Telemetry_KalmanData: import("typed-binary").ObjectSchema<{
158
+ altitude: Float64Schema;
159
+ velocity: Float64Schema;
160
+ }>;
161
+ export type Telemetry_KalmanData = bin.Parsed<typeof Telemetry_KalmanData>;
162
+ export declare const Telemetry_ActuatorStatus: import("typed-binary").ObjectSchema<{
163
+ separation_filling_online: import("typed-binary").BoolSchema;
164
+ flotation_filling_online: import("typed-binary").BoolSchema;
165
+ flotation_online: import("typed-binary").BoolSchema;
166
+ separation_servo_online: import("typed-binary").BoolSchema;
167
+ }>;
168
+ export type Telemetry_ActuatorStatus = bin.Parsed<typeof Telemetry_ActuatorStatus>;
169
+ export declare const Telemetry_SensorStatus: import("typed-binary").ObjectSchema<{
170
+ bme_online: import("typed-binary").BoolSchema;
171
+ ms_online: import("typed-binary").BoolSchema;
172
+ gnss_online: import("typed-binary").BoolSchema;
173
+ icm_online: import("typed-binary").BoolSchema;
174
+ stim_online: import("typed-binary").BoolSchema;
175
+ pressure_online: import("typed-binary").BoolSchema;
176
+ }>;
177
+ export type Telemetry_SensorStatus = bin.Parsed<typeof Telemetry_SensorStatus>;
178
+ export declare const Telemetry_HardwareStatus: import("typed-binary").ObjectSchema<{
179
+ pcan1_online: import("typed-binary").BoolSchema;
180
+ pcan2_online: import("typed-binary").BoolSchema;
181
+ networking_thread_online: import("typed-binary").BoolSchema;
182
+ cli_thread_online: import("typed-binary").BoolSchema;
183
+ kalman_thread_online: import("typed-binary").BoolSchema;
184
+ sensor_thread_online: import("typed-binary").BoolSchema;
185
+ fsm_thread_online: import("typed-binary").BoolSchema;
186
+ }>;
187
+ export type Telemetry_HardwareStatus = bin.Parsed<typeof Telemetry_HardwareStatus>;
188
+ export declare const Telemetry_SystemStatus: import("typed-binary").ObjectSchema<{
189
+ actuators: import("typed-binary").ObjectSchema<{
190
+ separation_filling_online: import("typed-binary").BoolSchema;
191
+ flotation_filling_online: import("typed-binary").BoolSchema;
192
+ flotation_online: import("typed-binary").BoolSchema;
193
+ separation_servo_online: import("typed-binary").BoolSchema;
194
+ }>;
195
+ sensors: import("typed-binary").ObjectSchema<{
196
+ bme_online: import("typed-binary").BoolSchema;
197
+ ms_online: import("typed-binary").BoolSchema;
198
+ gnss_online: import("typed-binary").BoolSchema;
199
+ icm_online: import("typed-binary").BoolSchema;
200
+ stim_online: import("typed-binary").BoolSchema;
201
+ pressure_online: import("typed-binary").BoolSchema;
202
+ }>;
203
+ hardware: import("typed-binary").ObjectSchema<{
204
+ pcan1_online: import("typed-binary").BoolSchema;
205
+ pcan2_online: import("typed-binary").BoolSchema;
206
+ networking_thread_online: import("typed-binary").BoolSchema;
207
+ cli_thread_online: import("typed-binary").BoolSchema;
208
+ kalman_thread_online: import("typed-binary").BoolSchema;
209
+ sensor_thread_online: import("typed-binary").BoolSchema;
210
+ fsm_thread_online: import("typed-binary").BoolSchema;
211
+ }>;
212
+ current_state: import("typed-binary").Uint32Schema;
213
+ }>;
214
+ export type Telemetry_SystemStatus = bin.Parsed<typeof Telemetry_SystemStatus>;
141
215
  export declare const spec: {
142
216
  Telemetry_SensorData: {
143
217
  port: number;
@@ -214,6 +288,63 @@ export declare const spec: {
214
288
  pressure_data: {};
215
289
  };
216
290
  };
291
+ Telemetry_KalmanData: {
292
+ port: number;
293
+ schema: import("typed-binary").ObjectSchema<{
294
+ altitude: Float64Schema;
295
+ velocity: Float64Schema;
296
+ }>;
297
+ enums: {};
298
+ };
299
+ Telemetry_SystemStatus: {
300
+ port: number;
301
+ schema: import("typed-binary").ObjectSchema<{
302
+ actuators: import("typed-binary").ObjectSchema<{
303
+ separation_filling_online: import("typed-binary").BoolSchema;
304
+ flotation_filling_online: import("typed-binary").BoolSchema;
305
+ flotation_online: import("typed-binary").BoolSchema;
306
+ separation_servo_online: import("typed-binary").BoolSchema;
307
+ }>;
308
+ sensors: import("typed-binary").ObjectSchema<{
309
+ bme_online: import("typed-binary").BoolSchema;
310
+ ms_online: import("typed-binary").BoolSchema;
311
+ gnss_online: import("typed-binary").BoolSchema;
312
+ icm_online: import("typed-binary").BoolSchema;
313
+ stim_online: import("typed-binary").BoolSchema;
314
+ pressure_online: import("typed-binary").BoolSchema;
315
+ }>;
316
+ hardware: import("typed-binary").ObjectSchema<{
317
+ pcan1_online: import("typed-binary").BoolSchema;
318
+ pcan2_online: import("typed-binary").BoolSchema;
319
+ networking_thread_online: import("typed-binary").BoolSchema;
320
+ cli_thread_online: import("typed-binary").BoolSchema;
321
+ kalman_thread_online: import("typed-binary").BoolSchema;
322
+ sensor_thread_online: import("typed-binary").BoolSchema;
323
+ fsm_thread_online: import("typed-binary").BoolSchema;
324
+ }>;
325
+ current_state: import("typed-binary").Uint32Schema;
326
+ }>;
327
+ enums: {
328
+ actuators: {};
329
+ sensors: {};
330
+ hardware: {};
331
+ current_state: {
332
+ readonly NONE: 0;
333
+ readonly IDLE: 1;
334
+ readonly READY: 2;
335
+ readonly FILLING: 3;
336
+ readonly SEPARATION_FILLING: 4;
337
+ readonly FLOTATION_FILLING: 5;
338
+ readonly THRUSTING: 6;
339
+ readonly COASTING: 7;
340
+ readonly SEPARATION: 8;
341
+ readonly FLOTATION: 9;
342
+ readonly SHUTDOWN: 10;
343
+ readonly TEST_SEPARATION: 11;
344
+ readonly TEST_FLOTATION: 12;
345
+ };
346
+ };
347
+ };
217
348
  };
218
349
  export default spec;
219
350
  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-04 12:56:39. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-07-06 20:58:42. 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_GNSS_DATA = bin.object({
64
79
  data_valid: bin.u8, // unsigned char
65
80
  numSV: bin.u8, // unsigned char
@@ -118,6 +133,39 @@ export const Telemetry_SensorData = bin.object({
118
133
  stim_data: Telemetry_STIM377H_DATA, // Telemetry::STIM377H_DATA
119
134
  pressure_data: Telemetry_PressureData, // Telemetry::PressureData
120
135
  });
136
+ export const Telemetry_KalmanData = bin.object({
137
+ altitude: f64, // double
138
+ velocity: f64, // double
139
+ });
140
+ export const Telemetry_ActuatorStatus = bin.object({
141
+ separation_filling_online: bin.bool, // bool
142
+ flotation_filling_online: bin.bool, // bool
143
+ flotation_online: bin.bool, // bool
144
+ separation_servo_online: bin.bool, // bool
145
+ });
146
+ export const Telemetry_SensorStatus = bin.object({
147
+ bme_online: bin.bool, // bool
148
+ ms_online: bin.bool, // bool
149
+ gnss_online: bin.bool, // bool
150
+ icm_online: bin.bool, // bool
151
+ stim_online: bin.bool, // bool
152
+ pressure_online: bin.bool, // bool
153
+ });
154
+ export const Telemetry_HardwareStatus = bin.object({
155
+ pcan1_online: bin.bool, // bool
156
+ pcan2_online: bin.bool, // bool
157
+ networking_thread_online: bin.bool, // bool
158
+ cli_thread_online: bin.bool, // bool
159
+ kalman_thread_online: bin.bool, // bool
160
+ sensor_thread_online: bin.bool, // bool
161
+ fsm_thread_online: bin.bool, // bool
162
+ });
163
+ export const Telemetry_SystemStatus = bin.object({
164
+ actuators: Telemetry_ActuatorStatus, // Telemetry::ActuatorStatus
165
+ sensors: Telemetry_SensorStatus, // Telemetry::SensorStatus
166
+ hardware: Telemetry_HardwareStatus, // Telemetry::HardwareStatus
167
+ current_state: bin.u32, // STATE_NAME
168
+ });
121
169
  export const spec = {
122
170
  Telemetry_SensorData: {
123
171
  port: 3001,
@@ -137,5 +185,20 @@ export const spec = {
137
185
  pressure_data: {},
138
186
  },
139
187
  },
188
+ Telemetry_KalmanData: {
189
+ port: 3002,
190
+ schema: Telemetry_KalmanData,
191
+ enums: {},
192
+ },
193
+ Telemetry_SystemStatus: {
194
+ port: 3003,
195
+ schema: Telemetry_SystemStatus,
196
+ enums: {
197
+ actuators: {},
198
+ sensors: {},
199
+ hardware: {},
200
+ current_state: STATE_NAME,
201
+ },
202
+ },
140
203
  };
141
204
  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-05 13:58:04. Do not edit manually!
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-05 13:58:05. Do not edit manually!
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: 57005,
191
+ port: 57045,
192
192
  schema: HeartBeatTelemetry,
193
193
  enums: {},
194
194
  },
195
195
  FsmStatusPacket: {
196
- port: 5001,
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: 5002,
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: 5003,
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: 5004,
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: 5007,
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": 57005,
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": 5001,
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": 5002,
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": 5003,
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": 5004,
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": 5007,
256
+ "port": 5047,
257
257
  "fragment": "loadcell_id",
258
258
  "kind": "struct",
259
259
  "type": "LoadCellPacket",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.136",
3
+ "version": "0.1.138",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",
@@ -1,24 +0,0 @@
1
- import bin, { MaxValue, Schema, type IMeasurer, type ISerialInput, type ISerialOutput } from 'typed-binary';
2
- declare class Float64Schema extends Schema<number> {
3
- readonly maxSize = 8;
4
- read(input: ISerialInput): number;
5
- write(output: ISerialOutput, value: number): void;
6
- measure(_: number | typeof MaxValue, measurer?: IMeasurer): IMeasurer;
7
- }
8
- export declare const Telemetry_KalmanData: import("typed-binary").ObjectSchema<{
9
- altitude: Float64Schema;
10
- veloicty: Float64Schema;
11
- }>;
12
- export type Telemetry_KalmanData = bin.Parsed<typeof Telemetry_KalmanData>;
13
- export declare const spec: {
14
- Telemetry_KalmanData: {
15
- port: number;
16
- schema: import("typed-binary").ObjectSchema<{
17
- altitude: Float64Schema;
18
- veloicty: Float64Schema;
19
- }>;
20
- enums: {};
21
- };
22
- };
23
- export default spec;
24
- export type Spec = typeof spec;
@@ -1,74 +0,0 @@
1
- import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-07-04 12:57:22. Do not edit manually!
3
- // The current version of typed-binary does not support 64-bit primitives.
4
- // So for we'll implement our own schemas. :)
5
- const __littleEndian = true;
6
- class UInt64Schema extends Schema {
7
- maxSize = 8;
8
- read(input) {
9
- const bytes = new Uint8Array(8);
10
- input.readSlice(bytes, 0, 8);
11
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
12
- return view.getBigUint64(0, __littleEndian);
13
- }
14
- write(output, value) {
15
- const bytes = new Uint8Array(8);
16
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
17
- view.setBigUint64(0, value, __littleEndian);
18
- output.writeSlice(bytes);
19
- }
20
- measure(_, measurer = new Measurer()) {
21
- return measurer.add(8);
22
- }
23
- }
24
- class Int64Schema extends Schema {
25
- maxSize = 8;
26
- read(input) {
27
- const bytes = new Uint8Array(8);
28
- input.readSlice(bytes, 0, 8);
29
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
30
- return view.getBigInt64(0, __littleEndian);
31
- }
32
- write(output, value) {
33
- const bytes = new Uint8Array(8);
34
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
35
- view.setBigInt64(0, value, __littleEndian);
36
- output.writeSlice(bytes);
37
- }
38
- measure(_, measurer = new Measurer()) {
39
- return measurer.add(8);
40
- }
41
- }
42
- class Float64Schema extends Schema {
43
- maxSize = 8;
44
- read(input) {
45
- const bytes = new Uint8Array(8);
46
- input.readSlice(bytes, 0, 8);
47
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
48
- return view.getFloat64(0, __littleEndian);
49
- }
50
- write(output, value) {
51
- const bytes = new Uint8Array(8);
52
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
53
- view.setFloat64(0, value, __littleEndian);
54
- output.writeSlice(bytes);
55
- }
56
- measure(_, measurer = new Measurer()) {
57
- return measurer.add(8);
58
- }
59
- }
60
- const u64 = new UInt64Schema();
61
- const i64 = new Int64Schema();
62
- const f64 = new Float64Schema();
63
- export const Telemetry_KalmanData = bin.object({
64
- altitude: f64, // double
65
- veloicty: f64, // double
66
- });
67
- export const spec = {
68
- Telemetry_KalmanData: {
69
- port: 3002,
70
- schema: Telemetry_KalmanData,
71
- enums: {},
72
- },
73
- };
74
- export default spec;
@@ -1,123 +0,0 @@
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];
18
- export declare const Telemetry_ActuatorStatus: import("typed-binary").ObjectSchema<{
19
- separation_filling_online: import("typed-binary").BoolSchema;
20
- flotation_filling_online: import("typed-binary").BoolSchema;
21
- flotation_online: import("typed-binary").BoolSchema;
22
- separation_servo_online: import("typed-binary").BoolSchema;
23
- }>;
24
- export type Telemetry_ActuatorStatus = bin.Parsed<typeof Telemetry_ActuatorStatus>;
25
- export declare const Telemetry_SensorStatus: import("typed-binary").ObjectSchema<{
26
- bme_online: import("typed-binary").BoolSchema;
27
- ms_online: import("typed-binary").BoolSchema;
28
- gnss_online: import("typed-binary").BoolSchema;
29
- icm_online: import("typed-binary").BoolSchema;
30
- stim_online: import("typed-binary").BoolSchema;
31
- pressure_online: import("typed-binary").BoolSchema;
32
- }>;
33
- export type Telemetry_SensorStatus = bin.Parsed<typeof Telemetry_SensorStatus>;
34
- export declare const Telemetry_HardwareStatus: import("typed-binary").ObjectSchema<{
35
- pcan1_online: import("typed-binary").BoolSchema;
36
- pcan2_online: import("typed-binary").BoolSchema;
37
- networking_thread_online: import("typed-binary").BoolSchema;
38
- cli_thread_online: import("typed-binary").BoolSchema;
39
- kalman_thread_online: import("typed-binary").BoolSchema;
40
- sensor_thread_online: import("typed-binary").BoolSchema;
41
- fsm_thread_online: import("typed-binary").BoolSchema;
42
- }>;
43
- export type Telemetry_HardwareStatus = bin.Parsed<typeof Telemetry_HardwareStatus>;
44
- export declare const Telemetry_SystemStatus: import("typed-binary").ObjectSchema<{
45
- actuators: import("typed-binary").ObjectSchema<{
46
- separation_filling_online: import("typed-binary").BoolSchema;
47
- flotation_filling_online: import("typed-binary").BoolSchema;
48
- flotation_online: import("typed-binary").BoolSchema;
49
- separation_servo_online: import("typed-binary").BoolSchema;
50
- }>;
51
- sensors: import("typed-binary").ObjectSchema<{
52
- bme_online: import("typed-binary").BoolSchema;
53
- ms_online: import("typed-binary").BoolSchema;
54
- gnss_online: import("typed-binary").BoolSchema;
55
- icm_online: import("typed-binary").BoolSchema;
56
- stim_online: import("typed-binary").BoolSchema;
57
- pressure_online: import("typed-binary").BoolSchema;
58
- }>;
59
- hardware: import("typed-binary").ObjectSchema<{
60
- pcan1_online: import("typed-binary").BoolSchema;
61
- pcan2_online: import("typed-binary").BoolSchema;
62
- networking_thread_online: import("typed-binary").BoolSchema;
63
- cli_thread_online: import("typed-binary").BoolSchema;
64
- kalman_thread_online: import("typed-binary").BoolSchema;
65
- sensor_thread_online: import("typed-binary").BoolSchema;
66
- fsm_thread_online: import("typed-binary").BoolSchema;
67
- }>;
68
- current_state: import("typed-binary").Uint32Schema;
69
- }>;
70
- export type Telemetry_SystemStatus = bin.Parsed<typeof Telemetry_SystemStatus>;
71
- export declare const spec: {
72
- Telemetry_SystemStatus: {
73
- port: number;
74
- schema: import("typed-binary").ObjectSchema<{
75
- actuators: import("typed-binary").ObjectSchema<{
76
- separation_filling_online: import("typed-binary").BoolSchema;
77
- flotation_filling_online: import("typed-binary").BoolSchema;
78
- flotation_online: import("typed-binary").BoolSchema;
79
- separation_servo_online: import("typed-binary").BoolSchema;
80
- }>;
81
- sensors: import("typed-binary").ObjectSchema<{
82
- bme_online: import("typed-binary").BoolSchema;
83
- ms_online: import("typed-binary").BoolSchema;
84
- gnss_online: import("typed-binary").BoolSchema;
85
- icm_online: import("typed-binary").BoolSchema;
86
- stim_online: import("typed-binary").BoolSchema;
87
- pressure_online: import("typed-binary").BoolSchema;
88
- }>;
89
- hardware: import("typed-binary").ObjectSchema<{
90
- pcan1_online: import("typed-binary").BoolSchema;
91
- pcan2_online: import("typed-binary").BoolSchema;
92
- networking_thread_online: import("typed-binary").BoolSchema;
93
- cli_thread_online: import("typed-binary").BoolSchema;
94
- kalman_thread_online: import("typed-binary").BoolSchema;
95
- sensor_thread_online: import("typed-binary").BoolSchema;
96
- fsm_thread_online: import("typed-binary").BoolSchema;
97
- }>;
98
- current_state: import("typed-binary").Uint32Schema;
99
- }>;
100
- enums: {
101
- actuators: {};
102
- sensors: {};
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
- };
119
- };
120
- };
121
- };
122
- export default spec;
123
- export type Spec = typeof spec;
@@ -1,119 +0,0 @@
1
- import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-07-06 02:23:39. Do not edit manually!
3
- // The current version of typed-binary does not support 64-bit primitives.
4
- // So for we'll implement our own schemas. :)
5
- const __littleEndian = true;
6
- class UInt64Schema extends Schema {
7
- maxSize = 8;
8
- read(input) {
9
- const bytes = new Uint8Array(8);
10
- input.readSlice(bytes, 0, 8);
11
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
12
- return view.getBigUint64(0, __littleEndian);
13
- }
14
- write(output, value) {
15
- const bytes = new Uint8Array(8);
16
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
17
- view.setBigUint64(0, value, __littleEndian);
18
- output.writeSlice(bytes);
19
- }
20
- measure(_, measurer = new Measurer()) {
21
- return measurer.add(8);
22
- }
23
- }
24
- class Int64Schema extends Schema {
25
- maxSize = 8;
26
- read(input) {
27
- const bytes = new Uint8Array(8);
28
- input.readSlice(bytes, 0, 8);
29
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
30
- return view.getBigInt64(0, __littleEndian);
31
- }
32
- write(output, value) {
33
- const bytes = new Uint8Array(8);
34
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
35
- view.setBigInt64(0, value, __littleEndian);
36
- output.writeSlice(bytes);
37
- }
38
- measure(_, measurer = new Measurer()) {
39
- return measurer.add(8);
40
- }
41
- }
42
- class Float64Schema extends Schema {
43
- maxSize = 8;
44
- read(input) {
45
- const bytes = new Uint8Array(8);
46
- input.readSlice(bytes, 0, 8);
47
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
48
- return view.getFloat64(0, __littleEndian);
49
- }
50
- write(output, value) {
51
- const bytes = new Uint8Array(8);
52
- const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
53
- view.setFloat64(0, value, __littleEndian);
54
- output.writeSlice(bytes);
55
- }
56
- measure(_, measurer = new Measurer()) {
57
- return measurer.add(8);
58
- }
59
- }
60
- const u64 = new UInt64Schema();
61
- const i64 = new Int64Schema();
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
- };
78
- export const Telemetry_ActuatorStatus = bin.object({
79
- separation_filling_online: bin.bool, // bool
80
- flotation_filling_online: bin.bool, // bool
81
- flotation_online: bin.bool, // bool
82
- separation_servo_online: bin.bool, // bool
83
- });
84
- export const Telemetry_SensorStatus = bin.object({
85
- bme_online: bin.bool, // bool
86
- ms_online: bin.bool, // bool
87
- gnss_online: bin.bool, // bool
88
- icm_online: bin.bool, // bool
89
- stim_online: bin.bool, // bool
90
- pressure_online: bin.bool, // bool
91
- });
92
- export const Telemetry_HardwareStatus = bin.object({
93
- pcan1_online: bin.bool, // bool
94
- pcan2_online: bin.bool, // bool
95
- networking_thread_online: bin.bool, // bool
96
- cli_thread_online: bin.bool, // bool
97
- kalman_thread_online: bin.bool, // bool
98
- sensor_thread_online: bin.bool, // bool
99
- fsm_thread_online: bin.bool, // bool
100
- });
101
- export const Telemetry_SystemStatus = bin.object({
102
- actuators: Telemetry_ActuatorStatus, // Telemetry::ActuatorStatus
103
- sensors: Telemetry_SensorStatus, // Telemetry::SensorStatus
104
- hardware: Telemetry_HardwareStatus, // Telemetry::HardwareStatus
105
- current_state: bin.u32, // STATE_NAME
106
- });
107
- export const spec = {
108
- Telemetry_SystemStatus: {
109
- port: 3003,
110
- schema: Telemetry_SystemStatus,
111
- enums: {
112
- actuators: {},
113
- sensors: {},
114
- hardware: {},
115
- current_state: STATE_NAME,
116
- },
117
- },
118
- };
119
- export default spec;