fossekall-interface 0.1.21 → 0.1.22

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,25 +1,13 @@
1
1
  import bin from 'typed-binary';
2
- export declare const node_bldc_Id: {
3
- readonly kFuel: 0;
4
- readonly kOx: 1;
5
- readonly kCount: 2;
6
- };
7
- export type node_bldc_Id = (typeof node_bldc_Id)[keyof typeof node_bldc_Id];
8
- export declare const BldcCommands_SetBldcCommand: {
9
- readonly open: 0;
10
- readonly close: 1;
11
- };
12
- export type BldcCommands_SetBldcCommand = (typeof BldcCommands_SetBldcCommand)[keyof typeof BldcCommands_SetBldcCommand];
13
2
  export declare const Event: {
14
3
  readonly Boot: 0;
15
4
  readonly NextState: 1;
16
5
  readonly PreviousState: 2;
17
6
  readonly Timeout: 3;
18
7
  readonly CalibrateRequest: 4;
19
- readonly BurnwireCut: 5;
20
- readonly Abort: 6;
21
- readonly None: 7;
22
- readonly Count: 8;
8
+ readonly Abort: 5;
9
+ readonly None: 6;
10
+ readonly Count: 7;
23
11
  };
24
12
  export type Event = (typeof Event)[keyof typeof Event];
