fossekall-interface 0.1.22 → 0.1.24
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 +113 -6
- package/dist/generated/ecu/commands.js +69 -4
- package/dist/generated/ecu/telemetry.d.ts +226 -16
- package/dist/generated/ecu/telemetry.js +94 -1
- package/dist/generated/fc/telemetry.d.ts +12 -30
- package/dist/generated/fc/telemetry.js +11 -17
- package/package.json +1 -1
|
@@ -1,13 +1,25 @@
|
|
|
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];
|
|
2
13
|
export declare const Event: {
|
|
3
14
|
readonly Boot: 0;
|
|
4
15
|
readonly NextState: 1;
|
|
5
16
|
readonly PreviousState: 2;
|
|
6
17
|
readonly Timeout: 3;
|
|
7
18
|
readonly CalibrateRequest: 4;
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
19
|
+
readonly BurnwireCut: 5;
|
|
20
|
+
readonly Abort: 6;
|
|
21
|
+
readonly None: 7;
|
|
22
|
+
readonly Count: 8;
|
|
11
23
|
};
|
|
12
24
|
export type Event = (typeof Event)[keyof typeof Event];
|
|
13
25
|
export declare const StateId: {
|
|
@@ -51,6 +63,30 @@ export declare const actuators_servo_StartPolicy: {
|
|
|
51
63
|
readonly kNoInterrupt: 1;
|
|
52
64
|
};
|
|
53
65
|
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];
|
|
54
90
|
export declare const node_regulator_Id: {
|
|
55
91
|
readonly kOxPrechill: 0;
|
|
56
92
|
readonly kCount: 1;
|
|
@@ -61,6 +97,11 @@ export declare const RegulatorCommands_RegulatorValue: {
|
|
|
61
97
|
readonly Enable: 1;
|
|
62
98
|
};
|
|
63
99
|
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>;
|
|
64
105
|
export declare const FsmCommands_RaiseEventPayload: import("typed-binary").ObjectSchema<{
|
|
65
106
|
event: import("typed-binary").ByteSchema;
|
|
66
107
|
current_state: import("typed-binary").ByteSchema;
|
|
@@ -84,6 +125,15 @@ export declare const ServoCommands_SetServoPayload: import("typed-binary").Objec
|
|
|
84
125
|
start_policy: import("typed-binary").ByteSchema;
|
|
85
126
|
}>;
|
|
86
127
|
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>;
|
|
87
137
|
export declare const RegulatorCommands_SetEnabledPayload: import("typed-binary").ObjectSchema<{
|
|
88
138
|
regulator_id: import("typed-binary").ByteSchema;
|
|
89
139
|
value: import("typed-binary").ByteSchema;
|
|
@@ -102,6 +152,24 @@ export declare const RegulatorCommands_SetGainsPayload: import("typed-binary").O
|
|
|
102
152
|
}>;
|
|
103
153
|
export type RegulatorCommands_SetGainsPayload = bin.Parsed<typeof RegulatorCommands_SetGainsPayload>;
|
|
104
154
|
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
|
+
};
|
|
105
173
|
FsmCommands_RaiseEventPayload: {
|
|
106
174
|
id: number;
|
|
107
175
|
schema: import("typed-binary").ObjectSchema<{
|
|
@@ -115,9 +183,10 @@ export declare const spec: {
|
|
|
115
183
|
readonly PreviousState: 2;
|
|
116
184
|
readonly Timeout: 3;
|
|
117
185
|
readonly CalibrateRequest: 4;
|
|
118
|
-
readonly
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
186
|
+
readonly BurnwireCut: 5;
|
|
187
|
+
readonly Abort: 6;
|
|
188
|
+
readonly None: 7;
|
|
189
|
+
readonly Count: 8;
|
|
121
190
|
};
|
|
122
191
|
current_state: {
|
|
123
192
|
readonly Safe: 0;
|
|
@@ -199,6 +268,44 @@ export declare const spec: {
|
|
|
199
268
|
};
|
|
200
269
|
};
|
|
201
270
|
};
|
|
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
|
+
};
|
|
202
309
|
RegulatorCommands_SetEnabledPayload: {
|
|
203
310
|
id: number;
|
|
204
311
|
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-22 14:17:44. 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,15 +60,25 @@ 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
|
+
};
|
|
63
72
|
export const Event = {
|
|
64
73
|
Boot: 0,
|
|
65
74
|
NextState: 1,
|
|
66
75
|
PreviousState: 2,
|
|
67
76
|
Timeout: 3,
|
|
68
77
|
CalibrateRequest: 4,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
78
|
+
BurnwireCut: 5,
|
|
79
|
+
Abort: 6,
|
|
80
|
+
None: 7,
|
|
81
|
+
Count: 8,
|
|
72
82
|
};
|
|
73
83
|
export const StateId = {
|
|
74
84
|
Safe: 0,
|
|
@@ -106,6 +116,27 @@ export const actuators_servo_StartPolicy = {
|
|
|
106
116
|
kPreempt: 0,
|
|
107
117
|
kNoInterrupt: 1,
|
|
108
118
|
};
|
|
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
|
+
};
|
|
109
140
|
export const node_regulator_Id = {
|
|
110
141
|
kOxPrechill: 0,
|
|
111
142
|
kCount: 1,
|
|
@@ -114,6 +145,10 @@ export const RegulatorCommands_RegulatorValue = {
|
|
|
114
145
|
Disable: 0,
|
|
115
146
|
Enable: 1,
|
|
116
147
|
};
|
|
148
|
+
export const BldcCommands_SetBldcPayload = bin.object({
|
|
149
|
+
bldc_id: bin.u8, // node::bldc::Id
|
|
150
|
+
command: bin.u32, // BldcCommands::SetBldcCommand
|
|
151
|
+
});
|
|
117
152
|
export const FsmCommands_RaiseEventPayload = bin.object({
|
|
118
153
|
event: bin.u8, // Event
|
|
119
154
|
current_state: bin.u8, // StateId
|
|
@@ -134,6 +169,13 @@ export const ServoCommands_SetServoPayload = bin.object({
|
|
|
134
169
|
position_mode: bin.u8, // actuators::servo::PositionMode
|
|
135
170
|
start_policy: bin.u8, // actuators::servo::StartPolicy
|
|
136
171
|
});
|
|
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
|
+
});
|
|
137
179
|
export const RegulatorCommands_SetEnabledPayload = bin.object({
|
|
138
180
|
regulator_id: bin.u8, // node::regulator::Id
|
|
139
181
|
value: bin.u8, // RegulatorCommands::RegulatorValue
|
|
@@ -149,6 +191,14 @@ export const RegulatorCommands_SetGainsPayload = bin.object({
|
|
|
149
191
|
kd: bin.f32, // float
|
|
150
192
|
});
|
|
151
193
|
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
|
+
},
|
|
152
202
|
FsmCommands_RaiseEventPayload: {
|
|
153
203
|
id: 32,
|
|
154
204
|
schema: FsmCommands_RaiseEventPayload,
|
|
@@ -176,6 +226,21 @@ export const spec = {
|
|
|
176
226
|
start_policy: actuators_servo_StartPolicy,
|
|
177
227
|
},
|
|
178
228
|
},
|
|
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
|
+
},
|
|
179
244
|
RegulatorCommands_SetEnabledPayload: {
|
|
180
245
|
id: 112,
|
|
181
246
|
schema: RegulatorCommands_SetEnabledPayload,
|
|
@@ -30,6 +30,35 @@ export declare const actuators_solenoid_Opening: {
|
|
|
30
30
|
readonly kOpen: 2;
|
|
31
31
|
};
|
|
32
32
|
export type actuators_solenoid_Opening = (typeof actuators_solenoid_Opening)[keyof typeof actuators_solenoid_Opening];
|
|
33
|
+
export declare const StateId: {
|
|
34
|
+
readonly Safe: 0;
|
|
35
|
+
readonly FuelFill: 1;
|
|
36
|
+
readonly PostFuelFill: 2;
|
|
37
|
+
readonly N2Fill: 3;
|
|
38
|
+
readonly PostN2Fill: 4;
|
|
39
|
+
readonly OxFill: 5;
|
|
40
|
+
readonly PostOxFill: 6;
|
|
41
|
+
readonly Pressurized: 7;
|
|
42
|
+
readonly Armed: 8;
|
|
43
|
+
readonly Burn: 9;
|
|
44
|
+
readonly Shutdown: 10;
|
|
45
|
+
readonly PostBurn: 11;
|
|
46
|
+
readonly Depressurize: 12;
|
|
47
|
+
readonly Calibrate: 13;
|
|
48
|
+
};
|
|
49
|
+
export type StateId = (typeof StateId)[keyof typeof StateId];
|
|
50
|
+
export declare const Event: {
|
|
51
|
+
readonly Boot: 0;
|
|
52
|
+
readonly NextState: 1;
|
|
53
|
+
readonly PreviousState: 2;
|
|
54
|
+
readonly Timeout: 3;
|
|
55
|
+
readonly CalibrateRequest: 4;
|
|
56
|
+
readonly BurnwireCut: 5;
|
|
57
|
+
readonly Abort: 6;
|
|
58
|
+
readonly None: 7;
|
|
59
|
+
readonly Count: 8;
|
|
60
|
+
};
|
|
61
|
+
export type Event = (typeof Event)[keyof typeof Event];
|
|
33
62
|
export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
|
|
34
63
|
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
35
64
|
target_angle_deg: import("typed-binary").Float32Schema;
|
|
@@ -55,15 +84,96 @@ export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
|
|
|
55
84
|
calibrated: import("typed-binary").ByteSchema;
|
|
56
85
|
}>;
|
|
57
86
|
export type BldcTelemetry = bin.Parsed<typeof BldcTelemetry>;
|
|
87
|
+
export declare const sensors_pressure_PressureBatch: import("typed-binary").ObjectSchema<{
|
|
88
|
+
t0_ms: import("typed-binary").Uint32Schema;
|
|
89
|
+
dt_us: import("typed-binary").Uint16Schema;
|
|
90
|
+
count: import("typed-binary").ByteSchema;
|
|
91
|
+
seq: import("typed-binary").ByteSchema;
|
|
92
|
+
overrun: import("typed-binary").BoolSchema;
|
|
93
|
+
samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
94
|
+
}>;
|
|
95
|
+
export type sensors_pressure_PressureBatch = bin.Parsed<typeof sensors_pressure_PressureBatch>;
|
|
58
96
|
export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").ObjectSchema<{
|
|
59
97
|
power_state: import("typed-binary").ByteSchema;
|
|
60
98
|
opening: import("typed-binary").ByteSchema;
|
|
61
99
|
}>;
|
|
62
100
|
export type actuators_solenoid_SolenoidStatus = bin.Parsed<typeof actuators_solenoid_SolenoidStatus>;
|
|
101
|
+
export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
|
|
102
|
+
message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
103
|
+
}>;
|
|
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
|
+
export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
|
|
166
|
+
state_entry_time_ms: import("typed-binary").Uint32Schema;
|
|
167
|
+
state_time_ms: import("typed-binary").Uint32Schema;
|
|
168
|
+
current_state: import("typed-binary").ByteSchema;
|
|
169
|
+
previous_state: import("typed-binary").ByteSchema;
|
|
170
|
+
last_event: import("typed-binary").ByteSchema;
|
|
171
|
+
}>;
|
|
172
|
+
export type fsm_FsmStatus = bin.Parsed<typeof fsm_FsmStatus>;
|
|
63
173
|
export declare const spec: {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
174
|
+
actuators_servo_ServoStatus: {
|
|
175
|
+
port: number;
|
|
176
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
67
177
|
commanded_angle_deg: import("typed-binary").Float32Schema;
|
|
68
178
|
target_angle_deg: import("typed-binary").Float32Schema;
|
|
69
179
|
measured_angle_deg: import("typed-binary").Float32Schema;
|
|
@@ -71,13 +181,13 @@ export declare const spec: {
|
|
|
71
181
|
mode: import("typed-binary").ByteSchema;
|
|
72
182
|
power_state: import("typed-binary").ByteSchema;
|
|
73
183
|
}>;
|
|
74
|
-
|
|
75
|
-
|
|
184
|
+
enums: {
|
|
185
|
+
mode: {
|
|
76
186
|
readonly kUnknown: 0;
|
|
77
187
|
readonly kPosition: 1;
|
|
78
188
|
readonly kCalibrate: 2;
|
|
79
189
|
};
|
|
80
|
-
|
|
190
|
+
power_state: {
|
|
81
191
|
readonly kUnknown: 0;
|
|
82
192
|
readonly kOff: 1;
|
|
83
193
|
readonly kBooting: 2;
|
|
@@ -85,9 +195,9 @@ export declare const spec: {
|
|
|
85
195
|
};
|
|
86
196
|
};
|
|
87
197
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
198
|
+
BldcTelemetry: {
|
|
199
|
+
port: number;
|
|
200
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
91
201
|
valve_position: import("typed-binary").Float32Schema;
|
|
92
202
|
motor_position: import("typed-binary").Float32Schema;
|
|
93
203
|
timestamp: UInt64Schema;
|
|
@@ -102,27 +212,127 @@ export declare const spec: {
|
|
|
102
212
|
position_raw: import("typed-binary").Float32Schema;
|
|
103
213
|
calibrated: import("typed-binary").ByteSchema;
|
|
104
214
|
}>;
|
|
105
|
-
|
|
215
|
+
enums: {};
|
|
216
|
+
};
|
|
217
|
+
sensors_pressure_PressureBatch: {
|
|
218
|
+
port: number;
|
|
219
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
220
|
+
t0_ms: import("typed-binary").Uint32Schema;
|
|
221
|
+
dt_us: import("typed-binary").Uint16Schema;
|
|
222
|
+
count: import("typed-binary").ByteSchema;
|
|
223
|
+
seq: import("typed-binary").ByteSchema;
|
|
224
|
+
overrun: import("typed-binary").BoolSchema;
|
|
225
|
+
samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
226
|
+
}>;
|
|
227
|
+
enums: {};
|
|
106
228
|
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
229
|
+
actuators_solenoid_SolenoidStatus: {
|
|
230
|
+
port: number;
|
|
231
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
110
232
|
power_state: import("typed-binary").ByteSchema;
|
|
111
233
|
opening: import("typed-binary").ByteSchema;
|
|
112
234
|
}>;
|
|
113
|
-
|
|
114
|
-
|
|
235
|
+
enums: {
|
|
236
|
+
power_state: {
|
|
115
237
|
readonly kUnknown: 0;
|
|
116
238
|
readonly kOff: 1;
|
|
117
239
|
readonly kOn: 2;
|
|
118
240
|
};
|
|
119
|
-
|
|
241
|
+
opening: {
|
|
120
242
|
readonly kUnknown: 0;
|
|
121
243
|
readonly kClosed: 1;
|
|
122
244
|
readonly kOpen: 2;
|
|
123
245
|
};
|
|
124
246
|
};
|
|
125
247
|
};
|
|
248
|
+
HeartBeatTelemetry: {
|
|
249
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
250
|
+
message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
|
|
251
|
+
}>;
|
|
252
|
+
enums: {};
|
|
253
|
+
};
|
|
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
|
+
fsm_FsmStatus: {
|
|
282
|
+
port: number;
|
|
283
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
284
|
+
state_entry_time_ms: import("typed-binary").Uint32Schema;
|
|
285
|
+
state_time_ms: import("typed-binary").Uint32Schema;
|
|
286
|
+
current_state: import("typed-binary").ByteSchema;
|
|
287
|
+
previous_state: import("typed-binary").ByteSchema;
|
|
288
|
+
last_event: import("typed-binary").ByteSchema;
|
|
289
|
+
}>;
|
|
290
|
+
enums: {
|
|
291
|
+
current_state: {
|
|
292
|
+
readonly Safe: 0;
|
|
293
|
+
readonly FuelFill: 1;
|
|
294
|
+
readonly PostFuelFill: 2;
|
|
295
|
+
readonly N2Fill: 3;
|
|
296
|
+
readonly PostN2Fill: 4;
|
|
297
|
+
readonly OxFill: 5;
|
|
298
|
+
readonly PostOxFill: 6;
|
|
299
|
+
readonly Pressurized: 7;
|
|
300
|
+
readonly Armed: 8;
|
|
301
|
+
readonly Burn: 9;
|
|
302
|
+
readonly Shutdown: 10;
|
|
303
|
+
readonly PostBurn: 11;
|
|
304
|
+
readonly Depressurize: 12;
|
|
305
|
+
readonly Calibrate: 13;
|
|
306
|
+
};
|
|
307
|
+
previous_state: {
|
|
308
|
+
readonly Safe: 0;
|
|
309
|
+
readonly FuelFill: 1;
|
|
310
|
+
readonly PostFuelFill: 2;
|
|
311
|
+
readonly N2Fill: 3;
|
|
312
|
+
readonly PostN2Fill: 4;
|
|
313
|
+
readonly OxFill: 5;
|
|
314
|
+
readonly PostOxFill: 6;
|
|
315
|
+
readonly Pressurized: 7;
|
|
316
|
+
readonly Armed: 8;
|
|
317
|
+
readonly Burn: 9;
|
|
318
|
+
readonly Shutdown: 10;
|
|
319
|
+
readonly PostBurn: 11;
|
|
320
|
+
readonly Depressurize: 12;
|
|
321
|
+
readonly Calibrate: 13;
|
|
322
|
+
};
|
|
323
|
+
last_event: {
|
|
324
|
+
readonly Boot: 0;
|
|
325
|
+
readonly NextState: 1;
|
|
326
|
+
readonly PreviousState: 2;
|
|
327
|
+
readonly Timeout: 3;
|
|
328
|
+
readonly CalibrateRequest: 4;
|
|
329
|
+
readonly BurnwireCut: 5;
|
|
330
|
+
readonly Abort: 6;
|
|
331
|
+
readonly None: 7;
|
|
332
|
+
readonly Count: 8;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
};
|
|
126
336
|
};
|
|
127
337
|
export default spec;
|
|
128
338
|
export type Spec = typeof spec;
|
|
@@ -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-23 21:05:05. 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;
|
|
@@ -81,6 +81,33 @@ export const actuators_solenoid_Opening = {
|
|
|
81
81
|
kClosed: 1,
|
|
82
82
|
kOpen: 2,
|
|
83
83
|
};
|
|
84
|
+
export const StateId = {
|
|
85
|
+
Safe: 0,
|
|
86
|
+
FuelFill: 1,
|
|
87
|
+
PostFuelFill: 2,
|
|
88
|
+
N2Fill: 3,
|
|
89
|
+
PostN2Fill: 4,
|
|
90
|
+
OxFill: 5,
|
|
91
|
+
PostOxFill: 6,
|
|
92
|
+
Pressurized: 7,
|
|
93
|
+
Armed: 8,
|
|
94
|
+
Burn: 9,
|
|
95
|
+
Shutdown: 10,
|
|
96
|
+
PostBurn: 11,
|
|
97
|
+
Depressurize: 12,
|
|
98
|
+
Calibrate: 13,
|
|
99
|
+
};
|
|
100
|
+
export const Event = {
|
|
101
|
+
Boot: 0,
|
|
102
|
+
NextState: 1,
|
|
103
|
+
PreviousState: 2,
|
|
104
|
+
Timeout: 3,
|
|
105
|
+
CalibrateRequest: 4,
|
|
106
|
+
BurnwireCut: 5,
|
|
107
|
+
Abort: 6,
|
|
108
|
+
None: 7,
|
|
109
|
+
Count: 8,
|
|
110
|
+
};
|
|
84
111
|
export const actuators_servo_ServoStatus = bin.object({
|
|
85
112
|
commanded_angle_deg: bin.f32, // float
|
|
86
113
|
target_angle_deg: bin.f32, // float
|
|
@@ -104,10 +131,53 @@ export const BldcTelemetry = bin.object({
|
|
|
104
131
|
position_raw: bin.f32, // float
|
|
105
132
|
calibrated: bin.u8, // unsigned char
|
|
106
133
|
});
|
|
134
|
+
export const sensors_pressure_PressureBatch = bin.object({
|
|
135
|
+
t0_ms: bin.u32, // unsigned int
|
|
136
|
+
dt_us: bin.u16, // unsigned short
|
|
137
|
+
count: bin.u8, // unsigned char
|
|
138
|
+
seq: bin.u8, // unsigned char
|
|
139
|
+
overrun: bin.bool, // bool
|
|
140
|
+
samples: bin.arrayOf(bin.i16, 10), // short[10]
|
|
141
|
+
});
|
|
107
142
|
export const actuators_solenoid_SolenoidStatus = bin.object({
|
|
108
143
|
power_state: bin.u8, // actuators::solenoid::PowerState
|
|
109
144
|
opening: bin.u8, // actuators::solenoid::Opening
|
|
110
145
|
});
|
|
146
|
+
export const HeartBeatTelemetry = bin.object({
|
|
147
|
+
message: bin.arrayOf(bin.i8, 16), // char[16]
|
|
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
|
+
export const fsm_FsmStatus = bin.object({
|
|
175
|
+
state_entry_time_ms: bin.u32, // unsigned int
|
|
176
|
+
state_time_ms: bin.u32, // unsigned int
|
|
177
|
+
current_state: bin.u8, // StateId
|
|
178
|
+
previous_state: bin.u8, // StateId
|
|
179
|
+
last_event: bin.u8, // Event
|
|
180
|
+
});
|
|
111
181
|
export const spec = {
|
|
112
182
|
actuators_servo_ServoStatus: {
|
|
113
183
|
port: 5003,
|
|
@@ -122,6 +192,11 @@ export const spec = {
|
|
|
122
192
|
schema: BldcTelemetry,
|
|
123
193
|
enums: {},
|
|
124
194
|
},
|
|
195
|
+
sensors_pressure_PressureBatch: {
|
|
196
|
+
port: 5002,
|
|
197
|
+
schema: sensors_pressure_PressureBatch,
|
|
198
|
+
enums: {},
|
|
199
|
+
},
|
|
125
200
|
actuators_solenoid_SolenoidStatus: {
|
|
126
201
|
port: 5004,
|
|
127
202
|
schema: actuators_solenoid_SolenoidStatus,
|
|
@@ -130,5 +205,23 @@ export const spec = {
|
|
|
130
205
|
opening: actuators_solenoid_Opening,
|
|
131
206
|
},
|
|
132
207
|
},
|
|
208
|
+
HeartBeatTelemetry: {
|
|
209
|
+
schema: HeartBeatTelemetry,
|
|
210
|
+
enums: {},
|
|
211
|
+
},
|
|
212
|
+
RegulatorStatusArrayPacket: {
|
|
213
|
+
port: 5005,
|
|
214
|
+
schema: RegulatorStatusArrayPacket,
|
|
215
|
+
enums: {},
|
|
216
|
+
},
|
|
217
|
+
fsm_FsmStatus: {
|
|
218
|
+
port: 5001,
|
|
219
|
+
schema: fsm_FsmStatus,
|
|
220
|
+
enums: {
|
|
221
|
+
current_state: StateId,
|
|
222
|
+
previous_state: StateId,
|
|
223
|
+
last_event: Event,
|
|
224
|
+
},
|
|
225
|
+
},
|
|
133
226
|
};
|
|
134
227
|
export default spec;
|
|
@@ -5,58 +5,46 @@ declare class Float64Schema extends Schema<number> {
|
|
|
5
5
|
write(output: ISerialOutput, value: number): void;
|
|
6
6
|
measure(_: number | typeof MaxValue, measurer?: IMeasurer): IMeasurer;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const AccelerationData: import("typed-binary").ObjectSchema<{
|
|
9
9
|
acc_x: import("typed-binary").Float32Schema;
|
|
10
10
|
acc_y: import("typed-binary").Float32Schema;
|
|
11
11
|
acc_z: import("typed-binary").Float32Schema;
|
|
12
12
|
}>;
|
|
13
|
-
export type
|
|
14
|
-
export declare const
|
|
15
|
-
data_valid: import("typed-binary").BoolSchema;
|
|
13
|
+
export type AccelerationData = bin.Parsed<typeof AccelerationData>;
|
|
14
|
+
export declare const GNSS_DATA: import("typed-binary").ObjectSchema<{
|
|
16
15
|
lat: Float64Schema;
|
|
17
16
|
lon: Float64Schema;
|
|
18
|
-
hAcc: import("typed-binary").Uint32Schema;
|
|
19
|
-
vAcc: import("typed-binary").Uint32Schema;
|
|
20
17
|
hMSL: Float64Schema;
|
|
21
18
|
gSpeed: Float64Schema;
|
|
22
19
|
headMot: Float64Schema;
|
|
23
|
-
velN: import("typed-binary").Int32Schema;
|
|
24
|
-
velE: import("typed-binary").Int32Schema;
|
|
25
|
-
velD: import("typed-binary").Int32Schema;
|
|
26
20
|
numSV: import("typed-binary").ByteSchema;
|
|
27
21
|
}>;
|
|
28
|
-
export type
|
|
29
|
-
export declare const
|
|
30
|
-
loadcell_value:
|
|
22
|
+
export type GNSS_DATA = bin.Parsed<typeof GNSS_DATA>;
|
|
23
|
+
export declare const Loadcell: import("typed-binary").ObjectSchema<{
|
|
24
|
+
loadcell_value: import("typed-binary").Float32Schema;
|
|
31
25
|
}>;
|
|
32
|
-
export type
|
|
33
|
-
export declare const
|
|
26
|
+
export type Loadcell = bin.Parsed<typeof Loadcell>;
|
|
27
|
+
export declare const SensorData: import("typed-binary").ObjectSchema<{
|
|
34
28
|
iim_acc_data: import("typed-binary").ObjectSchema<{
|
|
35
29
|
acc_x: import("typed-binary").Float32Schema;
|
|
36
30
|
acc_y: import("typed-binary").Float32Schema;
|
|
37
31
|
acc_z: import("typed-binary").Float32Schema;
|
|
38
32
|
}>;
|
|
39
33
|
gnss_data: import("typed-binary").ObjectSchema<{
|
|
40
|
-
data_valid: import("typed-binary").BoolSchema;
|
|
41
34
|
lat: Float64Schema;
|
|
42
35
|
lon: Float64Schema;
|
|
43
|
-
hAcc: import("typed-binary").Uint32Schema;
|
|
44
|
-
vAcc: import("typed-binary").Uint32Schema;
|
|
45
36
|
hMSL: Float64Schema;
|
|
46
37
|
gSpeed: Float64Schema;
|
|
47
38
|
headMot: Float64Schema;
|
|
48
|
-
velN: import("typed-binary").Int32Schema;
|
|
49
|
-
velE: import("typed-binary").Int32Schema;
|
|
50
|
-
velD: import("typed-binary").Int32Schema;
|
|
51
39
|
numSV: import("typed-binary").ByteSchema;
|
|
52
40
|
}>;
|
|
53
41
|
loadcell_data: import("typed-binary").ObjectSchema<{
|
|
54
|
-
loadcell_value:
|
|
42
|
+
loadcell_value: import("typed-binary").Float32Schema;
|
|
55
43
|
}>;
|
|
56
44
|
}>;
|
|
57
|
-
export type
|
|
45
|
+
export type SensorData = bin.Parsed<typeof SensorData>;
|
|
58
46
|
export declare const spec: {
|
|
59
|
-
|
|
47
|
+
SensorData: {
|
|
60
48
|
port: number;
|
|
61
49
|
schema: import("typed-binary").ObjectSchema<{
|
|
62
50
|
iim_acc_data: import("typed-binary").ObjectSchema<{
|
|
@@ -65,21 +53,15 @@ export declare const spec: {
|
|
|
65
53
|
acc_z: import("typed-binary").Float32Schema;
|
|
66
54
|
}>;
|
|
67
55
|
gnss_data: import("typed-binary").ObjectSchema<{
|
|
68
|
-
data_valid: import("typed-binary").BoolSchema;
|
|
69
56
|
lat: Float64Schema;
|
|
70
57
|
lon: Float64Schema;
|
|
71
|
-
hAcc: import("typed-binary").Uint32Schema;
|
|
72
|
-
vAcc: import("typed-binary").Uint32Schema;
|
|
73
58
|
hMSL: Float64Schema;
|
|
74
59
|
gSpeed: Float64Schema;
|
|
75
60
|
headMot: Float64Schema;
|
|
76
|
-
velN: import("typed-binary").Int32Schema;
|
|
77
|
-
velE: import("typed-binary").Int32Schema;
|
|
78
|
-
velD: import("typed-binary").Int32Schema;
|
|
79
61
|
numSV: import("typed-binary").ByteSchema;
|
|
80
62
|
}>;
|
|
81
63
|
loadcell_data: import("typed-binary").ObjectSchema<{
|
|
82
|
-
loadcell_value:
|
|
64
|
+
loadcell_value: import("typed-binary").Float32Schema;
|
|
83
65
|
}>;
|
|
84
66
|
}>;
|
|
85
67
|
enums: {
|
|
@@ -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 15:15:45. 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,37 +60,31 @@ 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
|
|
63
|
+
export const AccelerationData = bin.object({
|
|
64
64
|
acc_x: bin.f32, // float
|
|
65
65
|
acc_y: bin.f32, // float
|
|
66
66
|
acc_z: bin.f32, // float
|
|
67
67
|
});
|
|
68
|
-
export const
|
|
69
|
-
data_valid: bin.bool, // bool
|
|
68
|
+
export const GNSS_DATA = bin.object({
|
|
70
69
|
lat: f64, // double
|
|
71
70
|
lon: f64, // double
|
|
72
|
-
hAcc: bin.u32, // unsigned int
|
|
73
|
-
vAcc: bin.u32, // unsigned int
|
|
74
71
|
hMSL: f64, // double
|
|
75
72
|
gSpeed: f64, // double
|
|
76
73
|
headMot: f64, // double
|
|
77
|
-
velN: bin.i32, // int
|
|
78
|
-
velE: bin.i32, // int
|
|
79
|
-
velD: bin.i32, // int
|
|
80
74
|
numSV: bin.u8, // unsigned char
|
|
81
75
|
});
|
|
82
|
-
export const
|
|
83
|
-
loadcell_value:
|
|
76
|
+
export const Loadcell = bin.object({
|
|
77
|
+
loadcell_value: bin.f32, // float
|
|
84
78
|
});
|
|
85
|
-
export const
|
|
86
|
-
iim_acc_data:
|
|
87
|
-
gnss_data:
|
|
88
|
-
loadcell_data:
|
|
79
|
+
export const SensorData = bin.object({
|
|
80
|
+
iim_acc_data: AccelerationData, // AccelerationData
|
|
81
|
+
gnss_data: GNSS_DATA, // GNSS_DATA
|
|
82
|
+
loadcell_data: Loadcell, // Loadcell
|
|
89
83
|
});
|
|
90
84
|
export const spec = {
|
|
91
|
-
|
|
85
|
+
SensorData: {
|
|
92
86
|
port: 3001,
|
|
93
|
-
schema:
|
|
87
|
+
schema: SensorData,
|
|
94
88
|
enums: {
|
|
95
89
|
iim_acc_data: {},
|
|
96
90
|
gnss_data: {},
|