fossekall-interface 0.1.27 → 0.1.28
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-03-26
|
|
2
|
+
// This file was generated by FRICC on 2026-03-26 14:32:02. 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;
|
|
@@ -5,31 +5,6 @@ declare class UInt64Schema extends Schema<bigint> {
|
|
|
5
5
|
write(output: ISerialOutput, value: bigint): void;
|
|
6
6
|
measure(_: bigint | typeof MaxValue, measurer?: IMeasurer): IMeasurer;
|
|
7
7
|
}
|
|
8
|
-
export declare const actuators_servo_ServoMode: {
|
|
9
|
-
readonly kUnknown: 0;
|
|
10
|
-
readonly kPosition: 1;
|
|
11
|
-
readonly kCalibrate: 2;
|
|
12
|
-
};
|
|
13
|
-
export type actuators_servo_ServoMode = (typeof actuators_servo_ServoMode)[keyof typeof actuators_servo_ServoMode];
|
|
14
|
-
export declare const actuators_servo_PowerState: {
|
|
15
|
-
readonly kUnknown: 0;
|
|
16
|
-
readonly kOff: 1;
|
|
17
|
-
readonly kBooting: 2;
|
|
18
|
-
readonly kOn: 3;
|
|
19
|
-
};
|
|
20
|
-
export type actuators_servo_PowerState = (typeof actuators_servo_PowerState)[keyof typeof actuators_servo_PowerState];
|
|
21
|
-
export declare const actuators_solenoid_PowerState: {
|
|
22
|
-
readonly kUnknown: 0;
|
|
23
|
-
readonly kOff: 1;
|
|
24
|
-
readonly kOn: 2;
|
|
25
|
-
};
|
|
26
|
-
export type actuators_solenoid_PowerState = (typeof actuators_solenoid_PowerState)[keyof typeof actuators_solenoid_PowerState];
|
|
27
|
-
export declare const actuators_solenoid_Opening: {
|
|
28
|
-
readonly kUnknown: 0;
|
|
29
|
-
readonly kClosed: 1;
|
|
30
|
-
readonly kOpen: 2;
|
|
31
|
-
};
|
|
32
|
-
export type actuators_solenoid_Opening = (typeof actuators_solenoid_Opening)[keyof typeof actuators_solenoid_Opening];
|
|
33
8
|
export declare const StateId: {
|
|
34
9
|
readonly Safe: 0;
|
|
35
10
|
readonly N2Fill: 1;
|
|
@@ -88,6 +63,19 @@ export declare const node_servo_Id: {
|
|
|
88
63
|
readonly Count: 5;
|
|
89
64
|
};
|
|
90
65
|
export type node_servo_Id = (typeof node_servo_Id)[keyof typeof node_servo_Id];
|
|
66
|
+
export declare const actuators_servo_ServoMode: {
|
|
67
|
+
readonly kUnknown: 0;
|
|
68
|
+
readonly kPosition: 1;
|
|
69
|
+
readonly kCalibrate: 2;
|
|
70
|
+
};
|
|
71
|
+
export type actuators_servo_ServoMode = (typeof actuators_servo_ServoMode)[keyof typeof actuators_servo_ServoMode];
|
|
72
|
+
export declare const actuators_servo_PowerState: {
|
|
73
|
+
readonly kUnknown: 0;
|
|
74
|
+
readonly kOff: 1;
|
|
75
|
+
readonly kBooting: 2;
|
|
76
|
+
readonly kOn: 3;
|
|
77
|
+
};
|
|
78
|
+
export type actuators_servo_PowerState = (typeof actuators_servo_PowerState)[keyof typeof actuators_servo_PowerState];
|
|
91
79
|
export declare const node_solenoid_Id: {
|
|
92
80
|
readonly FuelVent: 0;
|
|
93
81
|
readonly OxVent: 1;
|
|
@@ -100,20 +88,23 @@ export declare const node_solenoid_Id: {
|
|
|
100
88
|
readonly Count: 8;
|
|
101
89
|
};
|
|
102
90
|
export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
|
|
91
|
+
export declare const actuators_solenoid_PowerState: {
|
|
92
|
+
readonly kUnknown: 0;
|
|
93
|
+
readonly kOff: 1;
|
|
94
|
+
readonly kOn: 2;
|
|
95
|
+
};
|
|
96
|
+
export type actuators_solenoid_PowerState = (typeof actuators_solenoid_PowerState)[keyof typeof actuators_solenoid_PowerState];
|
|
97
|
+
export declare const actuators_solenoid_Opening: {
|
|
98
|
+
readonly kUnknown: 0;
|
|
99
|
+
readonly kClosed: 1;
|
|
100
|
+
readonly kOpen: 2;
|
|
101
|
+
};
|
|
102
|
+
export type actuators_solenoid_Opening = (typeof actuators_solenoid_Opening)[keyof typeof actuators_solenoid_Opening];
|
|
103
103
|
export declare const node_regulator_Id: {
|
|
104
104
|
readonly OxBoiloff: 0;
|
|
105
105
|
readonly Count: 1;
|
|
106
106
|
};
|
|
107
107
|
export type node_regulator_Id = (typeof node_regulator_Id)[keyof typeof node_regulator_Id];
|
|
108
|
-
export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
|
|
109
|
-
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
110
|
-
target_angle_deg: import("typed-binary").Float32Schema;
|
|
111
|
-
measured_angle_deg: import("typed-binary").Float32Schema;
|
|
112
|
-
current_ma: import("typed-binary").Float32Schema;
|
|
113
|
-
mode: import("typed-binary").ByteSchema;
|
|
114
|
-
power_state: import("typed-binary").ByteSchema;
|
|
115
|
-
}>;
|
|
116
|
-
export type actuators_servo_ServoStatus = bin.Parsed<typeof actuators_servo_ServoStatus>;
|
|
117
108
|
export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
|
|
118
109
|
valve_position: import("typed-binary").Float32Schema;
|
|
119
110
|
motor_position: import("typed-binary").Float32Schema;
|
|
@@ -130,11 +121,6 @@ export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
|
|
|
130
121
|
calibrated: import("typed-binary").ByteSchema;
|
|
131
122
|
}>;
|
|
132
123
|
export type BldcTelemetry = bin.Parsed<typeof BldcTelemetry>;
|
|
133
|
-
export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").ObjectSchema<{
|
|
134
|
-
power_state: import("typed-binary").ByteSchema;
|
|
135
|
-
opening: import("typed-binary").ByteSchema;
|
|
136
|
-
}>;
|
|
137
|
-
export type actuators_solenoid_SolenoidStatus = bin.Parsed<typeof actuators_solenoid_SolenoidStatus>;
|
|
138
124
|
export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
|
|
139
125
|
message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
140
126
|
}>;
|
|
@@ -181,6 +167,15 @@ export declare const PressureSensorPacket: import("typed-binary").ObjectSchema<{
|
|
|
181
167
|
}>;
|
|
182
168
|
}>;
|
|
183
169
|
export type PressureSensorPacket = bin.Parsed<typeof PressureSensorPacket>;
|
|
170
|
+
export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
|
|
171
|
+
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
172
|
+
target_angle_deg: import("typed-binary").Float32Schema;
|
|
173
|
+
measured_angle_deg: import("typed-binary").Float32Schema;
|
|
174
|
+
current_ma: import("typed-binary").Float32Schema;
|
|
175
|
+
mode: import("typed-binary").ByteSchema;
|
|
176
|
+
power_state: import("typed-binary").ByteSchema;
|
|
177
|
+
}>;
|
|
178
|
+
export type actuators_servo_ServoStatus = bin.Parsed<typeof actuators_servo_ServoStatus>;
|
|
184
179
|
export declare const ServoStatusPacket: import("typed-binary").ObjectSchema<{
|
|
185
180
|
id: import("typed-binary").ByteSchema;
|
|
186
181
|
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
@@ -194,6 +189,11 @@ export declare const ServoStatusPacket: import("typed-binary").ObjectSchema<{
|
|
|
194
189
|
}>;
|
|
195
190
|
}>;
|
|
196
191
|
export type ServoStatusPacket = bin.Parsed<typeof ServoStatusPacket>;
|
|
192
|
+
export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").ObjectSchema<{
|
|
193
|
+
power_state: import("typed-binary").ByteSchema;
|
|
194
|
+
opening: import("typed-binary").ByteSchema;
|
|
195
|
+
}>;
|
|
196
|
+
export type actuators_solenoid_SolenoidStatus = bin.Parsed<typeof actuators_solenoid_SolenoidStatus>;
|
|
197
197
|
export declare const SolenoidStatusPacket: import("typed-binary").ObjectSchema<{
|
|
198
198
|
id: import("typed-binary").ByteSchema;
|
|
199
199
|
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
@@ -240,30 +240,6 @@ export declare const RegulatorStatusPacket: import("typed-binary").ObjectSchema<
|
|
|
240
240
|
}>;
|
|
241
241
|
export type RegulatorStatusPacket = bin.Parsed<typeof RegulatorStatusPacket>;
|
|
242
242
|
export declare const spec: {
|
|
243
|
-
actuators_servo_ServoStatus: {
|
|
244
|
-
port: number;
|
|
245
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
246
|
-
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
247
|
-
target_angle_deg: import("typed-binary").Float32Schema;
|
|
248
|
-
measured_angle_deg: import("typed-binary").Float32Schema;
|
|
249
|
-
current_ma: import("typed-binary").Float32Schema;
|
|
250
|
-
mode: import("typed-binary").ByteSchema;
|
|
251
|
-
power_state: import("typed-binary").ByteSchema;
|
|
252
|
-
}>;
|
|
253
|
-
enums: {
|
|
254
|
-
mode: {
|
|
255
|
-
readonly kUnknown: 0;
|
|
256
|
-
readonly kPosition: 1;
|
|
257
|
-
readonly kCalibrate: 2;
|
|
258
|
-
};
|
|
259
|
-
power_state: {
|
|
260
|
-
readonly kUnknown: 0;
|
|
261
|
-
readonly kOff: 1;
|
|
262
|
-
readonly kBooting: 2;
|
|
263
|
-
readonly kOn: 3;
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
243
|
BldcTelemetry: {
|
|
268
244
|
port: number;
|
|
269
245
|
schema: import("typed-binary").ObjectSchema<{
|
|
@@ -283,25 +259,6 @@ export declare const spec: {
|
|
|
283
259
|
}>;
|
|
284
260
|
enums: {};
|
|
285
261
|
};
|
|
286
|
-
actuators_solenoid_SolenoidStatus: {
|
|
287
|
-
port: number;
|
|
288
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
289
|
-
power_state: import("typed-binary").ByteSchema;
|
|
290
|
-
opening: import("typed-binary").ByteSchema;
|
|
291
|
-
}>;
|
|
292
|
-
enums: {
|
|
293
|
-
power_state: {
|
|
294
|
-
readonly kUnknown: 0;
|
|
295
|
-
readonly kOff: 1;
|
|
296
|
-
readonly kOn: 2;
|
|
297
|
-
};
|
|
298
|
-
opening: {
|
|
299
|
-
readonly kUnknown: 0;
|
|
300
|
-
readonly kClosed: 1;
|
|
301
|
-
readonly kOpen: 2;
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
};
|
|
305
262
|
HeartBeatTelemetry: {
|
|
306
263
|
port: number;
|
|
307
264
|
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-26
|
|
2
|
+
// This file was generated by FRICC on 2026-03-26 14:31:59. 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,27 +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 actuators_servo_ServoMode = {
|
|
64
|
-
kUnknown: 0,
|
|
65
|
-
kPosition: 1,
|
|
66
|
-
kCalibrate: 2,
|
|
67
|
-
};
|
|
68
|
-
export const actuators_servo_PowerState = {
|
|
69
|
-
kUnknown: 0,
|
|
70
|
-
kOff: 1,
|
|
71
|
-
kBooting: 2,
|
|
72
|
-
kOn: 3,
|
|
73
|
-
};
|
|
74
|
-
export const actuators_solenoid_PowerState = {
|
|
75
|
-
kUnknown: 0,
|
|
76
|
-
kOff: 1,
|
|
77
|
-
kOn: 2,
|
|
78
|
-
};
|
|
79
|
-
export const actuators_solenoid_Opening = {
|
|
80
|
-
kUnknown: 0,
|
|
81
|
-
kClosed: 1,
|
|
82
|
-
kOpen: 2,
|
|
83
|
-
};
|
|
84
63
|
export const StateId = {
|
|
85
64
|
Safe: 0,
|
|
86
65
|
N2Fill: 1,
|
|
@@ -134,6 +113,17 @@ export const node_servo_Id = {
|
|
|
134
113
|
OxSupply: 4,
|
|
135
114
|
Count: 5,
|
|
136
115
|
};
|
|
116
|
+
export const actuators_servo_ServoMode = {
|
|
117
|
+
kUnknown: 0,
|
|
118
|
+
kPosition: 1,
|
|
119
|
+
kCalibrate: 2,
|
|
120
|
+
};
|
|
121
|
+
export const actuators_servo_PowerState = {
|
|
122
|
+
kUnknown: 0,
|
|
123
|
+
kOff: 1,
|
|
124
|
+
kBooting: 2,
|
|
125
|
+
kOn: 3,
|
|
126
|
+
};
|
|
137
127
|
export const node_solenoid_Id = {
|
|
138
128
|
FuelVent: 0,
|
|
139
129
|
OxVent: 1,
|
|
@@ -145,18 +135,20 @@ export const node_solenoid_Id = {
|
|
|
145
135
|
QD_2: 7,
|
|
146
136
|
Count: 8,
|
|
147
137
|
};
|
|
138
|
+
export const actuators_solenoid_PowerState = {
|
|
139
|
+
kUnknown: 0,
|
|
140
|
+
kOff: 1,
|
|
141
|
+
kOn: 2,
|
|
142
|
+
};
|
|
143
|
+
export const actuators_solenoid_Opening = {
|
|
144
|
+
kUnknown: 0,
|
|
145
|
+
kClosed: 1,
|
|
146
|
+
kOpen: 2,
|
|
147
|
+
};
|
|
148
148
|
export const node_regulator_Id = {
|
|
149
149
|
OxBoiloff: 0,
|
|
150
150
|
Count: 1,
|
|
151
151
|
};
|
|
152
|
-
export const actuators_servo_ServoStatus = bin.object({
|
|
153
|
-
commanded_angle_deg: bin.f32, // float
|
|
154
|
-
target_angle_deg: bin.f32, // float
|
|
155
|
-
measured_angle_deg: bin.f32, // float
|
|
156
|
-
current_ma: bin.f32, // float
|
|
157
|
-
mode: bin.u8, // actuators::servo::ServoMode
|
|
158
|
-
power_state: bin.u8, // actuators::servo::PowerState
|
|
159
|
-
});
|
|
160
152
|
export const BldcTelemetry = bin.object({
|
|
161
153
|
valve_position: bin.f32, // float
|
|
162
154
|
motor_position: bin.f32, // float
|
|
@@ -172,10 +164,6 @@ export const BldcTelemetry = bin.object({
|
|
|
172
164
|
position_raw: bin.f32, // float
|
|
173
165
|
calibrated: bin.u8, // unsigned char
|
|
174
166
|
});
|
|
175
|
-
export const actuators_solenoid_SolenoidStatus = bin.object({
|
|
176
|
-
power_state: bin.u8, // actuators::solenoid::PowerState
|
|
177
|
-
opening: bin.u8, // actuators::solenoid::Opening
|
|
178
|
-
});
|
|
179
167
|
export const HeartBeatTelemetry = bin.object({
|
|
180
168
|
message: bin.arrayOf(bin.i8, 16), // char[16]
|
|
181
169
|
});
|
|
@@ -203,11 +191,23 @@ export const PressureSensorPacket = bin.object({
|
|
|
203
191
|
sensor_id: bin.u8, // node::pressure_sensor::Id
|
|
204
192
|
data: sensors_pressure_PressureBatch, // sensors::pressure::PressureBatch
|
|
205
193
|
});
|
|
194
|
+
export const actuators_servo_ServoStatus = bin.object({
|
|
195
|
+
commanded_angle_deg: bin.f32, // float
|
|
196
|
+
target_angle_deg: bin.f32, // float
|
|
197
|
+
measured_angle_deg: bin.f32, // float
|
|
198
|
+
current_ma: bin.f32, // float
|
|
199
|
+
mode: bin.u8, // actuators::servo::ServoMode
|
|
200
|
+
power_state: bin.u8, // actuators::servo::PowerState
|
|
201
|
+
});
|
|
206
202
|
export const ServoStatusPacket = bin.object({
|
|
207
203
|
id: bin.u8, // node::servo::Id
|
|
208
204
|
timestamp_ms: bin.u32, // unsigned int
|
|
209
205
|
status: actuators_servo_ServoStatus, // actuators::servo::ServoStatus
|
|
210
206
|
});
|
|
207
|
+
export const actuators_solenoid_SolenoidStatus = bin.object({
|
|
208
|
+
power_state: bin.u8, // actuators::solenoid::PowerState
|
|
209
|
+
opening: bin.u8, // actuators::solenoid::Opening
|
|
210
|
+
});
|
|
211
211
|
export const SolenoidStatusPacket = bin.object({
|
|
212
212
|
id: bin.u8, // node::solenoid::Id
|
|
213
213
|
timestamp_ms: bin.u32, // unsigned int
|
|
@@ -234,27 +234,11 @@ export const RegulatorStatusPacket = bin.object({
|
|
|
234
234
|
status: regulators_RegulatorStatus, // regulators::RegulatorStatus
|
|
235
235
|
});
|
|
236
236
|
export const spec = {
|
|
237
|
-
actuators_servo_ServoStatus: {
|
|
238
|
-
port: 5003,
|
|
239
|
-
schema: actuators_servo_ServoStatus,
|
|
240
|
-
enums: {
|
|
241
|
-
mode: actuators_servo_ServoMode,
|
|
242
|
-
power_state: actuators_servo_PowerState,
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
237
|
BldcTelemetry: {
|
|
246
238
|
port: 5000,
|
|
247
239
|
schema: BldcTelemetry,
|
|
248
240
|
enums: {},
|
|
249
241
|
},
|
|
250
|
-
actuators_solenoid_SolenoidStatus: {
|
|
251
|
-
port: 5004,
|
|
252
|
-
schema: actuators_solenoid_SolenoidStatus,
|
|
253
|
-
enums: {
|
|
254
|
-
power_state: actuators_solenoid_PowerState,
|
|
255
|
-
opening: actuators_solenoid_Opening,
|
|
256
|
-
},
|
|
257
|
-
},
|
|
258
242
|
HeartBeatTelemetry: {
|
|
259
243
|
port: 57005,
|
|
260
244
|
schema: HeartBeatTelemetry,
|