fossekall-interface 0.1.124 → 0.1.125
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.
- package/dist/generated/ecu/commands.d.ts +289 -120
- package/dist/generated/ecu/commands.js +114 -63
- package/dist/generated/ecu/commands.json +569 -0
- package/dist/generated/ecu/index.d.ts +2 -0
- package/dist/generated/ecu/index.js +2 -0
- package/dist/generated/ecu/telemetry.d.ts +640 -211
- package/dist/generated/ecu/telemetry.js +284 -95
- package/dist/generated/ecu/telemetry.json +913 -0
- package/dist/generated/fc/telemetry.d.ts +15 -40
- package/dist/generated/fc/telemetry.js +12 -20
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-
|
|
2
|
+
// This file was generated by FRICC on 2026-06-10 10:38:22. 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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
Fuel: 0,
|
|
65
|
+
Ox: 1,
|
|
66
|
+
Count: 2,
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
export const BldcCommands_OpenClose = {
|
|
69
|
+
Open: 0,
|
|
70
|
+
Close: 1,
|
|
71
71
|
};
|
|
72
72
|
export const StateId = {
|
|
73
73
|
Safe: 0,
|
|
@@ -75,34 +75,23 @@ export const StateId = {
|
|
|
75
75
|
PostN2Fill: 2,
|
|
76
76
|
OxFill: 3,
|
|
77
77
|
PostOxFill: 4,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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,
|
|
78
|
+
QDDisconnect: 5,
|
|
79
|
+
Pressurized: 6,
|
|
80
|
+
Armed: 7,
|
|
81
|
+
Burn: 8,
|
|
82
|
+
Shutdown: 9,
|
|
83
|
+
PostShutdown: 10,
|
|
84
|
+
Purge: 11,
|
|
85
|
+
Hold: 12,
|
|
98
86
|
};
|
|
99
87
|
export const node_servo_Id = {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
88
|
+
MainFuel: 0,
|
|
89
|
+
MainOx: 1,
|
|
90
|
+
OxFill: 2,
|
|
91
|
+
OxBoiloff: 3,
|
|
92
|
+
OxSupply: 4,
|
|
93
|
+
Purge: 5,
|
|
94
|
+
Count: 6,
|
|
106
95
|
};
|
|
107
96
|
export const ServoCommands_OpenClose = {
|
|
108
97
|
Open: 0,
|
|
@@ -117,17 +106,15 @@ export const actuators_servo_StartPolicy = {
|
|
|
117
106
|
kNoInterrupt: 1,
|
|
118
107
|
};
|
|
119
108
|
export const node_solenoid_Id = {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
kQD_2: 9,
|
|
130
|
-
kCount: 10,
|
|
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,
|
|
131
118
|
};
|
|
132
119
|
export const SolenoidCommands_OpeningType = {
|
|
133
120
|
Open: 0,
|
|
@@ -138,29 +125,66 @@ export const ControlPolicyCommands_PolicyValue = {
|
|
|
138
125
|
Enable: 1,
|
|
139
126
|
};
|
|
140
127
|
export const node_regulator_Id = {
|
|
141
|
-
|
|
142
|
-
|
|
128
|
+
OxBoiloff: 0,
|
|
129
|
+
Count: 1,
|
|
143
130
|
};
|
|
144
131
|
export const RegulatorCommands_RegulatorValue = {
|
|
145
132
|
Disable: 0,
|
|
146
133
|
Enable: 1,
|
|
147
134
|
};
|
|
135
|
+
export const BldcCommands_OpenCloseBldcPayload = bin.object({
|
|
136
|
+
id: bin.u8, // node::bldc::Id
|
|
137
|
+
open_close: bin.u8, // BldcCommands::OpenClose
|
|
138
|
+
});
|
|
148
139
|
export const BldcCommands_SetBldcPayload = bin.object({
|
|
149
|
-
|
|
150
|
-
|
|
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
|
|
151
175
|
});
|
|
152
176
|
export const FsmCommands_NextStatePayload = bin.object({
|
|
153
177
|
current_state: bin.u8, // StateId
|
|
154
178
|
});
|
|
179
|
+
export const FsmCommands_PreviousStatePayload = bin.object({
|
|
180
|
+
current_state: bin.u8, // StateId
|
|
181
|
+
});
|
|
155
182
|
export const FsmCommands_AbortPayload = bin.object({
|
|
156
183
|
reserved: bin.u8, // unsigned char
|
|
157
184
|
});
|
|
158
185
|
export const FsmCommands_StatusPayload = bin.object({
|
|
159
186
|
reserved: bin.u8, // unsigned char
|
|
160
187
|
});
|
|
161
|
-
export const FsmCommands_RaiseEventPayload = bin.object({
|
|
162
|
-
event: bin.u8, // Event
|
|
163
|
-
});
|
|
164
188
|
export const ServoCommands_OpenCloseServoPayload = bin.object({
|
|
165
189
|
servo_id: bin.u8, // node::servo::Id
|
|
166
190
|
open_close: bin.u8, // ServoCommands::OpenClose
|
|
@@ -199,12 +223,39 @@ export const RegulatorCommands_SetGainsPayload = bin.object({
|
|
|
199
223
|
kd: bin.f32, // float
|
|
200
224
|
});
|
|
201
225
|
export const spec = {
|
|
202
|
-
|
|
226
|
+
BldcCommands_OpenCloseBldcPayload: {
|
|
203
227
|
id: 64,
|
|
228
|
+
schema: BldcCommands_OpenCloseBldcPayload,
|
|
229
|
+
enums: {
|
|
230
|
+
id: node_bldc_Id,
|
|
231
|
+
open_close: BldcCommands_OpenClose,
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
BldcCommands_SetBldcPayload: {
|
|
235
|
+
id: 65,
|
|
204
236
|
schema: BldcCommands_SetBldcPayload,
|
|
205
237
|
enums: {
|
|
206
|
-
|
|
207
|
-
|
|
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
|
+
},
|
|
208
259
|
},
|
|
209
260
|
},
|
|
210
261
|
FsmCommands_NextStatePayload: {
|
|
@@ -214,23 +265,23 @@ export const spec = {
|
|
|
214
265
|
current_state: StateId,
|
|
215
266
|
},
|
|
216
267
|
},
|
|
217
|
-
|
|
268
|
+
FsmCommands_PreviousStatePayload: {
|
|
218
269
|
id: 33,
|
|
270
|
+
schema: FsmCommands_PreviousStatePayload,
|
|
271
|
+
enums: {
|
|
272
|
+
current_state: StateId,
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
FsmCommands_AbortPayload: {
|
|
276
|
+
id: 34,
|
|
219
277
|
schema: FsmCommands_AbortPayload,
|
|
220
278
|
enums: {},
|
|
221
279
|
},
|
|
222
280
|
FsmCommands_StatusPayload: {
|
|
223
|
-
id:
|
|
281
|
+
id: 35,
|
|
224
282
|
schema: FsmCommands_StatusPayload,
|
|
225
283
|
enums: {},
|
|
226
284
|
},
|
|
227
|
-
FsmCommands_RaiseEventPayload: {
|
|
228
|
-
id: 35,
|
|
229
|
-
schema: FsmCommands_RaiseEventPayload,
|
|
230
|
-
enums: {
|
|
231
|
-
event: Event,
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
285
|
ServoCommands_OpenCloseServoPayload: {
|
|
235
286
|
id: 48,
|
|
236
287
|
schema: ServoCommands_OpenCloseServoPayload,
|