fossekall-interface 0.1.21 → 0.1.23
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,25 +1,13 @@
|
|
|
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;
|
|
16
5
|
readonly PreviousState: 2;
|
|
17
6
|
readonly Timeout: 3;
|
|
18
7
|
readonly CalibrateRequest: 4;
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
22
|
-
readonly Count: 8;
|
|
8
|
+
readonly Abort: 5;
|
|
9
|
+
readonly None: 6;
|
|
10
|
+
readonly Count: 7;
|
|
23
11
|
};
|
|
24
12
|
export type Event = (typeof Event)[keyof typeof Event];
|
|
25
13
|
export declare const StateId: {
|
|
@@ -63,30 +51,6 @@ export declare const actuators_servo_StartPolicy: {
|
|
|
63
51
|
readonly kNoInterrupt: 1;
|
|
64
52
|
};
|
|
65
53
|
export type actuators_servo_StartPolicy = (typeof actuators_servo_StartPolicy)[keyof typeof actuators_servo_StartPolicy];
|
|
66
|
-
export declare const node_solenoid_Id: {
|
|
67
|
-
readonly kFuelVent: 0;
|
|
68
|
-
readonly kOxVent: 1;
|
|
69
|
-
readonly kN2Fill: 2;
|
|
70
|
-
readonly kOxBleed: 3;
|
|
71
|
-
readonly kN2_200_Supply: 4;
|
|
72
|
-
readonly kN2_200_Bleed: 5;
|
|
73
|
-
readonly kN2_300_Supply: 6;
|
|
74
|
-
readonly kN2_300_Bleed: 7;
|
|
75
|
-
readonly kQD_1: 8;
|
|
76
|
-
readonly kQD_2: 9;
|
|
77
|
-
readonly kCount: 10;
|
|
78
|
-
};
|
|
79
|
-
export type node_solenoid_Id = (typeof node_solenoid_Id)[keyof typeof node_solenoid_Id];
|
|
80
|
-
export declare const SolenoidCommands_SetSolenoidCommand: {
|
|
81
|
-
readonly open: 0;
|
|
82
|
-
readonly close: 1;
|
|
83
|
-
};
|
|
84
|
-
export type SolenoidCommands_SetSolenoidCommand = (typeof SolenoidCommands_SetSolenoidCommand)[keyof typeof SolenoidCommands_SetSolenoidCommand];
|
|
85
|
-
export declare const ControlPolicyCommands_PolicyValue: {
|
|
86
|
-
readonly Disable: 0;
|
|
87
|
-
readonly Enable: 1;
|
|
88
|
-
};
|
|
89
|
-
export type ControlPolicyCommands_PolicyValue = (typeof ControlPolicyCommands_PolicyValue)[keyof typeof ControlPolicyCommands_PolicyValue];
|
|
90
54
|
export declare const node_regulator_Id: {
|
|
91
55
|
readonly kOxPrechill: 0;
|
|
92
56
|
readonly kCount: 1;
|
|
@@ -97,11 +61,6 @@ export declare const RegulatorCommands_RegulatorValue: {
|
|
|
97
61
|
readonly Enable: 1;
|
|
98
62
|
};
|
|
99
63
|
export type RegulatorCommands_RegulatorValue = (typeof RegulatorCommands_RegulatorValue)[keyof typeof RegulatorCommands_RegulatorValue];
|
|
100
|
-
export declare const BldcCommands_SetBldcPayload: import("typed-binary").ObjectSchema<{
|
|
101
|
-
bldc_id: import("typed-binary").ByteSchema;
|
|
102
|
-
command: import("typed-binary").Uint32Schema;
|
|
103
|
-
}>;
|
|
104
|
-
export type BldcCommands_SetBldcPayload = bin.Parsed<typeof BldcCommands_SetBldcPayload>;
|
|
105
64
|
export declare const FsmCommands_RaiseEventPayload: import("typed-binary").ObjectSchema<{
|
|
106
65
|
event: import("typed-binary").ByteSchema;
|
|
107
66
|
current_state: import("typed-binary").ByteSchema;
|
|
@@ -125,15 +84,6 @@ export declare const ServoCommands_SetServoPayload: import("typed-binary").Objec
|
|
|
125
84
|
start_policy: import("typed-binary").ByteSchema;
|
|
126
85
|
}>;
|
|
127
86
|
export type ServoCommands_SetServoPayload = bin.Parsed<typeof ServoCommands_SetServoPayload>;
|
|
128
|
-
export declare const SolenoidCommands_SetSolenoidPayload: import("typed-binary").ObjectSchema<{
|
|
129
|
-
solenoid_id: import("typed-binary").ByteSchema;
|
|
130
|
-
command: import("typed-binary").Uint32Schema;
|
|
131
|
-
}>;
|
|
132
|
-
export type SolenoidCommands_SetSolenoidPayload = bin.Parsed<typeof SolenoidCommands_SetSolenoidPayload>;
|
|
133
|
-
export declare const ControlPolicyCommands_SetManualPolicyPayload: import("typed-binary").ObjectSchema<{
|
|
134
|
-
value: import("typed-binary").ByteSchema;
|
|
135
|
-
}>;
|
|
136
|
-
export type ControlPolicyCommands_SetManualPolicyPayload = bin.Parsed<typeof ControlPolicyCommands_SetManualPolicyPayload>;
|
|
137
87
|
export declare const RegulatorCommands_SetEnabledPayload: import("typed-binary").ObjectSchema<{
|
|
138
88
|
regulator_id: import("typed-binary").ByteSchema;
|
|
139
89
|
value: import("typed-binary").ByteSchema;
|
|
@@ -152,24 +102,6 @@ export declare const RegulatorCommands_SetGainsPayload: import("typed-binary").O
|
|
|
152
102
|
}>;
|
|
153
103
|
export type RegulatorCommands_SetGainsPayload = bin.Parsed<typeof RegulatorCommands_SetGainsPayload>;
|
|
154
104
|
export declare const spec: {
|
|
155
|
-
BldcCommands_SetBldcPayload: {
|
|
156
|
-
id: number;
|
|
157
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
158
|
-
bldc_id: import("typed-binary").ByteSchema;
|
|
159
|
-
command: import("typed-binary").Uint32Schema;
|
|
160
|
-
}>;
|
|
161
|
-
enums: {
|
|
162
|
-
bldc_id: {
|
|
163
|
-
readonly kFuel: 0;
|
|
164
|
-
readonly kOx: 1;
|
|
165
|
-
readonly kCount: 2;
|
|
166
|
-
};
|
|
167
|
-
command: {
|
|
168
|
-
readonly open: 0;
|
|
169
|
-
readonly close: 1;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
105
|
FsmCommands_RaiseEventPayload: {
|
|
174
106
|
id: number;
|
|
175
107
|
schema: import("typed-binary").ObjectSchema<{
|
|
@@ -183,10 +115,9 @@ export declare const spec: {
|
|
|
183
115
|
readonly PreviousState: 2;
|
|
184
116
|
readonly Timeout: 3;
|
|
185
117
|
readonly CalibrateRequest: 4;
|
|
186
|
-
readonly
|
|
187
|
-
readonly
|
|
188
|
-
readonly
|
|
189
|
-
readonly Count: 8;
|
|
118
|
+
readonly Abort: 5;
|
|
119
|
+
readonly None: 6;
|
|
120
|
+
readonly Count: 7;
|
|
190
121
|
};
|
|
191
122
|
current_state: {
|
|
192
123
|
readonly Safe: 0;
|
|
@@ -268,44 +199,6 @@ export declare const spec: {
|
|
|
268
199
|
};
|
|
269
200
|
};
|
|
270
201
|
};
|
|
271
|
-
SolenoidCommands_SetSolenoidPayload: {
|
|
272
|
-
id: number;
|
|
273
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
274
|
-
solenoid_id: import("typed-binary").ByteSchema;
|
|
275
|
-
command: import("typed-binary").Uint32Schema;
|
|
276
|
-
}>;
|
|
277
|
-
enums: {
|
|
278
|
-
solenoid_id: {
|
|
279
|
-
readonly kFuelVent: 0;
|
|
280
|
-
readonly kOxVent: 1;
|
|
281
|
-
readonly kN2Fill: 2;
|
|
282
|
-
readonly kOxBleed: 3;
|
|
283
|
-
readonly kN2_200_Supply: 4;
|
|
284
|
-
readonly kN2_200_Bleed: 5;
|
|
285
|
-
readonly kN2_300_Supply: 6;
|
|
286
|
-
readonly kN2_300_Bleed: 7;
|
|
287
|
-
readonly kQD_1: 8;
|
|
288
|
-
readonly kQD_2: 9;
|
|
289
|
-
readonly kCount: 10;
|
|
290
|
-
};
|
|
291
|
-
command: {
|
|
292
|
-
readonly open: 0;
|
|
293
|
-
readonly close: 1;
|
|
294
|
-
};
|
|
295
|
-
};
|
|
296
|
-
};
|
|
297
|
-
ControlPolicyCommands_SetManualPolicyPayload: {
|
|
298
|
-
id: number;
|
|
299
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
300
|
-
value: import("typed-binary").ByteSchema;
|
|
301
|
-
}>;
|
|
302
|
-
enums: {
|
|
303
|
-
value: {
|
|
304
|
-
readonly Disable: 0;
|
|
305
|
-
readonly Enable: 1;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
};
|
|
309
202
|
RegulatorCommands_SetEnabledPayload: {
|
|
310
203
|
id: number;
|
|
311
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-
|
|
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,25 +60,15 @@ 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,
|
|
75
66
|
PreviousState: 2,
|
|
76
67
|
Timeout: 3,
|
|
77
68
|
CalibrateRequest: 4,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
Count: 8,
|
|
69
|
+
Abort: 5,
|
|
70
|
+
None: 6,
|
|
71
|
+
Count: 7,
|
|
82
72
|
};
|
|
83
73
|
export const StateId = {
|
|
84
74
|
Safe: 0,
|
|
@@ -116,27 +106,6 @@ export const actuators_servo_StartPolicy = {
|
|
|
116
106
|
kPreempt: 0,
|
|
117
107
|
kNoInterrupt: 1,
|
|
118
108
|
};
|
|
119
|
-
export const node_solenoid_Id = {
|
|
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,
|
|
131
|
-
};
|
|
132
|
-
export const SolenoidCommands_SetSolenoidCommand = {
|
|
133
|
-
open: 0,
|
|
134
|
-
close: 1,
|
|
135
|
-
};
|
|
136
|
-
export const ControlPolicyCommands_PolicyValue = {
|
|
137
|
-
Disable: 0,
|
|
138
|
-
Enable: 1,
|
|
139
|
-
};
|
|
140
109
|
export const node_regulator_Id = {
|
|
141
110
|
kOxPrechill: 0,
|
|
142
111
|
kCount: 1,
|
|
@@ -145,10 +114,6 @@ export const RegulatorCommands_RegulatorValue = {
|
|
|
145
114
|
Disable: 0,
|
|
146
115
|
Enable: 1,
|
|
147
116
|
};
|
|
148
|
-
export const BldcCommands_SetBldcPayload = bin.object({
|
|
149
|
-
bldc_id: bin.u8, // node::bldc::Id
|
|
150
|
-
command: bin.u32, // BldcCommands::SetBldcCommand
|
|
151
|
-
});
|
|
152
117
|
export const FsmCommands_RaiseEventPayload = bin.object({
|
|
153
118
|
event: bin.u8, // Event
|
|
154
119
|
current_state: bin.u8, // StateId
|
|
@@ -169,13 +134,6 @@ export const ServoCommands_SetServoPayload = bin.object({
|
|
|
169
134
|
position_mode: bin.u8, // actuators::servo::PositionMode
|
|
170
135
|
start_policy: bin.u8, // actuators::servo::StartPolicy
|
|
171
136
|
});
|
|
172
|
-
export const SolenoidCommands_SetSolenoidPayload = bin.object({
|
|
173
|
-
solenoid_id: bin.u8, // node::solenoid::Id
|
|
174
|
-
command: bin.u32, // SolenoidCommands::SetSolenoidCommand
|
|
175
|
-
});
|
|
176
|
-
export const ControlPolicyCommands_SetManualPolicyPayload = bin.object({
|
|
177
|
-
value: bin.u8, // ControlPolicyCommands::PolicyValue
|
|
178
|
-
});
|
|
179
137
|
export const RegulatorCommands_SetEnabledPayload = bin.object({
|
|
180
138
|
regulator_id: bin.u8, // node::regulator::Id
|
|
181
139
|
value: bin.u8, // RegulatorCommands::RegulatorValue
|
|
@@ -191,14 +149,6 @@ export const RegulatorCommands_SetGainsPayload = bin.object({
|
|
|
191
149
|
kd: bin.f32, // float
|
|
192
150
|
});
|
|
193
151
|
export const spec = {
|
|
194
|
-
BldcCommands_SetBldcPayload: {
|
|
195
|
-
id: 64,
|
|
196
|
-
schema: BldcCommands_SetBldcPayload,
|
|
197
|
-
enums: {
|
|
198
|
-
bldc_id: node_bldc_Id,
|
|
199
|
-
command: BldcCommands_SetBldcCommand,
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
152
|
FsmCommands_RaiseEventPayload: {
|
|
203
153
|
id: 32,
|
|
204
154
|
schema: FsmCommands_RaiseEventPayload,
|
|
@@ -226,21 +176,6 @@ export const spec = {
|
|
|
226
176
|
start_policy: actuators_servo_StartPolicy,
|
|
227
177
|
},
|
|
228
178
|
},
|
|
229
|
-
SolenoidCommands_SetSolenoidPayload: {
|
|
230
|
-
id: 80,
|
|
231
|
-
schema: SolenoidCommands_SetSolenoidPayload,
|
|
232
|
-
enums: {
|
|
233
|
-
solenoid_id: node_solenoid_Id,
|
|
234
|
-
command: SolenoidCommands_SetSolenoidCommand,
|
|
235
|
-
},
|
|
236
|
-
},
|
|
237
|
-
ControlPolicyCommands_SetManualPolicyPayload: {
|
|
238
|
-
id: 96,
|
|
239
|
-
schema: ControlPolicyCommands_SetManualPolicyPayload,
|
|
240
|
-
enums: {
|
|
241
|
-
value: ControlPolicyCommands_PolicyValue,
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
179
|
RegulatorCommands_SetEnabledPayload: {
|
|
245
180
|
id: 112,
|
|
246
181
|
schema: RegulatorCommands_SetEnabledPayload,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import bin, { MaxValue, Schema, type IMeasurer, type ISerialInput, type ISerialOutput } from
|
|
1
|
+
import bin, { MaxValue, Schema, type IMeasurer, type ISerialInput, type ISerialOutput } from "typed-binary";
|
|
2
2
|
declare class UInt64Schema extends Schema<bigint> {
|
|
3
3
|
readonly maxSize = 8;
|
|
4
4
|
read(input: ISerialInput): bigint;
|
|
@@ -102,66 +102,6 @@ export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
|
|
|
102
102
|
message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
103
103
|
}>;
|
|
104
104
|
export type HeartBeatTelemetry = bin.Parsed<typeof HeartBeatTelemetry>;
|
|
105
|
-
export declare const regulators_RegulatorStatus: import("typed-binary").ObjectSchema<{
|
|
106
|
-
operator_enabled: import("typed-binary").BoolSchema;
|
|
107
|
-
policy_enabled: import("typed-binary").BoolSchema;
|
|
108
|
-
active: import("typed-binary").BoolSchema;
|
|
109
|
-
setpoint: import("typed-binary").Float32Schema;
|
|
110
|
-
kp: import("typed-binary").Float32Schema;
|
|
111
|
-
ki: import("typed-binary").Float32Schema;
|
|
112
|
-
kd: import("typed-binary").Float32Schema;
|
|
113
|
-
integral: import("typed-binary").Float32Schema;
|
|
114
|
-
previous_error: import("typed-binary").Float32Schema;
|
|
115
|
-
last_measurement: import("typed-binary").Float32Schema;
|
|
116
|
-
last_output: import("typed-binary").Float32Schema;
|
|
117
|
-
last_servo_command_: import("typed-binary").Float32Schema;
|
|
118
|
-
last_update_ms: import("typed-binary").Uint32Schema;
|
|
119
|
-
}>;
|
|
120
|
-
export type regulators_RegulatorStatus = bin.Parsed<typeof regulators_RegulatorStatus>;
|
|
121
|
-
export declare const RegulatorStatusEntry: import("typed-binary").ObjectSchema<{
|
|
122
|
-
id: import("typed-binary").ByteSchema;
|
|
123
|
-
name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
124
|
-
status: import("typed-binary").ObjectSchema<{
|
|
125
|
-
operator_enabled: import("typed-binary").BoolSchema;
|
|
126
|
-
policy_enabled: import("typed-binary").BoolSchema;
|
|
127
|
-
active: import("typed-binary").BoolSchema;
|
|
128
|
-
setpoint: import("typed-binary").Float32Schema;
|
|
129
|
-
kp: import("typed-binary").Float32Schema;
|
|
130
|
-
ki: import("typed-binary").Float32Schema;
|
|
131
|
-
kd: import("typed-binary").Float32Schema;
|
|
132
|
-
integral: import("typed-binary").Float32Schema;
|
|
133
|
-
previous_error: import("typed-binary").Float32Schema;
|
|
134
|
-
last_measurement: import("typed-binary").Float32Schema;
|
|
135
|
-
last_output: import("typed-binary").Float32Schema;
|
|
136
|
-
last_servo_command_: import("typed-binary").Float32Schema;
|
|
137
|
-
last_update_ms: import("typed-binary").Uint32Schema;
|
|
138
|
-
}>;
|
|
139
|
-
}>;
|
|
140
|
-
export type RegulatorStatusEntry = bin.Parsed<typeof RegulatorStatusEntry>;
|
|
141
|
-
export declare const RegulatorStatusArrayPacket: import("typed-binary").ObjectSchema<{
|
|
142
|
-
count: import("typed-binary").ByteSchema;
|
|
143
|
-
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
144
|
-
entries: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
|
|
145
|
-
id: import("typed-binary").ByteSchema;
|
|
146
|
-
name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
147
|
-
status: import("typed-binary").ObjectSchema<{
|
|
148
|
-
operator_enabled: import("typed-binary").BoolSchema;
|
|
149
|
-
policy_enabled: import("typed-binary").BoolSchema;
|
|
150
|
-
active: import("typed-binary").BoolSchema;
|
|
151
|
-
setpoint: import("typed-binary").Float32Schema;
|
|
152
|
-
kp: import("typed-binary").Float32Schema;
|
|
153
|
-
ki: import("typed-binary").Float32Schema;
|
|
154
|
-
kd: import("typed-binary").Float32Schema;
|
|
155
|
-
integral: import("typed-binary").Float32Schema;
|
|
156
|
-
previous_error: import("typed-binary").Float32Schema;
|
|
157
|
-
last_measurement: import("typed-binary").Float32Schema;
|
|
158
|
-
last_output: import("typed-binary").Float32Schema;
|
|
159
|
-
last_servo_command_: import("typed-binary").Float32Schema;
|
|
160
|
-
last_update_ms: import("typed-binary").Uint32Schema;
|
|
161
|
-
}>;
|
|
162
|
-
}>>;
|
|
163
|
-
}>;
|
|
164
|
-
export type RegulatorStatusArrayPacket = bin.Parsed<typeof RegulatorStatusArrayPacket>;
|
|
165
105
|
export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
|
|
166
106
|
state_entry_time_ms: import("typed-binary").Uint32Schema;
|
|
167
107
|
state_time_ms: import("typed-binary").Uint32Schema;
|
|
@@ -251,33 +191,6 @@ export declare const spec: {
|
|
|
251
191
|
}>;
|
|
252
192
|
enums: {};
|
|
253
193
|
};
|
|
254
|
-
RegulatorStatusArrayPacket: {
|
|
255
|
-
port: number;
|
|
256
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
257
|
-
count: import("typed-binary").ByteSchema;
|
|
258
|
-
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
259
|
-
entries: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
|
|
260
|
-
id: import("typed-binary").ByteSchema;
|
|
261
|
-
name: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
262
|
-
status: import("typed-binary").ObjectSchema<{
|
|
263
|
-
operator_enabled: import("typed-binary").BoolSchema;
|
|
264
|
-
policy_enabled: import("typed-binary").BoolSchema;
|
|
265
|
-
active: import("typed-binary").BoolSchema;
|
|
266
|
-
setpoint: import("typed-binary").Float32Schema;
|
|
267
|
-
kp: import("typed-binary").Float32Schema;
|
|
268
|
-
ki: import("typed-binary").Float32Schema;
|
|
269
|
-
kd: import("typed-binary").Float32Schema;
|
|
270
|
-
integral: import("typed-binary").Float32Schema;
|
|
271
|
-
previous_error: import("typed-binary").Float32Schema;
|
|
272
|
-
last_measurement: import("typed-binary").Float32Schema;
|
|
273
|
-
last_output: import("typed-binary").Float32Schema;
|
|
274
|
-
last_servo_command_: import("typed-binary").Float32Schema;
|
|
275
|
-
last_update_ms: import("typed-binary").Uint32Schema;
|
|
276
|
-
}>;
|
|
277
|
-
}>>;
|
|
278
|
-
}>;
|
|
279
|
-
enums: {};
|
|
280
|
-
};
|
|
281
194
|
fsm_FsmStatus: {
|
|
282
195
|
port: number;
|
|
283
196
|
schema: import("typed-binary").ObjectSchema<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import bin, { Measurer, Schema } from
|
|
2
|
-
// This file was generated by FRICC on 2026-03-
|
|
1
|
+
import bin, { Measurer, Schema, } from "typed-binary";
|
|
2
|
+
// This file was generated by FRICC on 2026-03-23 20:29:42. Do not edit manually!
|
|
3
3
|
// The current version of typed-binary does not support 64-bit primitives.
|
|
4
|
-
// So for we'll implement our own schemas. :)
|
|
4
|
+
// So for we'll implement our own schemas. :)
|
|
5
5
|
const __littleEndian = true;
|
|
6
6
|
class UInt64Schema extends Schema {
|
|
7
7
|
maxSize = 8;
|
|
@@ -146,31 +146,6 @@ export const actuators_solenoid_SolenoidStatus = bin.object({
|
|
|
146
146
|
export const HeartBeatTelemetry = bin.object({
|
|
147
147
|
message: bin.arrayOf(bin.i8, 16), // char[16]
|
|
148
148
|
});
|
|
149
|
-
export const regulators_RegulatorStatus = bin.object({
|
|
150
|
-
operator_enabled: bin.bool, // bool
|
|
151
|
-
policy_enabled: bin.bool, // bool
|
|
152
|
-
active: bin.bool, // bool
|
|
153
|
-
setpoint: bin.f32, // float
|
|
154
|
-
kp: bin.f32, // float
|
|
155
|
-
ki: bin.f32, // float
|
|
156
|
-
kd: bin.f32, // float
|
|
157
|
-
integral: bin.f32, // float
|
|
158
|
-
previous_error: bin.f32, // float
|
|
159
|
-
last_measurement: bin.f32, // float
|
|
160
|
-
last_output: bin.f32, // float
|
|
161
|
-
last_servo_command_: bin.f32, // float
|
|
162
|
-
last_update_ms: bin.u32, // unsigned int
|
|
163
|
-
});
|
|
164
|
-
export const RegulatorStatusEntry = bin.object({
|
|
165
|
-
id: bin.u8, // node::regulator::Id
|
|
166
|
-
name: bin.arrayOf(bin.i8, 24), // char[24]
|
|
167
|
-
status: regulators_RegulatorStatus, // regulators::RegulatorStatus
|
|
168
|
-
});
|
|
169
|
-
export const RegulatorStatusArrayPacket = bin.object({
|
|
170
|
-
count: bin.u8, // unsigned char
|
|
171
|
-
timestamp_ms: bin.u32, // unsigned int
|
|
172
|
-
entries: bin.arrayOf(RegulatorStatusEntry, 1), // RegulatorStatusEntry[1]
|
|
173
|
-
});
|
|
174
149
|
export const fsm_FsmStatus = bin.object({
|
|
175
150
|
state_entry_time_ms: bin.u32, // unsigned int
|
|
176
151
|
state_time_ms: bin.u32, // unsigned int
|
|
@@ -209,11 +184,6 @@ export const spec = {
|
|
|
209
184
|
schema: HeartBeatTelemetry,
|
|
210
185
|
enums: {},
|
|
211
186
|
},
|
|
212
|
-
RegulatorStatusArrayPacket: {
|
|
213
|
-
port: 5005,
|
|
214
|
-
schema: RegulatorStatusArrayPacket,
|
|
215
|
-
enums: {},
|
|
216
|
-
},
|
|
217
187
|
fsm_FsmStatus: {
|
|
218
188
|
port: 5001,
|
|
219
189
|
schema: fsm_FsmStatus,
|