25
13
  export declare const StateId: {
@@ -63,30 +51,6 @@ export declare const actuators_servo_StartPolicy: {
63
51
  readonly kNoInterrupt: 1;
64
52
  };
65
53
  export type actuators_servo_StartPolicy = (typeof actuators_servo_StartPolicy)[keyof typeof actuators_servo_StartPolicy];
66
- export declare const node_solenoid_Id: {
67
- readonly kFuelVent: 0;
68
- readonly kOxVent: 1;
69
- readonly kN2Fill: 2;
70
- readonly kOxBleed: 3;
71
- readonly kN2_200_Supply: 4;
72
- readonly kN2_200_Bleed: 5;
73
- readonly kN2_300_Supply: 6;
74
- readonly kN2_300_Bleed: 7;
75
- readonly kQD_1: 8;
76
- readonly kQD_2: 9;
77
- readonly kCount: 10;
78
- };
79
- export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
80
- export declare const SolenoidCommands_SetSolenoidCommand: {
81
- readonly open: 0;
82
- readonly close: 1;
83
- };
84
- export type SolenoidCommands_SetSolenoidCommand = (typeof SolenoidCommands_SetSolenoidCommand)[keyof typeof SolenoidCommands_SetSolenoidCommand];
85
- export declare const ControlPolicyCommands_PolicyValue: {
86
- readonly Disable: 0;
87
- readonly Enable: 1;
88
- };
89
- export type ControlPolicyCommands_PolicyValue = (typeof ControlPolicyCommands_PolicyValue)[keyof typeof ControlPolicyCommands_PolicyValue];
90
54
  export declare const node_regulator_Id: {
91
55
  readonly kOxPrechill: 0;
92
56
  readonly kCount: 1;
@@ -97,11 +61,6 @@ export declare const RegulatorCommands_RegulatorValue: {
97
61
  readonly Enable: 1;
98
62
  };
99
63
  export type RegulatorCommands_RegulatorValue = (typeof RegulatorCommands_RegulatorValue)[keyof typeof RegulatorCommands_RegulatorValue];
100
- export declare const BldcCommands_SetBldcPayload: import("typed-binary").ObjectSchema<{
101
- bldc_id: import("typed-binary").ByteSchema;
102
- command: import("typed-binary").Uint32Schema;
103
- }>;
104
- export type BldcCommands_SetBldcPayload = bin.Parsed<typeof BldcCommands_SetBldcPayload>;
105
64
  export declare const FsmCommands_RaiseEventPayload: import("typed-binary").ObjectSchema<{
106
65
  event: import("typed-binary").ByteSchema;
107
66
  current_state: import("typed-binary").ByteSchema;
@@ -125,15 +84,6 @@ export declare const ServoCommands_SetServoPayload: import("typed-binary").Objec
125
84
  start_policy: import("typed-binary").ByteSchema;
126
85
  }>;
127
86
  export type ServoCommands_SetServoPayload = bin.Parsed<typeof ServoCommands_SetServoPayload>;
128
- export declare const SolenoidCommands_SetSolenoidPayload: import("typed-binary").ObjectSchema<{
129
- solenoid_id: import("typed-binary").ByteSchema;
130
- command: import("typed-binary").Uint32Schema;
131
- }>;
132
- export type SolenoidCommands_SetSolenoidPayload = bin.Parsed<typeof SolenoidCommands_SetSolenoidPayload>;
133
- export declare const ControlPolicyCommands_SetManualPolicyPayload: import("typed-binary").ObjectSchema<{
134
- value: import("typed-binary").ByteSchema;
135
- }>;
136
- export type ControlPolicyCommands_SetManualPolicyPayload = bin.Parsed<typeof ControlPolicyCommands_SetManualPolicyPayload>;
137
87
  export declare const RegulatorCommands_SetEnabledPayload: import("typed-binary").ObjectSchema<{
138
88
  regulator_id: import("typed-binary").ByteSchema;
139
89
  value: import("typed-binary").ByteSchema;
@@ -152,24 +102,6 @@ export declare const RegulatorCommands_SetGainsPayload: import("typed-binary").O
152
102
  }>;
153
103
  export type RegulatorCommands_SetGainsPayload = bin.Parsed<typeof RegulatorCommands_SetGainsPayload>;
154
104
  export declare const spec: {
155
- BldcCommands_SetBldcPayload: {
156
- id: number;
157
- schema: import("typed-binary").ObjectSchema<{
158
- bldc_id: import("typed-binary").ByteSchema;
159
- command: import("typed-binary").Uint32Schema;
160
- }>;
161
- enums: {
162
- bldc_id: {
163
- readonly kFuel: 0;
164
- readonly kOx: 1;
165
- readonly kCount: 2;
166
- };
167
- command: {
168
- readonly open: 0;
169
- readonly close: 1;
170
- };
171
- };
172
- };
173
105
  FsmCommands_RaiseEventPayload: {
174
106
  id: number;
175
107
  schema: import("typed-binary").ObjectSchema<{
@@ -183,10 +115,9 @@ export declare const spec: {
183
115
  readonly PreviousState: 2;
184
116
  readonly Timeout: 3;
185
117
  readonly CalibrateRequest: 4;
186
- readonly BurnwireCut: 5;
187
- readonly Abort: 6;
188
- readonly None: 7;
189
- readonly Count: 8;
118
+ readonly Abort: 5;
119
+ readonly None: 6;
120
+ readonly Count: 7;
190
121
  };
191
122
  current_state: {
192
123
  readonly Safe: 0;
@@ -268,44 +199,6 @@ export declare const spec: {
268
199
  };
269
200
  };
270
201
  };
271
- SolenoidCommands_SetSolenoidPayload: {
272
- id: number;
273
- schema: import("typed-binary").ObjectSchema<{
274
- solenoid_id: import("typed-binary").ByteSchema;
275
- command: import("typed-binary").Uint32Schema;
276
- }>;
277
- enums: {
278
- solenoid_id: {
279
- readonly kFuelVent: 0;
280
- readonly kOxVent: 1;
281
- readonly kN2Fill: 2;
282
- readonly kOxBleed: 3;
283
- readonly kN2_200_Supply: 4;
284
- readonly kN2_200_Bleed: 5;
285
- readonly kN2_300_Supply: 6;
286
- readonly kN2_300_Bleed: 7;
287
- readonly kQD_1: 8;
288
- readonly kQD_2: 9;
289
- readonly kCount: 10;
290
- };
291
- command: {
292
- readonly open: 0;
293
- readonly close: 1;
294
- };
295
- };
296
- };
297
- ControlPolicyCommands_SetManualPolicyPayload: {
298
- id: number;
299
- schema: import("typed-binary").ObjectSchema<{
300
- value: import("typed-binary").ByteSchema;
301
- }>;
302
- enums: {
303
- value: {
304
- readonly Disable: 0;
305
- readonly Enable: 1;
306
- };
307
- };
308
- };
309
202
  RegulatorCommands_SetEnabledPayload: {
310
203
  id: number;
311
204
  schema: import("typed-binary").ObjectSchema<{
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-03-22 14:17:44. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-19 10:51:03. 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,15 @@ 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 node_bldc_Id = {
64
- kFuel: 0,
65
- kOx: 1,
66
- kCount: 2,
67
- };
68
- export const BldcCommands_SetBldcCommand = {
69
- open: 0,
70
- close: 1,
71
- };
72
63
  export const Event = {
73
64
  Boot: 0,
74
65
  NextState: 1,
75
66
  PreviousState: 2,
76
67
  Timeout: 3,
77
68
  CalibrateRequest: 4,
78
- BurnwireCut: 5,
79
- Abort: 6,
80
- None: 7,
81
- Count: 8,
69
+ Abort: 5,
70
+ None: 6,
71
+ Count: 7,
82
72
  };
83
73
  export const StateId = {
84
74
  Safe: 0,
@@ -116,27 +106,6 @@ export const actuators_servo_StartPolicy = {
116
106
  kPreempt: 0,
117
107
  kNoInterrupt: 1,
118
108
  };
119
- export const node_solenoid_Id = {
120
- kFuelVent: 0,
121
- kOxVent: 1,
122
- kN2Fill: 2,
123
- kOxBleed: 3,
124
- kN2_200_Supply: 4,
125
- kN2_200_Bleed: 5,
126
- kN2_300_Supply: 6,
127
- kN2_300_Bleed: 7,
128
- kQD_1: 8,
129
- kQD_2: 9,
130
- kCount: 10,
131
- };
132
- export const SolenoidCommands_SetSolenoidCommand = {
133
- open: 0,
134
- close: 1,
135
- };
136
- export const ControlPolicyCommands_PolicyValue = {
137
- Disable: 0,
138
- Enable: 1,
139
- };
140
109
  export const node_regulator_Id = {
141
110
  kOxPrechill: 0,
142
111
  kCount: 1,
@@ -145,10 +114,6 @@ export const RegulatorCommands_RegulatorValue = {
145
114
  Disable: 0,
146
115
  Enable: 1,
147
116
  };
148
- export const BldcCommands_SetBldcPayload = bin.object({
149
- bldc_id: bin.u8, // node::bldc::Id
150
- command: bin.u32, // BldcCommands::SetBldcCommand
151
- });
152
117
  export const FsmCommands_RaiseEventPayload = bin.object({
153
118
  event: bin.u8, // Event
154
119
  current_state: bin.u8, // StateId
@@ -169,13 +134,6 @@ export const ServoCommands_SetServoPayload = bin.object({
169
134
  position_mode: bin.u8, // actuators::servo::PositionMode
170
135
  start_policy: bin.u8, // actuators::servo::StartPolicy
171
136
  });
172
- export const SolenoidCommands_SetSolenoidPayload = bin.object({
173
- solenoid_id: bin.u8, // node::solenoid::Id
174
- command: bin.u32, // SolenoidCommands::SetSolenoidCommand
175
- });
176
- export const ControlPolicyCommands_SetManualPolicyPayload = bin.object({
177
- value: bin.u8, // ControlPolicyCommands::PolicyValue
178
- });
179
137
  export const RegulatorCommands_SetEnabledPayload = bin.object({
180
138
  regulator_id: bin.u8, // node::regulator::Id
181
139
  value: bin.u8, // RegulatorCommands::RegulatorValue
@@ -191,14 +149,6 @@ export const RegulatorCommands_SetGainsPayload = bin.object({
191
149
  kd: bin.f32, // float
192
150
  });
193
151
  export const spec = {
194
- BldcCommands_SetBldcPayload: {
195
- id: 64,
196
- schema: BldcCommands_SetBldcPayload,
197
- enums: {
198
- bldc_id: node_bldc_Id,
199
- command: BldcCommands_SetBldcCommand,
200
- },
201
- },
202
152
  FsmCommands_RaiseEventPayload: {
203
153
  id: 32,
204
154
  schema: FsmCommands_RaiseEventPayload,
@@ -226,21 +176,6 @@ export const spec = {
226
176
  start_policy: actuators_servo_StartPolicy,
227
177
  },
228
178
  },
229
- SolenoidCommands_SetSolenoidPayload: {
230
- id: 80,
231
- schema: SolenoidCommands_SetSolenoidPayload,
232
- enums: {
233
- solenoid_id: node_solenoid_Id,
234
- command: SolenoidCommands_SetSolenoidCommand,
235
- },
236
- },
237
- ControlPolicyCommands_SetManualPolicyPayload: {
238
- id: 96,
239
- schema: ControlPolicyCommands_SetManualPolicyPayload,
240
- enums: {
241
- value: ControlPolicyCommands_PolicyValue,
242
- },
243
- },
244
179
  RegulatorCommands_SetEnabledPayload: {
245
180
  id: 112,
246
181
  schema: RegulatorCommands_SetEnabledPayload,
@@ -30,35 +30,6 @@ export declare const actuators_solenoid_Opening: {
30
30
  readonly kOpen: 2;
31
31
  };
32
32
  export type actuators_solenoid_Opening = (typeof actuators_solenoid_Opening)[keyof typeof actuators_solenoid_Opening];
33
- export declare const StateId: {
34
- readonly Safe: 0;
35
- readonly FuelFill: 1;
36
- readonly PostFuelFill: 2;
37
- readonly N2Fill: 3;
38
- readonly PostN2Fill: 4;
39
- readonly OxFill: 5;
40
- readonly PostOxFill: 6;
41
- readonly Pressurized: 7;
42
- readonly Armed: 8;
43
- readonly Burn: 9;
44
- readonly Shutdown: 10;
45
- readonly PostBurn: 11;
46
- readonly Depressurize: 12;
47
- readonly Calibrate: 13;
48
- };
49
- export type StateId = (typeof StateId)[keyof typeof StateId];
50
- export declare const Event: {
51
- readonly Boot: 0;
52
- readonly NextState: 1;
53
- readonly PreviousState: 2;
54
- readonly Timeout: 3;
55
- readonly CalibrateRequest: 4;
56
- readonly BurnwireCut: 5;
57
- readonly Abort: 6;
58
- readonly None: 7;
59
- readonly Count: 8;
60
- };
61
- export type Event = (typeof Event)[keyof typeof Event];
62
33
  export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
63
34
  commanded_angle_deg: import("typed-binary").Float32Schema;
64
35
  target_angle_deg: import("typed-binary").Float32Schema;
@@ -84,96 +55,15 @@ export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
84
55
  calibrated: import("typed-binary").ByteSchema;
85
56
  }>;
86
57
  export type BldcTelemetry = bin.Parsed<typeof BldcTelemetry>;
87
- export declare const sensors_pressure_PressureBatch: import("typed-binary").ObjectSchema<{
88
- t0_ms: import("typed-binary").Uint32Schema;
89
- dt_us: import("typed-binary").Uint16Schema;
90
- count: import("typed-binary").ByteSchema;
91
- seq: import("typed-binary").ByteSchema;
92
- overrun: import("typed-binary").BoolSchema;
93
- samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
94
- }>;
95
- export type sensors_pressure_PressureBatch = bin.Parsed<typeof sensors_pressure_PressureBatch>;
96
58
  export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").ObjectSchema<{
97
59
  power_state: import("typed-binary").ByteSchema;
98
60
  opening: import("typed-binary").ByteSchema;
99
61
  }>;
100
62
  export type actuators_solenoid_SolenoidStatus = bin.Parsed<typeof actuators_solenoid_SolenoidStatus>;
101
- export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
102
- message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
103
- }>;
104
- export type HeartBeatTelemetry = bin.Parsed<typeof HeartBeatTelemetry>;
105
- export declare const regulators_RegulatorStatus: import("typed-binary").ObjectSchema<{
106
- operator_enabled: import("typed-binary").BoolSchema;
107
- policy_enabled: import("typed-binary").BoolSchema;
108
- active: import("typed-binary").BoolSchema;
109
- setpoint: import("typed-binary").Float32Schema;
110
- kp: import("typed-binary").Float32Schema;
111
- ki: import("typed-binary").Float32Schema;
112
- kd: import("typed-binary").Float32Schema;
113
- integral: import("typed-binary").Float32Schema;
114
- previous_error: import("typed-binary").Float32Schema;
115
- last_measurement: import("typed-binary").Float32Schema;
116
- last_output: import("typed-binary").Float32Schema;
117
- last_servo_command_: import("typed-binary").Float32Schema;
118
- last_update_ms: import("typed-binary").Uint32Schema;
119
- }>;
120
- export type regulators_RegulatorStatus = bin.Parsed<typeof regulators_RegulatorStatus>;
121
- export declare const RegulatorStatusEntry: import("typed-binary").ObjectSchema<{
122
- id: import("typed-binary").ByteSchema;
123
- name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
124
- status: import("typed-binary").ObjectSchema<{
125
- operator_enabled: import("typed-binary").BoolSchema;
126
- policy_enabled: import("typed-binary").BoolSchema;
127
- active: import("typed-binary").BoolSchema;
128
- setpoint: import("typed-binary").Float32Schema;
129
- kp: import("typed-binary").Float32Schema;
130
- ki: import("typed-binary").Float32Schema;
131
- kd: import("typed-binary").Float32Schema;
132
- integral: import("typed-binary").Float32Schema;
133
- previous_error: import("typed-binary").Float32Schema;
134
- last_measurement: import("typed-binary").Float32Schema;
135
- last_output: import("typed-binary").Float32Schema;
136
- last_servo_command_: import("typed-binary").Float32Schema;
137
- last_update_ms: import("typed-binary").Uint32Schema;
138
- }>;
139
- }>;
140
- export type RegulatorStatusEntry = bin.Parsed<typeof RegulatorStatusEntry>;
141
- export declare const RegulatorStatusArrayPacket: import("typed-binary").ObjectSchema<{
142
- count: import("typed-binary").ByteSchema;
143
- timestamp_ms: import("typed-binary").Uint32Schema;
144
- entries: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
145
- id: import("typed-binary").ByteSchema;
146
- name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
147
- status: import("typed-binary").ObjectSchema<{
148
- operator_enabled: import("typed-binary").BoolSchema;
149
- policy_enabled: import("typed-binary").BoolSchema;
150
- active: import("typed-binary").BoolSchema;
151
- setpoint: import("typed-binary").Float32Schema;
152
- kp: import("typed-binary").Float32Schema;
153
- ki: import("typed-binary").Float32Schema;
154
- kd: import("typed-binary").Float32Schema;
155
- integral: import("typed-binary").Float32Schema;
156
- previous_error: import("typed-binary").Float32Schema;
157
- last_measurement: import("typed-binary").Float32Schema;
158
- last_output: import("typed-binary").Float32Schema;
159
- last_servo_command_: import("typed-binary").Float32Schema;
160
- last_update_ms: import("typed-binary").Uint32Schema;
161
- }>;
162
- }>>;
163
- }>;
164
- export type RegulatorStatusArrayPacket = bin.Parsed<typeof RegulatorStatusArrayPacket>;
165
- export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
166
- state_entry_time_ms: import("typed-binary").Uint32Schema;
167
- state_time_ms: import("typed-binary").Uint32Schema;
168
- current_state: import("typed-binary").ByteSchema;
169
- previous_state: import("typed-binary").ByteSchema;
170
- last_event: import("typed-binary").ByteSchema;
171
- }>;
172
- export type fsm_FsmStatus = bin.Parsed<typeof fsm_FsmStatus>;
173
63
  export declare const spec: {
174
- actuators_servo_ServoStatus: {
175
- port: number;
176
- schema: import("typed-binary").ObjectSchema<{
64
+ readonly actuators_servo_ServoStatus: {
65
+ readonly port: 5003;
66
+ readonly schema: import("typed-binary").ObjectSchema<{
177
67
  commanded_angle_deg: import("typed-binary").Float32Schema;
178
68
  target_angle_deg: import("typed-binary").Float32Schema;
179
69
  measured_angle_deg: import("typed-binary").Float32Schema;
@@ -181,13 +71,13 @@ export declare const spec: {
181
71
  mode: import("typed-binary").ByteSchema;
182
72
  power_state: import("typed-binary").ByteSchema;
183
73
  }>;
184
- enums: {
185
- mode: {
74
+ readonly enums: {
75
+ readonly mode: {
186
76
  readonly kUnknown: 0;
187
77
  readonly kPosition: 1;
188
78
  readonly kCalibrate: 2;
189
79
  };
190
- power_state: {
80
+ readonly power_state: {
191
81
  readonly kUnknown: 0;
192
82
  readonly kOff: 1;
193
83
  readonly kBooting: 2;
@@ -195,9 +85,9 @@ export declare const spec: {
195
85
  };
196
86
  };
197
87
  };
198
- BldcTelemetry: {
199
- port: number;
200
- schema: import("typed-binary").ObjectSchema<{
88
+ readonly BldcTelemetry: {
89
+ readonly port: 5000;
90
+ readonly schema: import("typed-binary").ObjectSchema<{
201
91
  valve_position: import("typed-binary").Float32Schema;
202
92
  motor_position: import("typed-binary").Float32Schema;
203
93
  timestamp: UInt64Schema;
@@ -212,127 +102,27 @@ export declare const spec: {
212
102
  position_raw: import("typed-binary").Float32Schema;
213
103
  calibrated: import("typed-binary").ByteSchema;
214
104
  }>;
215
- enums: {};
216
- };
217
- sensors_pressure_PressureBatch: {
218
- port: number;
219
- schema: import("typed-binary").ObjectSchema<{
220
- t0_ms: import("typed-binary").Uint32Schema;
221
- dt_us: import("typed-binary").Uint16Schema;
222
- count: import("typed-binary").ByteSchema;
223
- seq: import("typed-binary").ByteSchema;
224
- overrun: import("typed-binary").BoolSchema;
225
- samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
226
- }>;
227
- enums: {};
105
+ readonly enums: {};
228
106
  };
229
- actuators_solenoid_SolenoidStatus: {
230
- port: number;
231
- schema: import("typed-binary").ObjectSchema<{
107
+ readonly actuators_solenoid_SolenoidStatus: {
108
+ readonly port: 5004;
109
+ readonly schema: import("typed-binary").ObjectSchema<{
232
110
  power_state: import("typed-binary").ByteSchema;
233
111
  opening: import("typed-binary").ByteSchema;
234
112
  }>;
235
- enums: {
236
- power_state: {
113
+ readonly enums: {
114
+ readonly power_state: {
237
115
  readonly kUnknown: 0;
238
116
  readonly kOff: 1;
239
117
  readonly kOn: 2;
240
118
  };
241
- opening: {
119
+ readonly opening: {
242
120
  readonly kUnknown: 0;
243
121
  readonly kClosed: 1;
244
122
  readonly kOpen: 2;
245
123
  };
246
124
  };
247
125
  };
248
- HeartBeatTelemetry: {
249
- schema: import("typed-binary").ObjectSchema<{
250
- message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
251
- }>;
252
- enums: {};
253
- };
254
- RegulatorStatusArrayPacket: {
255
- port: number;
256
- schema: import("typed-binary").ObjectSchema<{
257
- count: import("typed-binary").ByteSchema;
258
- timestamp_ms: import("typed-binary").Uint32Schema;
259
- entries: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
260
- id: import("typed-binary").ByteSchema;
261
- name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
262
- status: import("typed-binary").ObjectSchema<{
263
- operator_enabled: import("typed-binary").BoolSchema;
264
- policy_enabled: import("typed-binary").BoolSchema;
265
- active: import("typed-binary").BoolSchema;
266
- setpoint: import("typed-binary").Float32Schema;
267
- kp: import("typed-binary").Float32Schema;
268
- ki: import("typed-binary").Float32Schema;
269
- kd: import("typed-binary").Float32Schema;
270
- integral: import("typed-binary").Float32Schema;
271
- previous_error: import("typed-binary").Float32Schema;
272
- last_measurement: import("typed-binary").Float32Schema;
273
- last_output: import("typed-binary").Float32Schema;
274
- last_servo_command_: import("typed-binary").Float32Schema;
275
- last_update_ms: import("typed-binary").Uint32Schema;
276
- }>;
277
- }>>;
278
- }>;
279
- enums: {};
280
- };
281
- fsm_FsmStatus: {
282
- port: number;
283
- schema: import("typed-binary").ObjectSchema<{
284
- state_entry_time_ms: import("typed-binary").Uint32Schema;
285
- state_time_ms: import("typed-binary").Uint32Schema;
286
- current_state: import("typed-binary").ByteSchema;
287
- previous_state: import("typed-binary").ByteSchema;
288
- last_event: import("typed-binary").ByteSchema;
289
- }>;
290
- enums: {
291
- current_state: {
292
- readonly Safe: 0;
293
- readonly FuelFill: 1;
294
- readonly PostFuelFill: 2;
295
- readonly N2Fill: 3;
296
- readonly PostN2Fill: 4;
297
- readonly OxFill: 5;
298
- readonly PostOxFill: 6;
299
- readonly Pressurized: 7;
300
- readonly Armed: 8;
301
- readonly Burn: 9;
302
- readonly Shutdown: 10;
303
- readonly PostBurn: 11;
304
- readonly Depressurize: 12;
305
- readonly Calibrate: 13;
306
- };
307
- previous_state: {
308
- readonly Safe: 0;
309
- readonly FuelFill: 1;
310
- readonly PostFuelFill: 2;
311
- readonly N2Fill: 3;
312
- readonly PostN2Fill: 4;
313
- readonly OxFill: 5;
314
- readonly PostOxFill: 6;
315
- readonly Pressurized: 7;
316
- readonly Armed: 8;
317
- readonly Burn: 9;
318
- readonly Shutdown: 10;
319
- readonly PostBurn: 11;
320
- readonly Depressurize: 12;
321
- readonly Calibrate: 13;
322
- };
323
- last_event: {
324
- readonly Boot: 0;
325
- readonly NextState: 1;
326
- readonly PreviousState: 2;
327
- readonly Timeout: 3;
328
- readonly CalibrateRequest: 4;
329
- readonly BurnwireCut: 5;
330
- readonly Abort: 6;
331
- readonly None: 7;
332
- readonly Count: 8;
333
- };
334
- };
335
- };
336
126
  };
337
127
  export default spec;
338
128
  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-22 14:17:53. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-19 10:00: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;
@@ -81,33 +81,6 @@ export const actuators_solenoid_Opening = {
81
81
  kClosed: 1,
82
82
  kOpen: 2,
83
83
  };
84
- export const StateId = {
85
- Safe: 0,
86
- FuelFill: 1,
87
- PostFuelFill: 2,
88
- N2Fill: 3,
89
- PostN2Fill: 4,
90
- OxFill: 5,
91
- PostOxFill: 6,
92
- Pressurized: 7,
93
- Armed: 8,
94
- Burn: 9,
95
- Shutdown: 10,
96
- PostBurn: 11,
97
- Depressurize: 12,
98
- Calibrate: 13,
99
- };
100
- export const Event = {
101
- Boot: 0,
102
- NextState: 1,
103
- PreviousState: 2,
104
- Timeout: 3,
105
- CalibrateRequest: 4,
106
- BurnwireCut: 5,
107
- Abort: 6,
108
- None: 7,
109
- Count: 8,
110
- };
111
84
  export const actuators_servo_ServoStatus = bin.object({
112
85
  commanded_angle_deg: bin.f32, // float
113
86
  target_angle_deg: bin.f32, // float
@@ -131,53 +104,10 @@ export const BldcTelemetry = bin.object({
131
104
  position_raw: bin.f32, // float
132
105
  calibrated: bin.u8, // unsigned char
133
106
  });
134
- export const sensors_pressure_PressureBatch = bin.object({
135
- t0_ms: bin.u32, // unsigned int
136
- dt_us: bin.u16, // unsigned short
137
- count: bin.u8, // unsigned char
138
- seq: bin.u8, // unsigned char
139
- overrun: bin.bool, // bool
140
- samples: bin.arrayOf(bin.i16, 10), // short[10]
141
- });
142
107
  export const actuators_solenoid_SolenoidStatus = bin.object({
143
108
  power_state: bin.u8, // actuators::solenoid::PowerState
144
109
  opening: bin.u8, // actuators::solenoid::Opening
145
110
  });
146
- export const HeartBeatTelemetry = bin.object({
147
- message: bin.arrayOf(bin.i8, 16), // char[16]
148
- });
149
- export const regulators_RegulatorStatus = bin.object({
150
- operator_enabled: bin.bool, // bool
151
- policy_enabled: bin.bool, // bool
152
- active: bin.bool, // bool
153
- setpoint: bin.f32, // float
154
- kp: bin.f32, // float
155
- ki: bin.f32, // float
156
- kd: bin.f32, // float
157
- integral: bin.f32, // float
158
- previous_error: bin.f32, // float
159
- last_measurement: bin.f32, // float
160
- last_output: bin.f32, // float
161
- last_servo_command_: bin.f32, // float
162
- last_update_ms: bin.u32, // unsigned int
163
- });
164
- export const RegulatorStatusEntry = bin.object({
165
- id: bin.u8, // node::regulator::Id
166
- name: bin.arrayOf(bin.i8, 24), // char[24]
167
- status: regulators_RegulatorStatus, // regulators::RegulatorStatus
168
- });
169
- export const RegulatorStatusArrayPacket = bin.object({
170
- count: bin.u8, // unsigned char
171
- timestamp_ms: bin.u32, // unsigned int
172
- entries: bin.arrayOf(RegulatorStatusEntry, 1), // RegulatorStatusEntry[1]
173
- });
174
- export const fsm_FsmStatus = bin.object({
175
- state_entry_time_ms: bin.u32, // unsigned int
176
- state_time_ms: bin.u32, // unsigned int
177
- current_state: bin.u8, // StateId
178
- previous_state: bin.u8, // StateId
179
- last_event: bin.u8, // Event
180
- });
181
111
  export const spec = {
182
112
  actuators_servo_ServoStatus: {
183
113
  port: 5003,
@@ -192,11 +122,6 @@ export const spec = {
192
122
  schema: BldcTelemetry,
193
123
  enums: {},
194
124
  },
195
- sensors_pressure_PressureBatch: {
196
- port: 5002,
197
- schema: sensors_pressure_PressureBatch,
198
- enums: {},
199
- },
200
125
  actuators_solenoid_SolenoidStatus: {
201
126
  port: 5004,
202
127
  schema: actuators_solenoid_SolenoidStatus,
@@ -205,23 +130,5 @@ export const spec = {
205
130
  opening: actuators_solenoid_Opening,
206
131
  },
207
132
  },
208
- HeartBeatTelemetry: {
209
- schema: HeartBeatTelemetry,
210
- enums: {},
211
- },
212
- RegulatorStatusArrayPacket: {
213
- port: 5005,
214
- schema: RegulatorStatusArrayPacket,
215
- enums: {},
216
- },
217
- fsm_FsmStatus: {
218
- port: 5001,
219
- schema: fsm_FsmStatus,
220
- enums: {
221
- current_state: StateId,
222
- previous_state: StateId,
223
- last_event: Event,
224
- },
225
- },
226
133
  };
227
134
  export default spec;
@@ -5,46 +5,58 @@ 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 AccelerationData: import("typed-binary").ObjectSchema<{
8
+ export declare const Telemetry_AccelData: import("typed-binary").ObjectSchema<{
9
9
  acc_x: import("typed-binary").Float32Schema;
10
10
  acc_y: import("typed-binary").Float32Schema;
11
11
  acc_z: import("typed-binary").Float32Schema;
12
12
  }>;
13
- export type AccelerationData = bin.Parsed<typeof AccelerationData>;
14
- export declare const GNSS_DATA: import("typed-binary").ObjectSchema<{
13
+ export type Telemetry_AccelData = bin.Parsed<typeof Telemetry_AccelData>;
14
+ export declare const Telemetry_GNSS_DATA: import("typed-binary").ObjectSchema<{
15
+ data_valid: import("typed-binary").BoolSchema;
15
16
  lat: Float64Schema;
16
17
  lon: Float64Schema;
18
+ hAcc: import("typed-binary").Uint32Schema;
19
+ vAcc: import("typed-binary").Uint32Schema;
17
20
  hMSL: Float64Schema;
18
21
  gSpeed: Float64Schema;
19
22
  headMot: Float64Schema;
23
+ velN: import("typed-binary").Int32Schema;
24
+ velE: import("typed-binary").Int32Schema;
25
+ velD: import("typed-binary").Int32Schema;
20
26
  numSV: import("typed-binary").ByteSchema;
21
27
  }>;
22
- export type GNSS_DATA = bin.Parsed<typeof GNSS_DATA>;
23
- export declare const Loadcell: import("typed-binary").ObjectSchema<{
24
- loadcell_value: import("typed-binary").Float32Schema;
28
+ export type Telemetry_GNSS_DATA = bin.Parsed<typeof Telemetry_GNSS_DATA>;
29
+ export declare const Telemetry_Loadcell: import("typed-binary").ObjectSchema<{
30
+ loadcell_value: Float64Schema;
25
31
  }>;
26
- export type Loadcell = bin.Parsed<typeof Loadcell>;
27
- export declare const SensorData: import("typed-binary").ObjectSchema<{
32
+ export type Telemetry_Loadcell = bin.Parsed<typeof Telemetry_Loadcell>;
33
+ export declare const Telemetry_SensorData: import("typed-binary").ObjectSchema<{
28
34
  iim_acc_data: import("typed-binary").ObjectSchema<{
29
35
  acc_x: import("typed-binary").Float32Schema;
30
36
  acc_y: import("typed-binary").Float32Schema;
31
37
  acc_z: import("typed-binary").Float32Schema;
32
38
  }>;
33
39
  gnss_data: import("typed-binary").ObjectSchema<{
40
+ data_valid: import("typed-binary").BoolSchema;
34
41
  lat: Float64Schema;
35
42
  lon: Float64Schema;
43
+ hAcc: import("typed-binary").Uint32Schema;
44
+ vAcc: import("typed-binary").Uint32Schema;
36
45
  hMSL: Float64Schema;
37
46
  gSpeed: Float64Schema;
38
47
  headMot: Float64Schema;
48
+ velN: import("typed-binary").Int32Schema;
49
+ velE: import("typed-binary").Int32Schema;
50
+ velD: import("typed-binary").Int32Schema;
39
51
  numSV: import("typed-binary").ByteSchema;
40
52
  }>;
41
53
  loadcell_data: import("typed-binary").ObjectSchema<{
42
- loadcell_value: import("typed-binary").Float32Schema;
54
+ loadcell_value: Float64Schema;
43
55
  }>;
44
56
  }>;
45
- export type SensorData = bin.Parsed<typeof SensorData>;
57
+ export type Telemetry_SensorData = bin.Parsed<typeof Telemetry_SensorData>;
46
58
  export declare const spec: {
47
- SensorData: {
59
+ Telemetry_SensorData: {
48
60
  port: number;
49
61
  schema: import("typed-binary").ObjectSchema<{
50
62
  iim_acc_data: import("typed-binary").ObjectSchema<{
@@ -53,15 +65,21 @@ export declare const spec: {
53
65
  acc_z: import("typed-binary").Float32Schema;
54
66
  }>;
55
67
  gnss_data: import("typed-binary").ObjectSchema<{
68
+ data_valid: import("typed-binary").BoolSchema;
56
69
  lat: Float64Schema;
57
70
  lon: Float64Schema;
71
+ hAcc: import("typed-binary").Uint32Schema;
72
+ vAcc: import("typed-binary").Uint32Schema;
58
73
  hMSL: Float64Schema;
59
74
  gSpeed: Float64Schema;
60
75
  headMot: Float64Schema;
76
+ velN: import("typed-binary").Int32Schema;
77
+ velE: import("typed-binary").Int32Schema;
78
+ velD: import("typed-binary").Int32Schema;
61
79
  numSV: import("typed-binary").ByteSchema;
62
80
  }>;
63
81
  loadcell_data: import("typed-binary").ObjectSchema<{
64
- loadcell_value: import("typed-binary").Float32Schema;
82
+ loadcell_value: Float64Schema;
65
83
  }>;
66
84
  }>;
67
85
  enums: {
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-03-19 15:15:45. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-22 14:51:40. 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,31 +60,37 @@ 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 AccelerationData = bin.object({
63
+ export const Telemetry_AccelData = bin.object({
64
64
  acc_x: bin.f32, // float
65
65
  acc_y: bin.f32, // float
66
66
  acc_z: bin.f32, // float
67
67
  });
68
- export const GNSS_DATA = bin.object({
68
+ export const Telemetry_GNSS_DATA = bin.object({
69
+ data_valid: bin.bool, // bool
69
70
  lat: f64, // double
70
71
  lon: f64, // double
72
+ hAcc: bin.u32, // unsigned int
73
+ vAcc: bin.u32, // unsigned int
71
74
  hMSL: f64, // double
72
75
  gSpeed: f64, // double
73
76
  headMot: f64, // double
77
+ velN: bin.i32, // int
78
+ velE: bin.i32, // int
79
+ velD: bin.i32, // int
74
80
  numSV: bin.u8, // unsigned char
75
81
  });
76
- export const Loadcell = bin.object({
77
- loadcell_value: bin.f32, // float
82
+ export const Telemetry_Loadcell = bin.object({
83
+ loadcell_value: f64, // double
78
84
  });
79
- export const SensorData = bin.object({
80
- iim_acc_data: AccelerationData, // AccelerationData
81
- gnss_data: GNSS_DATA, // GNSS_DATA
82
- loadcell_data: Loadcell, // Loadcell
85
+ export const Telemetry_SensorData = bin.object({
86
+ iim_acc_data: Telemetry_AccelData, // Telemetry::AccelData
87
+ gnss_data: Telemetry_GNSS_DATA, // Telemetry::GNSS_DATA
88
+ loadcell_data: Telemetry_Loadcell, // Telemetry::Loadcell
83
89
  });
84
90
  export const spec = {
85
- SensorData: {
91
+ Telemetry_SensorData: {
86
92
  port: 3001,
87
- schema: SensorData,
93
+ schema: Telemetry_SensorData,
88
94
  enums: {
89
95
  iim_acc_data: {},
90
96
  gnss_data: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",