fossekall-interface 0.1.121 → 0.1.123

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-04-22 13:16:27. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-23 21:33:27. Do not edit manually!
3
3
  // The current version of typed-binary does not support 64-bit primitives.
4
4
  // So for we'll implement our own schemas. :)
5
5
  const __littleEndian = true;
@@ -61,13 +61,13 @@ const u64 = new UInt64Schema();
61
61
  const i64 = new Int64Schema();
62
62
  const f64 = new Float64Schema();
63
63
  export const node_bldc_Id = {
64
- Fuel: 0,
65
- Ox: 1,
66
- Count: 2,
64
+ kFuel: 0,
65
+ kOx: 1,
66
+ kCount: 2,
67
67
  };
68
- export const BldcCommands_OpenClose = {
69
- Open: 0,
70
- Close: 1,
68
+ export const BldcCommands_SetBldcCommand = {
69
+ open: 0,
70
+ close: 1,
71
71
  };
72
72
  export const StateId = {
73
73
  Safe: 0,
@@ -75,23 +75,34 @@ export const StateId = {
75
75
  PostN2Fill: 2,
76
76
  OxFill: 3,
77
77
  PostOxFill: 4,
78
- QDDisconnect: 5,
79
- Pressurized: 6,
80
- Armed: 7,
81
- Burn: 8,
82
- Shutdown: 9,
83
- PostShutdown: 10,
84
- Purge: 11,
85
- Hold: 12,
78
+ Prechill: 5,
79
+ PostPrechill: 6,
80
+ QDDisconnect: 7,
81
+ Pressurized: 8,
82
+ Armed: 9,
83
+ Burn: 10,
84
+ Shutdown: 11,
85
+ PostShutdown: 12,
86
+ Calibrate: 13,
87
+ };
88
+ export const Event = {
89
+ Boot: 0,
90
+ NextState: 1,
91
+ PreviousState: 2,
92
+ Timeout: 3,
93
+ CalibrateRequest: 4,
94
+ BurnwireCut: 5,
95
+ Abort: 6,
96
+ None: 7,
97
+ Count: 8,
86
98
  };
87
99
  export const node_servo_Id = {
88
- MainFuel: 0,
89
- MainOx: 1,
90
- OxFill: 2,
91
- OxBoiloff: 3,
92
- OxSupply: 4,
93
- Purge: 5,
94
- Count: 6,
100
+ kMainFuel: 0,
101
+ kMainOx: 1,
102
+ kOxFill: 2,
103
+ kOxVent: 3,
104
+ kOxSupply: 4,
105
+ kCount: 5,
95
106
  };
96
107
  export const ServoCommands_OpenClose = {
97
108
  Open: 0,
@@ -106,15 +117,17 @@ export const actuators_servo_StartPolicy = {
106
117
  kNoInterrupt: 1,
107
118
  };
108
119
  export const node_solenoid_Id = {
109
- FuelVent: 0,
110
- OxVent: 1,
111
- N2Fill: 2,
112
- OxHoseBleed: 3,
113
- N2_300_Supply: 4,
114
- N2_300_Hose_Bleed: 5,
115
- QD_1: 6,
116
- QD_2: 7,
117
- Count: 8,
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,
118
131
  };
119
132
  export const SolenoidCommands_OpeningType = {
120
133
  Open: 0,
@@ -125,66 +138,29 @@ export const ControlPolicyCommands_PolicyValue = {
125
138
  Enable: 1,
126
139
  };
127
140
  export const node_regulator_Id = {
128
- OxBoiloff: 0,
129
- Count: 1,
141
+ kOxVent: 0,
142
+ kCount: 1,
130
143
  };
131
144
  export const RegulatorCommands_RegulatorValue = {
132
145
  Disable: 0,
133
146
  Enable: 1,
134
147
  };
135
- export const BldcCommands_OpenCloseBldcPayload = bin.object({
136
- id: bin.u8, // node::bldc::Id
137
- open_close: bin.u8, // BldcCommands::OpenClose
138
- });
139
148
  export const BldcCommands_SetBldcPayload = bin.object({
140
- id: bin.u8, // node::bldc::Id
141
- angle_deg: bin.f32, // float
142
- });
143
- export const BldcCommands_CalibratePayload = bin.object({
144
- id: bin.u8, // node::bldc::Id
145
- });
146
- export const actuators_bldc_PidGains = bin.object({
147
- p: f64, // double
148
- i: f64, // double
149
- d: f64, // double
150
- normalization_factor: f64, // double
151
- });
152
- export const SigmoidParameters = bin.object({
153
- a: f64, // double
154
- b: f64, // double
155
- });
156
- export const actuators_bldc_ControllerConfig = bin.object({
157
- pressurize_pid_gains: actuators_bldc_PidGains, // actuators::bldc::PidGains
158
- run_pid_gains: actuators_bldc_PidGains, // actuators::bldc::PidGains
159
- minimum_position: f64, // double
160
- maximum_position: f64, // double
161
- valve_encoder_offset: f64, // double
162
- can_watchdog_timeout: u64, // unsigned long long
163
- end_pressure_ref: f64, // double
164
- pressurizing_time: f64, // double
165
- gear_ratio: bin.f32, // float
166
- max_torque: f64, // double
167
- dvdt_nominal: f64, // double
168
- cv_max: f64, // double
169
- control_valve_curve: SigmoidParameters, // SigmoidParameters
170
- main_valve_curve: SigmoidParameters, // SigmoidParameters
171
- });
172
- export const BldcCommands_ConfigureBldcPayload = bin.object({
173
- id: bin.u8, // node::bldc::Id
174
- config: actuators_bldc_ControllerConfig, // actuators::bldc::ControllerConfig
149
+ bldc_id: bin.u8, // node::bldc::Id
150
+ command: bin.u32, // BldcCommands::SetBldcCommand
175
151
  });
176
152
  export const FsmCommands_NextStatePayload = bin.object({
177
153
  current_state: bin.u8, // StateId
178
154
  });
179
- export const FsmCommands_PreviousStatePayload = bin.object({
180
- current_state: bin.u8, // StateId
181
- });
182
155
  export const FsmCommands_AbortPayload = bin.object({
183
156
  reserved: bin.u8, // unsigned char
184
157
  });
185
158
  export const FsmCommands_StatusPayload = bin.object({
186
159
  reserved: bin.u8, // unsigned char
187
160
  });
161
+ export const FsmCommands_RaiseEventPayload = bin.object({
162
+ event: bin.u8, // Event
163
+ });
188
164
  export const ServoCommands_OpenCloseServoPayload = bin.object({
189
165
  servo_id: bin.u8, // node::servo::Id
190
166
  open_close: bin.u8, // ServoCommands::OpenClose
@@ -223,39 +199,12 @@ export const RegulatorCommands_SetGainsPayload = bin.object({
223
199
  kd: bin.f32, // float
224
200
  });
225
201
  export const spec = {
226
- BldcCommands_OpenCloseBldcPayload: {
227
- id: 64,
228
- schema: BldcCommands_OpenCloseBldcPayload,
229
- enums: {
230
- id: node_bldc_Id,
231
- open_close: BldcCommands_OpenClose,
232
- },
233
- },
234
202
  BldcCommands_SetBldcPayload: {
235
- id: 65,
203
+ id: 64,
236
204
  schema: BldcCommands_SetBldcPayload,
237
205
  enums: {
238
- id: node_bldc_Id,
239
- },
240
- },
241
- BldcCommands_CalibratePayload: {
242
- id: 66,
243
- schema: BldcCommands_CalibratePayload,
244
- enums: {
245
- id: node_bldc_Id,
246
- },
247
- },
248
- BldcCommands_ConfigureBldcPayload: {
249
- id: 67,
250
- schema: BldcCommands_ConfigureBldcPayload,
251
- enums: {
252
- id: node_bldc_Id,
253
- config: {
254
- pressurize_pid_gains: {},
255
- run_pid_gains: {},
256
- control_valve_curve: {},
257
- main_valve_curve: {},
258
- },
206
+ bldc_id: node_bldc_Id,
207
+ command: BldcCommands_SetBldcCommand,
259
208
  },
260
209
  },
261
210
  FsmCommands_NextStatePayload: {
@@ -265,23 +214,23 @@ export const spec = {
265
214
  current_state: StateId,
266
215
  },
267
216
  },
268
- FsmCommands_PreviousStatePayload: {
269
- id: 33,
270
- schema: FsmCommands_PreviousStatePayload,
271
- enums: {
272
- current_state: StateId,
273
- },
274
- },
275
217
  FsmCommands_AbortPayload: {
276
- id: 34,
218
+ id: 33,
277
219
  schema: FsmCommands_AbortPayload,
278
220
  enums: {},
279
221
  },
280
222
  FsmCommands_StatusPayload: {
281
- id: 35,
223
+ id: 34,
282
224
  schema: FsmCommands_StatusPayload,
283
225
  enums: {},
284
226
  },
227
+ FsmCommands_RaiseEventPayload: {
228
+ id: 35,
229
+ schema: FsmCommands_RaiseEventPayload,
230
+ enums: {
231
+ event: Event,
232
+ },
233
+ },
285
234
  ServoCommands_OpenCloseServoPayload: {
286
235
  id: 48,
287
236
  schema: ServoCommands_OpenCloseServoPayload,
@@ -1,4 +1,2 @@
1
- export { default as commandsJson } from "./commands.json";
2
1
  export * as commands from "./commands";
3
- export { default as telemetryJson } from "./telemetry.json";
4
2
  export * as telemetry from "./telemetry";
@@ -1,4 +1,2 @@
1
- export { default as commandsJson } from "./commands.json";
2
1
  export * as commands from "./commands";
3
- export { default as telemetryJson } from "./telemetry.json";
4
2
  export * as telemetry from "./telemetry";