fossekall-interface 0.1.122 → 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.
- package/dist/generated/ecu/commands.d.ts +120 -289
- package/dist/generated/ecu/commands.js +63 -114
- package/dist/generated/ecu/index.d.ts +0 -2
- package/dist/generated/ecu/index.js +0 -2
- package/dist/generated/ecu/telemetry.d.ts +208 -658
- package/dist/generated/ecu/telemetry.js +91 -287
- package/dist/generated/fc/telemetry.d.ts +40 -15
- package/dist/generated/fc/telemetry.js +20 -12
- package/package.json +1 -1
- package/dist/generated/ecu/commands.json +0 -569
- package/dist/generated/ecu/telemetry.json +0 -955
|
@@ -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-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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
kFuel: 0,
|
|
65
|
+
kOx: 1,
|
|
66
|
+
kCount: 2,
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
129
|
-
|
|
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
|
-
|
|
141
|
-
|
|
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:
|
|
203
|
+
id: 64,
|
|
236
204
|
schema: BldcCommands_SetBldcPayload,
|
|
237
205
|
enums: {
|
|
238
|
-
|
|
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:
|
|
218
|
+
id: 33,
|
|
277
219
|
schema: FsmCommands_AbortPayload,
|
|
278
220
|
enums: {},
|
|
279
221
|
},
|
|
280
222
|
FsmCommands_StatusPayload: {
|
|
281
|
-
id:
|
|
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,
|