fossekall-interface 0.1.20 → 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,15 +1,4 @@
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;
@@ -62,30 +51,6 @@ export declare const actuators_servo_StartPolicy: {
62
51
  readonly kNoInterrupt: 1;
63
52
  };
64
53
  export type actuators_servo_StartPolicy = (typeof actuators_servo_StartPolicy)[keyof typeof actuators_servo_StartPolicy];
65
- export declare const node_solenoid_Id: {
66
- readonly kFuelVent: 0;
67
- readonly kOxVent: 1;
68
- readonly kN2Fill: 2;
69
- readonly kOxBleed: 3;
70
- readonly kN2_200_Supply: 4;
71
- readonly kN2_200_Bleed: 5;
72
- readonly kN2_300_Supply: 6;
73
- readonly kN2_300_Bleed: 7;
74
- readonly kQD_1: 8;
75
- readonly kQD_2: 9;
76
- readonly kCount: 10;
77
- };
78
- export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
79
- export declare const SolenoidCommands_SetSolenoidCommand: {
80
- readonly open: 0;
81
- readonly close: 1;
82
- };
83
- export type SolenoidCommands_SetSolenoidCommand = (typeof SolenoidCommands_SetSolenoidCommand)[keyof typeof SolenoidCommands_SetSolenoidCommand];
84
- export declare const ControlPolicyCommands_PolicyValue: {
85
- readonly Disable: 0;
86
- readonly Enable: 1;
87
- };
88
- export type ControlPolicyCommands_PolicyValue = (typeof ControlPolicyCommands_PolicyValue)[keyof typeof ControlPolicyCommands_PolicyValue];
89
54
  export declare const node_regulator_Id: {
90
55
  readonly kOxPrechill: 0;
91
56
  readonly kCount: 1;
@@ -96,11 +61,6 @@ export declare const RegulatorCommands_RegulatorValue: {
96
61
  readonly Enable: 1;
97
62
  };
98
63
  export type RegulatorCommands_RegulatorValue = (typeof RegulatorCommands_RegulatorValue)[keyof typeof RegulatorCommands_RegulatorValue];
99
- export declare const BldcCommands_SetBldcPayload: import("typed-binary").ObjectSchema<{
100
- bldc_id: import("typed-binary").ByteSchema;
101
- command: import("typed-binary").Uint32Schema;
102
- }>;
103
- export type BldcCommands_SetBldcPayload = bin.Parsed<typeof BldcCommands_SetBldcPayload>;
104
64
  export declare const FsmCommands_RaiseEventPayload: import("typed-binary").ObjectSchema<{
105
65
  event: import("typed-binary").ByteSchema;
106
66
  current_state: import("typed-binary").ByteSchema;
@@ -124,15 +84,6 @@ export declare const ServoCommands_SetServoPayload: import("typed-binary").Objec
124
84
  start_policy: import("typed-binary").ByteSchema;
125
85
  }>;
126
86
  export type ServoCommands_SetServoPayload = bin.Parsed<typeof ServoCommands_SetServoPayload>;
127
- export declare const SolenoidCommands_SetSolenoidPayload: import("typed-binary").ObjectSchema<{
128
- solenoid_id: import("typed-binary").ByteSchema;
129
- command: import("typed-binary").Uint32Schema;
130
- }>;
131
- export type SolenoidCommands_SetSolenoidPayload = bin.Parsed<typeof SolenoidCommands_SetSolenoidPayload>;
132
- export declare const ControlPolicyCommands_SetManualPolicyPayload: import("typed-binary").ObjectSchema<{
133
- value: import("typed-binary").ByteSchema;
134
- }>;
135
- export type ControlPolicyCommands_SetManualPolicyPayload = bin.Parsed<typeof ControlPolicyCommands_SetManualPolicyPayload>;
136
87
  export declare const RegulatorCommands_SetEnabledPayload: import("typed-binary").ObjectSchema<{
137
88
  regulator_id: import("typed-binary").ByteSchema;
138
89
  value: import("typed-binary").ByteSchema;
@@ -151,24 +102,6 @@ export declare const RegulatorCommands_SetGainsPayload: import("typed-binary").O
151
102
  }>;
152
103
  export type RegulatorCommands_SetGainsPayload = bin.Parsed<typeof RegulatorCommands_SetGainsPayload>;
153
104
  export declare const spec: {
154
- BldcCommands_SetBldcPayload: {
155
- id: number;
156
- schema: import("typed-binary").ObjectSchema<{
157
- bldc_id: import("typed-binary").ByteSchema;
158
- command: import("typed-binary").Uint32Schema;
159
- }>;
160
- enums: {
161
- bldc_id: {
162
- readonly kFuel: 0;
163
- readonly kOx: 1;
164
- readonly kCount: 2;
165
- };
166
- command: {
167
- readonly open: 0;
168
- readonly close: 1;
169
- };
170
- };
171
- };
172
105
  FsmCommands_RaiseEventPayload: {
173
106
  id: number;
174
107
  schema: import("typed-binary").ObjectSchema<{
@@ -266,44 +199,6 @@ export declare const spec: {
266
199
  };
267
200
  };
268
201
  };
269
- SolenoidCommands_SetSolenoidPayload: {
270
- id: number;
271
- schema: import("typed-binary").ObjectSchema<{
272
- solenoid_id: import("typed-binary").ByteSchema;
273
- command: import("typed-binary").Uint32Schema;
274
- }>;
275
- enums: {
276
- solenoid_id: {
277
- readonly kFuelVent: 0;
278
- readonly kOxVent: 1;
279
- readonly kN2Fill: 2;
280
- readonly kOxBleed: 3;
281
- readonly kN2_200_Supply: 4;
282
- readonly kN2_200_Bleed: 5;
283
- readonly kN2_300_Supply: 6;
284
- readonly kN2_300_Bleed: 7;
285
- readonly kQD_1: 8;
286
- readonly kQD_2: 9;
287
- readonly kCount: 10;
288
- };
289
- command: {
290
- readonly open: 0;
291
- readonly close: 1;
292
- };
293
- };
294
- };
295
- ControlPolicyCommands_SetManualPolicyPayload: {
296
- id: number;
297
- schema: import("typed-binary").ObjectSchema<{
298
- value: import("typed-binary").ByteSchema;
299
- }>;
300
- enums: {
301
- value: {
302
- readonly Disable: 0;
303
- readonly Enable: 1;
304
- };
305
- };
306
- };
307
202
  RegulatorCommands_SetEnabledPayload: {
308
203
  id: number;
309
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 13:52:51. 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,15 +60,6 @@ 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,
@@ -115,27 +106,6 @@ export const actuators_servo_StartPolicy = {
115
106
  kPreempt: 0,
116
107
  kNoInterrupt: 1,
117
108
  };
118
- export const node_solenoid_Id = {
119
- kFuelVent: 0,
120
- kOxVent: 1,
121
- kN2Fill: 2,
122
- kOxBleed: 3,
123
- kN2_200_Supply: 4,
124
- kN2_200_Bleed: 5,
125
- kN2_300_Supply: 6,
126
- kN2_300_Bleed: 7,
127
- kQD_1: 8,
128
- kQD_2: 9,
129
- kCount: 10,
130
- };
131
- export const SolenoidCommands_SetSolenoidCommand = {
132
- open: 0,
133
- close: 1,
134
- };
135
- export const ControlPolicyCommands_PolicyValue = {
136
- Disable: 0,
137
- Enable: 1,
138
- };
139
109
  export const node_regulator_Id = {
140
110
  kOxPrechill: 0,
141
111
  kCount: 1,
@@ -144,10 +114,6 @@ export const RegulatorCommands_RegulatorValue = {
144
114
  Disable: 0,
145
115
  Enable: 1,
146
116
  };
147
- export const BldcCommands_SetBldcPayload = bin.object({
148
- bldc_id: bin.u8, // node::bldc::Id
149
- command: bin.u32, // BldcCommands::SetBldcCommand
150
- });
151
117
  export const FsmCommands_RaiseEventPayload = bin.object({
152
118
  event: bin.u8, // Event
153
119
  current_state: bin.u8, // StateId
@@ -168,13 +134,6 @@ export const ServoCommands_SetServoPayload = bin.object({
168
134
  position_mode: bin.u8, // actuators::servo::PositionMode
169
135
  start_policy: bin.u8, // actuators::servo::StartPolicy
170
136
  });
171
- export const SolenoidCommands_SetSolenoidPayload = bin.object({
172
- solenoid_id: bin.u8, // node::solenoid::Id
173
- command: bin.u32, // SolenoidCommands::SetSolenoidCommand
174
- });
175
- export const ControlPolicyCommands_SetManualPolicyPayload = bin.object({
176
- value: bin.u8, // ControlPolicyCommands::PolicyValue
177
- });
178
137
  export const RegulatorCommands_SetEnabledPayload = bin.object({
179
138
  regulator_id: bin.u8, // node::regulator::Id
180
139
  value: bin.u8, // RegulatorCommands::RegulatorValue
@@ -190,14 +149,6 @@ export const RegulatorCommands_SetGainsPayload = bin.object({
190
149
  kd: bin.f32, // float
191
150
  });
192
151
  export const spec = {
193
- BldcCommands_SetBldcPayload: {
194
- id: 64,
195
- schema: BldcCommands_SetBldcPayload,
196
- enums: {
197
- bldc_id: node_bldc_Id,
198
- command: BldcCommands_SetBldcCommand,
199
- },
200
- },
201
152
  FsmCommands_RaiseEventPayload: {
202
153
  id: 32,
203
154
  schema: FsmCommands_RaiseEventPayload,
@@ -225,21 +176,6 @@ export const spec = {
225
176
  start_policy: actuators_servo_StartPolicy,
226
177
  },
227
178
  },
228
- SolenoidCommands_SetSolenoidPayload: {
229
- id: 80,
230
- schema: SolenoidCommands_SetSolenoidPayload,
231
- enums: {
232
- solenoid_id: node_solenoid_Id,
233
- command: SolenoidCommands_SetSolenoidCommand,
234
- },
235
- },
236
- ControlPolicyCommands_SetManualPolicyPayload: {
237
- id: 96,
238
- schema: ControlPolicyCommands_SetManualPolicyPayload,
239
- enums: {
240
- value: ControlPolicyCommands_PolicyValue,
241
- },
242
- },
243
179
  RegulatorCommands_SetEnabledPayload: {
244
180
  id: 112,
245
181
  schema: RegulatorCommands_SetEnabledPayload,
@@ -30,34 +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 Abort: 5;
57
- readonly None: 6;
58
- readonly Count: 7;
59
- };
60
- export type Event = (typeof Event)[keyof typeof Event];
61
33
  export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
62
34
  commanded_angle_deg: import("typed-binary").Float32Schema;
63
35
  target_angle_deg: import("typed-binary").Float32Schema;
@@ -88,82 +60,10 @@ export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").O
88
60
  opening: import("typed-binary").ByteSchema;
89
61
  }>;
90
62
  export type actuators_solenoid_SolenoidStatus = bin.Parsed<typeof actuators_solenoid_SolenoidStatus>;
91
- export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
92
- message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
93
- }>;
94
- export type HeartBeatTelemetry = bin.Parsed<typeof HeartBeatTelemetry>;
95
- export declare const regulators_RegulatorStatus: import("typed-binary").ObjectSchema<{
96
- operator_enabled: import("typed-binary").BoolSchema;
97
- policy_enabled: import("typed-binary").BoolSchema;
98
- active: import("typed-binary").BoolSchema;
99
- setpoint: import("typed-binary").Float32Schema;
100
- kp: import("typed-binary").Float32Schema;
101
- ki: import("typed-binary").Float32Schema;
102
- kd: import("typed-binary").Float32Schema;
103
- integral: import("typed-binary").Float32Schema;
104
- previous_error: import("typed-binary").Float32Schema;
105
- last_measurement: import("typed-binary").Float32Schema;
106
- last_output: import("typed-binary").Float32Schema;
107
- last_servo_command_: import("typed-binary").Float32Schema;
108
- last_update_ms: import("typed-binary").Uint32Schema;
109
- }>;
110
- export type regulators_RegulatorStatus = bin.Parsed<typeof regulators_RegulatorStatus>;
111
- export declare const RegulatorStatusEntry: import("typed-binary").ObjectSchema<{
112
- id: import("typed-binary").ByteSchema;
113
- name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
114
- status: import("typed-binary").ObjectSchema<{
115
- operator_enabled: import("typed-binary").BoolSchema;
116
- policy_enabled: import("typed-binary").BoolSchema;
117
- active: import("typed-binary").BoolSchema;
118
- setpoint: import("typed-binary").Float32Schema;
119
- kp: import("typed-binary").Float32Schema;
120
- ki: import("typed-binary").Float32Schema;
121
- kd: import("typed-binary").Float32Schema;
122
- integral: import("typed-binary").Float32Schema;
123
- previous_error: import("typed-binary").Float32Schema;
124
- last_measurement: import("typed-binary").Float32Schema;
125
- last_output: import("typed-binary").Float32Schema;
126
- last_servo_command_: import("typed-binary").Float32Schema;
127
- last_update_ms: import("typed-binary").Uint32Schema;
128
- }>;
129
- }>;
130
- export type RegulatorStatusEntry = bin.Parsed<typeof RegulatorStatusEntry>;
131
- export declare const RegulatorStatusArrayPacket: import("typed-binary").ObjectSchema<{
132
- count: import("typed-binary").ByteSchema;
133
- timestamp_ms: import("typed-binary").Uint32Schema;
134
- entries: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
135
- id: import("typed-binary").ByteSchema;
136
- name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
137
- status: import("typed-binary").ObjectSchema<{
138
- operator_enabled: import("typed-binary").BoolSchema;
139
- policy_enabled: import("typed-binary").BoolSchema;
140
- active: import("typed-binary").BoolSchema;
141
- setpoint: import("typed-binary").Float32Schema;
142
- kp: import("typed-binary").Float32Schema;
143
- ki: import("typed-binary").Float32Schema;
144
- kd: import("typed-binary").Float32Schema;
145
- integral: import("typed-binary").Float32Schema;
146
- previous_error: import("typed-binary").Float32Schema;
147
- last_measurement: import("typed-binary").Float32Schema;
148
- last_output: import("typed-binary").Float32Schema;
149
- last_servo_command_: import("typed-binary").Float32Schema;
150
- last_update_ms: import("typed-binary").Uint32Schema;
151
- }>;
152
- }>>;
153
- }>;
154
- export type RegulatorStatusArrayPacket = bin.Parsed<typeof RegulatorStatusArrayPacket>;
155
- export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
156
- state_entry_time_ms: import("typed-binary").Uint32Schema;
157
- state_time_ms: import("typed-binary").Uint32Schema;
158
- current_state: import("typed-binary").ByteSchema;
159
- previous_state: import("typed-binary").ByteSchema;
160
- last_event: import("typed-binary").ByteSchema;
161
- }>;
162
- export type fsm_FsmStatus = bin.Parsed<typeof fsm_FsmStatus>;
163
63
  export declare const spec: {
164
- actuators_servo_ServoStatus: {
165
- port: number;
166
- schema: import("typed-binary").ObjectSchema<{
64
+ readonly actuators_servo_ServoStatus: {
65
+ readonly port: 5003;
66
+ readonly schema: import("typed-binary").ObjectSchema<{
167
67
  commanded_angle_deg: import("typed-binary").Float32Schema;
168
68
  target_angle_deg: import("typed-binary").Float32Schema;
169
69
  measured_angle_deg: import("typed-binary").Float32Schema;
@@ -171,13 +71,13 @@ export declare const spec: {
171
71
  mode: import("typed-binary").ByteSchema;
172
72
  power_state: import("typed-binary").ByteSchema;
173
73
  }>;
174
- enums: {
175
- mode: {
74
+ readonly enums: {
75
+ readonly mode: {
176
76
  readonly kUnknown: 0;
177
77
  readonly kPosition: 1;
178
78
  readonly kCalibrate: 2;
179
79
  };
180
- power_state: {
80
+ readonly power_state: {
181
81
  readonly kUnknown: 0;
182
82
  readonly kOff: 1;
183
83
  readonly kBooting: 2;
@@ -185,9 +85,9 @@ export declare const spec: {
185
85
  };
186
86
  };
187
87
  };
188
- BldcTelemetry: {
189
- port: number;
190
- schema: import("typed-binary").ObjectSchema<{
88
+ readonly BldcTelemetry: {
89
+ readonly port: 5000;
90
+ readonly schema: import("typed-binary").ObjectSchema<{
191
91
  valve_position: import("typed-binary").Float32Schema;
192
92
  motor_position: import("typed-binary").Float32Schema;
193
93
  timestamp: UInt64Schema;
@@ -202,114 +102,27 @@ export declare const spec: {
202
102
  position_raw: import("typed-binary").Float32Schema;
203
103
  calibrated: import("typed-binary").ByteSchema;
204
104
  }>;
205
- enums: {};
105
+ readonly enums: {};
206
106
  };
207
- actuators_solenoid_SolenoidStatus: {
208
- port: number;
209
- schema: import("typed-binary").ObjectSchema<{
107
+ readonly actuators_solenoid_SolenoidStatus: {
108
+ readonly port: 5004;
109
+ readonly schema: import("typed-binary").ObjectSchema<{
210
110
  power_state: import("typed-binary").ByteSchema;
211
111
  opening: import("typed-binary").ByteSchema;
212
112
  }>;
213
- enums: {
214
- power_state: {
113
+ readonly enums: {
114
+ readonly power_state: {
215
115
  readonly kUnknown: 0;
216
116
  readonly kOff: 1;
217
117
  readonly kOn: 2;
218
118
  };
219
- opening: {
119
+ readonly opening: {
220
120
  readonly kUnknown: 0;
221
121
  readonly kClosed: 1;
222
122
  readonly kOpen: 2;
223
123
  };
224
124
  };
225
125
  };
226
- HeartBeatTelemetry: {
227
- schema: import("typed-binary").ObjectSchema<{
228
- message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
229
- }>;
230
- enums: {};
231
- };
232
- RegulatorStatusArrayPacket: {
233
- port: number;
234
- schema: import("typed-binary").ObjectSchema<{
235
- count: import("typed-binary").ByteSchema;
236
- timestamp_ms: import("typed-binary").Uint32Schema;
237
- entries: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
238
- id: import("typed-binary").ByteSchema;
239
- name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
240
- status: import("typed-binary").ObjectSchema<{
241
- operator_enabled: import("typed-binary").BoolSchema;
242
- policy_enabled: import("typed-binary").BoolSchema;
243
- active: import("typed-binary").BoolSchema;
244
- setpoint: import("typed-binary").Float32Schema;
245
- kp: import("typed-binary").Float32Schema;
246
- ki: import("typed-binary").Float32Schema;
247
- kd: import("typed-binary").Float32Schema;
248
- integral: import("typed-binary").Float32Schema;
249
- previous_error: import("typed-binary").Float32Schema;
250
- last_measurement: import("typed-binary").Float32Schema;
251
- last_output: import("typed-binary").Float32Schema;
252
- last_servo_command_: import("typed-binary").Float32Schema;
253
- last_update_ms: import("typed-binary").Uint32Schema;
254
- }>;
255
- }>>;
256
- }>;
257
- enums: {};
258
- };
259
- fsm_FsmStatus: {
260
- port: number;
261
- schema: import("typed-binary").ObjectSchema<{
262
- state_entry_time_ms: import("typed-binary").Uint32Schema;
263
- state_time_ms: import("typed-binary").Uint32Schema;
264
- current_state: import("typed-binary").ByteSchema;
265
- previous_state: import("typed-binary").ByteSchema;
266
- last_event: import("typed-binary").ByteSchema;
267
- }>;
268
- enums: {
269
- current_state: {
270
- readonly Safe: 0;
271
- readonly FuelFill: 1;
272
- readonly PostFuelFill: 2;
273
- readonly N2Fill: 3;
274
- readonly PostN2Fill: 4;
275
- readonly OxFill: 5;
276
- readonly PostOxFill: 6;
277
- readonly Pressurized: 7;
278
- readonly Armed: 8;
279
- readonly Burn: 9;
280
- readonly Shutdown: 10;
281
- readonly PostBurn: 11;
282
- readonly Depressurize: 12;
283
- readonly Calibrate: 13;
284
- };
285
- previous_state: {
286
- readonly Safe: 0;
287
- readonly FuelFill: 1;
288
- readonly PostFuelFill: 2;
289
- readonly N2Fill: 3;
290
- readonly PostN2Fill: 4;
291
- readonly OxFill: 5;
292
- readonly PostOxFill: 6;
293
- readonly Pressurized: 7;
294
- readonly Armed: 8;
295
- readonly Burn: 9;
296
- readonly Shutdown: 10;
297
- readonly PostBurn: 11;
298
- readonly Depressurize: 12;
299
- readonly Calibrate: 13;
300
- };
301
- last_event: {
302
- readonly Boot: 0;
303
- readonly NextState: 1;
304
- readonly PreviousState: 2;
305
- readonly Timeout: 3;
306
- readonly CalibrateRequest: 4;
307
- readonly Abort: 5;
308
- readonly None: 6;
309
- readonly Count: 7;
310
- };
311
- };
312
- };
313
126
  };
314
127
  export default spec;
315
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:02:58. 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,32 +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
- Abort: 5,
107
- None: 6,
108
- Count: 7,
109
- };
110
84
  export const actuators_servo_ServoStatus = bin.object({
111
85
  commanded_angle_deg: bin.f32, // float
112
86
  target_angle_deg: bin.f32, // float
@@ -134,41 +108,6 @@ export const actuators_solenoid_SolenoidStatus = bin.object({
134
108
  power_state: bin.u8, // actuators::solenoid::PowerState
135
109
  opening: bin.u8, // actuators::solenoid::Opening
136
110
  });
137
- export const HeartBeatTelemetry = bin.object({
138
- message: bin.arrayOf(bin.i8, 16), // char[16]
139
- });
140
- export const regulators_RegulatorStatus = bin.object({
141
- operator_enabled: bin.bool, // bool
142
- policy_enabled: bin.bool, // bool
143
- active: bin.bool, // bool
144
- setpoint: bin.f32, // float
145
- kp: bin.f32, // float
146
- ki: bin.f32, // float
147
- kd: bin.f32, // float
148
- integral: bin.f32, // float
149
- previous_error: bin.f32, // float
150
- last_measurement: bin.f32, // float
151
- last_output: bin.f32, // float
152
- last_servo_command_: bin.f32, // float
153
- last_update_ms: bin.u32, // unsigned int
154
- });
155
- export const RegulatorStatusEntry = bin.object({
156
- id: bin.u8, // node::regulator::Id
157
- name: bin.arrayOf(bin.i8, 24), // char[24]
158
- status: regulators_RegulatorStatus, // regulators::RegulatorStatus
159
- });
160
- export const RegulatorStatusArrayPacket = bin.object({
161
- count: bin.u8, // unsigned char
162
- timestamp_ms: bin.u32, // unsigned int
163
- entries: bin.arrayOf(RegulatorStatusEntry, 1), // RegulatorStatusEntry[1]
164
- });
165
- export const fsm_FsmStatus = bin.object({
166
- state_entry_time_ms: bin.u32, // unsigned int
167
- state_time_ms: bin.u32, // unsigned int
168
- current_state: bin.u8, // StateId
169
- previous_state: bin.u8, // StateId
170
- last_event: bin.u8, // Event
171
- });
172
111
  export const spec = {
173
112
  actuators_servo_ServoStatus: {
174
113
  port: 5003,
@@ -191,23 +130,5 @@ export const spec = {
191
130
  opening: actuators_solenoid_Opening,
192
131
  },
193
132
  },
194
- HeartBeatTelemetry: {
195
- schema: HeartBeatTelemetry,
196
- enums: {},
197
- },
198
- RegulatorStatusArrayPacket: {
199
- port: 5005,
200
- schema: RegulatorStatusArrayPacket,
201
- enums: {},
202
- },
203
- fsm_FsmStatus: {
204
- port: 5001,
205
- schema: fsm_FsmStatus,
206
- enums: {
207
- current_state: StateId,
208
- previous_state: StateId,
209
- last_event: Event,
210
- },
211
- },
212
133
  };
213
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.20",
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",