fossekall-interface 0.1.137 → 0.1.139
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 +11 -0
- package/dist/generated/ecu/commands.js +9 -1
- package/dist/generated/ecu/commands.json +14 -0
- package/dist/generated/ecu/telemetry.d.ts +97 -17
- package/dist/generated/ecu/telemetry.js +46 -10
- package/dist/generated/ecu/telemetry.json +138 -67
- package/dist/generated/fc/commands.json +5 -0
- package/dist/generated/fc/index.d.ts +2 -0
- package/dist/generated/fc/index.js +2 -0
- package/dist/generated/fc/telemetry.json +310 -0
- package/package.json +1 -1
|
@@ -227,6 +227,10 @@ export declare const ControlPolicyCommands_SetManualPolicyPayload: import("typed
|
|
|
227
227
|
value: import("typed-binary").ByteSchema;
|
|
228
228
|
}>;
|
|
229
229
|
export type ControlPolicyCommands_SetManualPolicyPayload = bin.Parsed<typeof ControlPolicyCommands_SetManualPolicyPayload>;
|
|
230
|
+
export declare const LinkMonitorCommands_MarkSeenPayload: import("typed-binary").ObjectSchema<{
|
|
231
|
+
payload: import("typed-binary").ByteSchema;
|
|
232
|
+
}>;
|
|
233
|
+
export type LinkMonitorCommands_MarkSeenPayload = bin.Parsed<typeof LinkMonitorCommands_MarkSeenPayload>;
|
|
230
234
|
export declare const RegulatorCommands_SetEnabledPayload: import("typed-binary").ObjectSchema<{
|
|
231
235
|
regulator_id: import("typed-binary").ByteSchema;
|
|
232
236
|
value: import("typed-binary").ByteSchema;
|
|
@@ -494,6 +498,13 @@ export declare const spec: {
|
|
|
494
498
|
};
|
|
495
499
|
};
|
|
496
500
|
};
|
|
501
|
+
LinkMonitorCommands_MarkSeenPayload: {
|
|
502
|
+
id: number;
|
|
503
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
504
|
+
payload: import("typed-binary").ByteSchema;
|
|
505
|
+
}>;
|
|
506
|
+
enums: {};
|
|
507
|
+
};
|
|
497
508
|
RegulatorCommands_SetEnabledPayload: {
|
|
498
509
|
id: number;
|
|
499
510
|
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-07-
|
|
2
|
+
// This file was generated by FRICC on 2026-07-08 20:01:08. 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;
|
|
@@ -202,6 +202,9 @@ export const SolenoidCommands_OpenCloseSolenoidPayload = bin.object({
|
|
|
202
202
|
export const ControlPolicyCommands_SetManualPolicyPayload = bin.object({
|
|
203
203
|
value: bin.u8, // ControlPolicyCommands::PolicyValue
|
|
204
204
|
});
|
|
205
|
+
export const LinkMonitorCommands_MarkSeenPayload = bin.object({
|
|
206
|
+
payload: bin.u8, // unsigned char
|
|
207
|
+
});
|
|
205
208
|
export const RegulatorCommands_SetEnabledPayload = bin.object({
|
|
206
209
|
regulator_id: bin.u8, // regulator::Id
|
|
207
210
|
value: bin.u8, // RegulatorCommands::RegulatorValue
|
|
@@ -310,6 +313,11 @@ export const spec = {
|
|
|
310
313
|
value: ControlPolicyCommands_PolicyValue,
|
|
311
314
|
},
|
|
312
315
|
},
|
|
316
|
+
LinkMonitorCommands_MarkSeenPayload: {
|
|
317
|
+
id: 128,
|
|
318
|
+
schema: LinkMonitorCommands_MarkSeenPayload,
|
|
319
|
+
enums: {},
|
|
320
|
+
},
|
|
313
321
|
RegulatorCommands_SetEnabledPayload: {
|
|
314
322
|
id: 112,
|
|
315
323
|
schema: RegulatorCommands_SetEnabledPayload,
|
|
@@ -419,6 +419,20 @@
|
|
|
419
419
|
],
|
|
420
420
|
"format_string": "<B"
|
|
421
421
|
},
|
|
422
|
+
"LinkMonitorCommands::MarkSeenPayload": {
|
|
423
|
+
"id": 128,
|
|
424
|
+
"kind": "struct",
|
|
425
|
+
"type": "LinkMonitorCommands::MarkSeenPayload",
|
|
426
|
+
"fields": [
|
|
427
|
+
{
|
|
428
|
+
"name": "payload",
|
|
429
|
+
"kind": "primitive",
|
|
430
|
+
"type": "unsigned char",
|
|
431
|
+
"format_string": "<B"
|
|
432
|
+
}
|
|
433
|
+
],
|
|
434
|
+
"format_string": "<B"
|
|
435
|
+
},
|
|
422
436
|
"RegulatorCommands::SetEnabledPayload": {
|
|
423
437
|
"id": 112,
|
|
424
438
|
"kind": "struct",
|
|
@@ -50,6 +50,7 @@ export declare const fsm_AbortReason: {
|
|
|
50
50
|
readonly FuelTankOverpressure: 2;
|
|
51
51
|
readonly OxTankOverpressure: 3;
|
|
52
52
|
readonly ChamberUnderpressure: 4;
|
|
53
|
+
readonly ConnectionLost: 5;
|
|
53
54
|
};
|
|
54
55
|
export type fsm_AbortReason = (typeof fsm_AbortReason)[keyof typeof fsm_AbortReason];
|
|
55
56
|
export declare const sensors_pressure_Id: {
|
|
@@ -63,6 +64,13 @@ export declare const sensors_pressure_Id: {
|
|
|
63
64
|
readonly Count: 7;
|
|
64
65
|
};
|
|
65
66
|
export type sensors_pressure_Id = (typeof sensors_pressure_Id)[keyof typeof sensors_pressure_Id];
|
|
67
|
+
export declare const sensors_level_Id: {
|
|
68
|
+
readonly Main: 0;
|
|
69
|
+
readonly LiquidRef: 1;
|
|
70
|
+
readonly GasRef: 2;
|
|
71
|
+
readonly Count: 3;
|
|
72
|
+
};
|
|
73
|
+
export type sensors_level_Id = (typeof sensors_level_Id)[keyof typeof sensors_level_Id];
|
|
66
74
|
export declare const actuators_servo_Id: {
|
|
67
75
|
readonly MainFuel: 0;
|
|
68
76
|
readonly MainOx: 1;
|
|
@@ -136,6 +144,7 @@ export type actuators_bldc_BldcTelemetry = bin.Parsed<typeof actuators_bldc_Bldc
|
|
|
136
144
|
export declare const BldcTelemetryPacket: import("typed-binary").ObjectSchema<{
|
|
137
145
|
bldc_id: import("typed-binary").ByteSchema;
|
|
138
146
|
fsm_state: import("typed-binary").ByteSchema;
|
|
147
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
139
148
|
telemetry: import("typed-binary").ObjectSchema<{
|
|
140
149
|
valve_position: import("typed-binary").Float32Schema;
|
|
141
150
|
motor_position: import("typed-binary").Float32Schema;
|
|
@@ -189,16 +198,56 @@ export declare const PressureSensorPacket: import("typed-binary").ObjectSchema<{
|
|
|
189
198
|
}>;
|
|
190
199
|
}>;
|
|
191
200
|
export type PressureSensorPacket = bin.Parsed<typeof PressureSensorPacket>;
|
|
201
|
+
export declare const sensors_capacitance_CapacitanceSample: import("typed-binary").ObjectSchema<{
|
|
202
|
+
offset_cpf: import("typed-binary").Int16Schema;
|
|
203
|
+
raw_cpf: import("typed-binary").Int16Schema;
|
|
204
|
+
adjusted_cpf: import("typed-binary").Int16Schema;
|
|
205
|
+
}>;
|
|
206
|
+
export type sensors_capacitance_CapacitanceSample = bin.Parsed<typeof sensors_capacitance_CapacitanceSample>;
|
|
207
|
+
export declare const sensors_capacitance_CapacitanceBatch: import("typed-binary").ObjectSchema<{
|
|
208
|
+
t0_us: UInt64Schema;
|
|
209
|
+
dt_us: import("typed-binary").Uint32Schema;
|
|
210
|
+
count: import("typed-binary").ByteSchema;
|
|
211
|
+
seq: import("typed-binary").ByteSchema;
|
|
212
|
+
samples: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
|
|
213
|
+
offset_cpf: import("typed-binary").Int16Schema;
|
|
214
|
+
raw_cpf: import("typed-binary").Int16Schema;
|
|
215
|
+
adjusted_cpf: import("typed-binary").Int16Schema;
|
|
216
|
+
}>>;
|
|
217
|
+
}>;
|
|
218
|
+
export type sensors_capacitance_CapacitanceBatch = bin.Parsed<typeof sensors_capacitance_CapacitanceBatch>;
|
|
219
|
+
export declare const CapacitanceSensorPacket: import("typed-binary").ObjectSchema<{
|
|
220
|
+
sensor_id: import("typed-binary").ByteSchema;
|
|
221
|
+
data: import("typed-binary").ObjectSchema<{
|
|
222
|
+
t0_us: UInt64Schema;
|
|
223
|
+
dt_us: import("typed-binary").Uint32Schema;
|
|
224
|
+
count: import("typed-binary").ByteSchema;
|
|
225
|
+
seq: import("typed-binary").ByteSchema;
|
|
226
|
+
samples: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
|
|
227
|
+
offset_cpf: import("typed-binary").Int16Schema;
|
|
228
|
+
raw_cpf: import("typed-binary").Int16Schema;
|
|
229
|
+
adjusted_cpf: import("typed-binary").Int16Schema;
|
|
230
|
+
}>>;
|
|
231
|
+
}>;
|
|
232
|
+
}>;
|
|
233
|
+
export type CapacitanceSensorPacket = bin.Parsed<typeof CapacitanceSensorPacket>;
|
|
234
|
+
export declare const sensors_capacitance_LevelBatch: import("typed-binary").ObjectSchema<{
|
|
235
|
+
t0_us: UInt64Schema;
|
|
236
|
+
dt_us: import("typed-binary").Uint32Schema;
|
|
237
|
+
count: import("typed-binary").ByteSchema;
|
|
238
|
+
seq: import("typed-binary").ByteSchema;
|
|
239
|
+
heights_m: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
240
|
+
}>;
|
|
241
|
+
export type sensors_capacitance_LevelBatch = bin.Parsed<typeof sensors_capacitance_LevelBatch>;
|
|
192
242
|
export declare const LevelTelemetryPacket: import("typed-binary").ObjectSchema<{
|
|
193
243
|
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
liquid_cpf: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
244
|
+
data: import("typed-binary").ObjectSchema<{
|
|
245
|
+
t0_us: UInt64Schema;
|
|
246
|
+
dt_us: import("typed-binary").Uint32Schema;
|
|
247
|
+
count: import("typed-binary").ByteSchema;
|
|
248
|
+
seq: import("typed-binary").ByteSchema;
|
|
249
|
+
heights_m: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
250
|
+
}>;
|
|
202
251
|
}>;
|
|
203
252
|
export type LevelTelemetryPacket = bin.Parsed<typeof LevelTelemetryPacket>;
|
|
204
253
|
export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
|
|
@@ -396,6 +445,7 @@ export declare const spec: {
|
|
|
396
445
|
schema: import("typed-binary").ObjectSchema<{
|
|
397
446
|
bldc_id: import("typed-binary").ByteSchema;
|
|
398
447
|
fsm_state: import("typed-binary").ByteSchema;
|
|
448
|
+
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
399
449
|
telemetry: import("typed-binary").ObjectSchema<{
|
|
400
450
|
valve_position: import("typed-binary").Float32Schema;
|
|
401
451
|
motor_position: import("typed-binary").Float32Schema;
|
|
@@ -491,6 +541,7 @@ export declare const spec: {
|
|
|
491
541
|
readonly FuelTankOverpressure: 2;
|
|
492
542
|
readonly OxTankOverpressure: 3;
|
|
493
543
|
readonly ChamberUnderpressure: 4;
|
|
544
|
+
readonly ConnectionLost: 5;
|
|
494
545
|
};
|
|
495
546
|
};
|
|
496
547
|
};
|
|
@@ -523,21 +574,50 @@ export declare const spec: {
|
|
|
523
574
|
data: {};
|
|
524
575
|
};
|
|
525
576
|
};
|
|
577
|
+
CapacitanceSensorPacket: {
|
|
578
|
+
port: number;
|
|
579
|
+
fragment: string;
|
|
580
|
+
packed: null;
|
|
581
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
582
|
+
sensor_id: import("typed-binary").ByteSchema;
|
|
583
|
+
data: import("typed-binary").ObjectSchema<{
|
|
584
|
+
t0_us: UInt64Schema;
|
|
585
|
+
dt_us: import("typed-binary").Uint32Schema;
|
|
586
|
+
count: import("typed-binary").ByteSchema;
|
|
587
|
+
seq: import("typed-binary").ByteSchema;
|
|
588
|
+
samples: import("typed-binary").ArraySchema<import("typed-binary").ObjectSchema<{
|
|
589
|
+
offset_cpf: import("typed-binary").Int16Schema;
|
|
590
|
+
raw_cpf: import("typed-binary").Int16Schema;
|
|
591
|
+
adjusted_cpf: import("typed-binary").Int16Schema;
|
|
592
|
+
}>>;
|
|
593
|
+
}>;
|
|
594
|
+
}>;
|
|
595
|
+
enums: {
|
|
596
|
+
sensor_id: {
|
|
597
|
+
readonly Main: 0;
|
|
598
|
+
readonly LiquidRef: 1;
|
|
599
|
+
readonly GasRef: 2;
|
|
600
|
+
readonly Count: 3;
|
|
601
|
+
};
|
|
602
|
+
data: {};
|
|
603
|
+
};
|
|
604
|
+
};
|
|
526
605
|
LevelTelemetryPacket: {
|
|
527
606
|
port: number;
|
|
528
607
|
packed: null;
|
|
529
608
|
schema: import("typed-binary").ObjectSchema<{
|
|
530
609
|
timestamp_ms: import("typed-binary").Uint32Schema;
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
liquid_cpf: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
|
|
610
|
+
data: import("typed-binary").ObjectSchema<{
|
|
611
|
+
t0_us: UInt64Schema;
|
|
612
|
+
dt_us: import("typed-binary").Uint32Schema;
|
|
613
|
+
count: import("typed-binary").ByteSchema;
|
|
614
|
+
seq: import("typed-binary").ByteSchema;
|
|
615
|
+
heights_m: import("typed-binary").ArraySchema<import("typed-binary").Float32Schema>;
|
|
616
|
+
}>;
|
|
539
617
|
}>;
|
|
540
|
-
enums: {
|
|
618
|
+
enums: {
|
|
619
|
+
data: {};
|
|
620
|
+
};
|
|
541
621
|
};
|
|
542
622
|
ServoStatusPacket: {
|
|
543
623
|
port: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-07-
|
|
2
|
+
// This file was generated by FRICC on 2026-07-08 20:01:11. 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;
|
|
@@ -96,6 +96,7 @@ export const fsm_AbortReason = {
|
|
|
96
96
|
FuelTankOverpressure: 2,
|
|
97
97
|
OxTankOverpressure: 3,
|
|
98
98
|
ChamberUnderpressure: 4,
|
|
99
|
+
ConnectionLost: 5,
|
|
99
100
|
};
|
|
100
101
|
export const sensors_pressure_Id = {
|
|
101
102
|
N2Tank: 0,
|
|
@@ -107,6 +108,12 @@ export const sensors_pressure_Id = {
|
|
|
107
108
|
Chamber: 6,
|
|
108
109
|
Count: 7,
|
|
109
110
|
};
|
|
111
|
+
export const sensors_level_Id = {
|
|
112
|
+
Main: 0,
|
|
113
|
+
LiquidRef: 1,
|
|
114
|
+
GasRef: 2,
|
|
115
|
+
Count: 3,
|
|
116
|
+
};
|
|
110
117
|
export const actuators_servo_Id = {
|
|
111
118
|
MainFuel: 0,
|
|
112
119
|
MainOx: 1,
|
|
@@ -171,6 +178,7 @@ export const actuators_bldc_BldcTelemetry = bin.object({
|
|
|
171
178
|
export const BldcTelemetryPacket = bin.object({
|
|
172
179
|
bldc_id: bin.u8, // actuators::bldc::Id
|
|
173
180
|
fsm_state: bin.u8, // StateId
|
|
181
|
+
timestamp_ms: bin.u32, // unsigned int
|
|
174
182
|
telemetry: actuators_bldc_BldcTelemetry, // actuators::bldc::BldcTelemetry
|
|
175
183
|
});
|
|
176
184
|
export const fsm_FsmStatus = bin.object({
|
|
@@ -196,16 +204,32 @@ export const PressureSensorPacket = bin.object({
|
|
|
196
204
|
sensor_id: bin.u8, // sensors::pressure::Id
|
|
197
205
|
data: sensors_pressure_PressureBatch, // sensors::pressure::PressureBatch
|
|
198
206
|
});
|
|
207
|
+
export const sensors_capacitance_CapacitanceSample = bin.object({
|
|
208
|
+
offset_cpf: bin.i16, // short
|
|
209
|
+
raw_cpf: bin.i16, // short
|
|
210
|
+
adjusted_cpf: bin.i16, // short
|
|
211
|
+
});
|
|
212
|
+
export const sensors_capacitance_CapacitanceBatch = bin.object({
|
|
213
|
+
t0_us: u64, // unsigned long long
|
|
214
|
+
dt_us: bin.u32, // unsigned int
|
|
215
|
+
count: bin.u8, // unsigned char
|
|
216
|
+
seq: bin.u8, // unsigned char
|
|
217
|
+
samples: bin.arrayOf(sensors_capacitance_CapacitanceSample, 8), // sensors::capacitance::CapacitanceSample[8]
|
|
218
|
+
});
|
|
219
|
+
export const CapacitanceSensorPacket = bin.object({
|
|
220
|
+
sensor_id: bin.u8, // sensors::level::Id
|
|
221
|
+
data: sensors_capacitance_CapacitanceBatch, // sensors::capacitance::CapacitanceBatch
|
|
222
|
+
});
|
|
223
|
+
export const sensors_capacitance_LevelBatch = bin.object({
|
|
224
|
+
t0_us: u64, // unsigned long long
|
|
225
|
+
dt_us: bin.u32, // unsigned int
|
|
226
|
+
count: bin.u8, // unsigned char
|
|
227
|
+
seq: bin.u8, // unsigned char
|
|
228
|
+
heights_m: bin.arrayOf(bin.f32, 10), // float[10]
|
|
229
|
+
});
|
|
199
230
|
export const LevelTelemetryPacket = bin.object({
|
|
200
231
|
timestamp_ms: bin.u32, // unsigned int
|
|
201
|
-
|
|
202
|
-
height_m: bin.f32, // float
|
|
203
|
-
main_count: bin.u8, // unsigned char
|
|
204
|
-
gas_count: bin.u8, // unsigned char
|
|
205
|
-
liquid_count: bin.u8, // unsigned char
|
|
206
|
-
main_cpf: bin.arrayOf(bin.i16, 8), // short[8]
|
|
207
|
-
gas_cpf: bin.arrayOf(bin.i16, 8), // short[8]
|
|
208
|
-
liquid_cpf: bin.arrayOf(bin.i16, 8), // short[8]
|
|
232
|
+
data: sensors_capacitance_LevelBatch, // sensors::capacitance::LevelBatch
|
|
209
233
|
});
|
|
210
234
|
export const actuators_servo_ServoStatus = bin.object({
|
|
211
235
|
commanded_angle_deg: bin.f32, // float
|
|
@@ -334,11 +358,23 @@ export const spec = {
|
|
|
334
358
|
data: {},
|
|
335
359
|
},
|
|
336
360
|
},
|
|
361
|
+
CapacitanceSensorPacket: {
|
|
362
|
+
port: 5011,
|
|
363
|
+
fragment: "sensor_id",
|
|
364
|
+
packed: null,
|
|
365
|
+
schema: CapacitanceSensorPacket,
|
|
366
|
+
enums: {
|
|
367
|
+
sensor_id: sensors_level_Id,
|
|
368
|
+
data: {},
|
|
369
|
+
},
|
|
370
|
+
},
|
|
337
371
|
LevelTelemetryPacket: {
|
|
338
372
|
port: 5010,
|
|
339
373
|
packed: null,
|
|
340
374
|
schema: LevelTelemetryPacket,
|
|
341
|
-
enums: {
|
|
375
|
+
enums: {
|
|
376
|
+
data: {},
|
|
377
|
+
},
|
|
342
378
|
},
|
|
343
379
|
ServoStatusPacket: {
|
|
344
380
|
port: 5003,
|
|
@@ -45,6 +45,12 @@
|
|
|
45
45
|
"type": "StateId",
|
|
46
46
|
"format_string": "<B"
|
|
47
47
|
},
|
|
48
|
+
{
|
|
49
|
+
"name": "timestamp_ms",
|
|
50
|
+
"kind": "primitive",
|
|
51
|
+
"type": "unsigned int",
|
|
52
|
+
"format_string": "<I"
|
|
53
|
+
},
|
|
48
54
|
{
|
|
49
55
|
"name": "telemetry",
|
|
50
56
|
"kind": "struct",
|
|
@@ -108,7 +114,7 @@
|
|
|
108
114
|
"format_string": "<ffffffffB"
|
|
109
115
|
}
|
|
110
116
|
],
|
|
111
|
-
"format_string": "<
|
|
117
|
+
"format_string": "<BBIffffffffB"
|
|
112
118
|
},
|
|
113
119
|
"FsmStatusPacket": {
|
|
114
120
|
"port": 5001,
|
|
@@ -229,6 +235,86 @@
|
|
|
229
235
|
],
|
|
230
236
|
"format_string": "<BQIBBhhhhhhhhhhhhhhhhhhhh"
|
|
231
237
|
},
|
|
238
|
+
"CapacitanceSensorPacket": {
|
|
239
|
+
"port": 5011,
|
|
240
|
+
"fragment": "sensor_id",
|
|
241
|
+
"packed": null,
|
|
242
|
+
"kind": "struct",
|
|
243
|
+
"type": "CapacitanceSensorPacket",
|
|
244
|
+
"fields": [
|
|
245
|
+
{
|
|
246
|
+
"name": "sensor_id",
|
|
247
|
+
"kind": "enum",
|
|
248
|
+
"type": "sensors::level::Id",
|
|
249
|
+
"format_string": "<B"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "data",
|
|
253
|
+
"kind": "struct",
|
|
254
|
+
"type": "sensors::capacitance::CapacitanceBatch",
|
|
255
|
+
"fields": [
|
|
256
|
+
{
|
|
257
|
+
"name": "t0_us",
|
|
258
|
+
"kind": "primitive",
|
|
259
|
+
"type": "unsigned long long",
|
|
260
|
+
"format_string": "<Q"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "dt_us",
|
|
264
|
+
"kind": "primitive",
|
|
265
|
+
"type": "unsigned int",
|
|
266
|
+
"format_string": "<I"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "count",
|
|
270
|
+
"kind": "primitive",
|
|
271
|
+
"type": "unsigned char",
|
|
272
|
+
"format_string": "<B"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "seq",
|
|
276
|
+
"kind": "primitive",
|
|
277
|
+
"type": "unsigned char",
|
|
278
|
+
"format_string": "<B"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "samples",
|
|
282
|
+
"kind": "array",
|
|
283
|
+
"type": "sensors::capacitance::CapacitanceSample[8]",
|
|
284
|
+
"element": {
|
|
285
|
+
"kind": "struct",
|
|
286
|
+
"type": "sensors::capacitance::CapacitanceSample",
|
|
287
|
+
"fields": [
|
|
288
|
+
{
|
|
289
|
+
"name": "offset_cpf",
|
|
290
|
+
"kind": "primitive",
|
|
291
|
+
"type": "short",
|
|
292
|
+
"format_string": "<h"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "raw_cpf",
|
|
296
|
+
"kind": "primitive",
|
|
297
|
+
"type": "short",
|
|
298
|
+
"format_string": "<h"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "adjusted_cpf",
|
|
302
|
+
"kind": "primitive",
|
|
303
|
+
"type": "short",
|
|
304
|
+
"format_string": "<h"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"format_string": "<hhh"
|
|
308
|
+
},
|
|
309
|
+
"count": 8,
|
|
310
|
+
"format_string": "<hhhhhhhhhhhhhhhhhhhhhhhh"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"format_string": "<QIBBhhhhhhhhhhhhhhhhhhhhhhhh"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"format_string": "<BQIBBhhhhhhhhhhhhhhhhhhhhhhhh"
|
|
317
|
+
},
|
|
232
318
|
"LevelTelemetryPacket": {
|
|
233
319
|
"port": 5010,
|
|
234
320
|
"packed": null,
|
|
@@ -242,73 +328,51 @@
|
|
|
242
328
|
"format_string": "<I"
|
|
243
329
|
},
|
|
244
330
|
{
|
|
245
|
-
"name": "
|
|
246
|
-
"kind": "
|
|
247
|
-
"type": "
|
|
248
|
-
"
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
"name": "gas_cpf",
|
|
288
|
-
"kind": "array",
|
|
289
|
-
"type": "short[8]",
|
|
290
|
-
"element": {
|
|
291
|
-
"kind": "primitive",
|
|
292
|
-
"type": "short",
|
|
293
|
-
"format_string": "<h"
|
|
294
|
-
},
|
|
295
|
-
"count": 8,
|
|
296
|
-
"format_string": "<hhhhhhhh"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"name": "liquid_cpf",
|
|
300
|
-
"kind": "array",
|
|
301
|
-
"type": "short[8]",
|
|
302
|
-
"element": {
|
|
303
|
-
"kind": "primitive",
|
|
304
|
-
"type": "short",
|
|
305
|
-
"format_string": "<h"
|
|
306
|
-
},
|
|
307
|
-
"count": 8,
|
|
308
|
-
"format_string": "<hhhhhhhh"
|
|
331
|
+
"name": "data",
|
|
332
|
+
"kind": "struct",
|
|
333
|
+
"type": "sensors::capacitance::LevelBatch",
|
|
334
|
+
"fields": [
|
|
335
|
+
{
|
|
336
|
+
"name": "t0_us",
|
|
337
|
+
"kind": "primitive",
|
|
338
|
+
"type": "unsigned long long",
|
|
339
|
+
"format_string": "<Q"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "dt_us",
|
|
343
|
+
"kind": "primitive",
|
|
344
|
+
"type": "unsigned int",
|
|
345
|
+
"format_string": "<I"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "count",
|
|
349
|
+
"kind": "primitive",
|
|
350
|
+
"type": "unsigned char",
|
|
351
|
+
"format_string": "<B"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "seq",
|
|
355
|
+
"kind": "primitive",
|
|
356
|
+
"type": "unsigned char",
|
|
357
|
+
"format_string": "<B"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "heights_m",
|
|
361
|
+
"kind": "array",
|
|
362
|
+
"type": "float[10]",
|
|
363
|
+
"element": {
|
|
364
|
+
"kind": "primitive",
|
|
365
|
+
"type": "float",
|
|
366
|
+
"format_string": "<f"
|
|
367
|
+
},
|
|
368
|
+
"count": 10,
|
|
369
|
+
"format_string": "<ffffffffff"
|
|
370
|
+
}
|
|
371
|
+
],
|
|
372
|
+
"format_string": "<QIBBffffffffff"
|
|
309
373
|
}
|
|
310
374
|
],
|
|
311
|
-
"format_string": "<
|
|
375
|
+
"format_string": "<IQIBBffffffffff"
|
|
312
376
|
},
|
|
313
377
|
"ServoStatusPacket": {
|
|
314
378
|
"port": 5003,
|
|
@@ -844,7 +908,8 @@
|
|
|
844
908
|
"Manual": 1,
|
|
845
909
|
"FuelTankOverpressure": 2,
|
|
846
910
|
"OxTankOverpressure": 3,
|
|
847
|
-
"ChamberUnderpressure": 4
|
|
911
|
+
"ChamberUnderpressure": 4,
|
|
912
|
+
"ConnectionLost": 5
|
|
848
913
|
},
|
|
849
914
|
"sensors::pressure::Id": {
|
|
850
915
|
"N2Tank": 0,
|
|
@@ -856,6 +921,12 @@
|
|
|
856
921
|
"Chamber": 6,
|
|
857
922
|
"Count": 7
|
|
858
923
|
},
|
|
924
|
+
"sensors::level::Id": {
|
|
925
|
+
"Main": 0,
|
|
926
|
+
"LiquidRef": 1,
|
|
927
|
+
"GasRef": 2,
|
|
928
|
+
"Count": 3
|
|
929
|
+
},
|
|
859
930
|
"actuators::servo::Id": {
|
|
860
931
|
"MainFuel": 0,
|
|
861
932
|
"MainOx": 1,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { default as commandsJson } from "./commands.json";
|
|
1
2
|
export * as commands from "./commands";
|
|
2
3
|
export * as kalman from "./kalman";
|
|
3
4
|
export * as status from "./status";
|
|
5
|
+
export { default as telemetryJson } from "./telemetry.json";
|
|
4
6
|
export * as telemetry from "./telemetry";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { default as commandsJson } from "./commands.json";
|
|
1
2
|
export * as commands from "./commands";
|
|
2
3
|
export * as kalman from "./kalman";
|
|
3
4
|
export * as status from "./status";
|
|
5
|
+
export { default as telemetryJson } from "./telemetry.json";
|
|
4
6
|
export * as telemetry from "./telemetry";
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"structs": {
|
|
4
|
+
"Telemetry::SensorData": {
|
|
5
|
+
"port": 3001,
|
|
6
|
+
"kind": "struct",
|
|
7
|
+
"type": "Telemetry::SensorData",
|
|
8
|
+
"fields": [
|
|
9
|
+
{
|
|
10
|
+
"name": "gnss_data",
|
|
11
|
+
"kind": "struct",
|
|
12
|
+
"type": "Telemetry::GNSS_DATA",
|
|
13
|
+
"fields": [
|
|
14
|
+
{
|
|
15
|
+
"name": "data_valid",
|
|
16
|
+
"kind": "primitive",
|
|
17
|
+
"type": "unsigned char",
|
|
18
|
+
"format_string": "<B"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "numSV",
|
|
22
|
+
"kind": "primitive",
|
|
23
|
+
"type": "unsigned char",
|
|
24
|
+
"format_string": "<B"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "lat",
|
|
28
|
+
"kind": "primitive",
|
|
29
|
+
"type": "double",
|
|
30
|
+
"format_string": "<d"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "lon",
|
|
34
|
+
"kind": "primitive",
|
|
35
|
+
"type": "double",
|
|
36
|
+
"format_string": "<d"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "hMSL",
|
|
40
|
+
"kind": "primitive",
|
|
41
|
+
"type": "double",
|
|
42
|
+
"format_string": "<d"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "gSpeed",
|
|
46
|
+
"kind": "primitive",
|
|
47
|
+
"type": "double",
|
|
48
|
+
"format_string": "<d"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "headMot",
|
|
52
|
+
"kind": "primitive",
|
|
53
|
+
"type": "double",
|
|
54
|
+
"format_string": "<d"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "hAcc",
|
|
58
|
+
"kind": "primitive",
|
|
59
|
+
"type": "unsigned int",
|
|
60
|
+
"format_string": "<I"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "vAcc",
|
|
64
|
+
"kind": "primitive",
|
|
65
|
+
"type": "unsigned int",
|
|
66
|
+
"format_string": "<I"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "velN",
|
|
70
|
+
"kind": "primitive",
|
|
71
|
+
"type": "int",
|
|
72
|
+
"format_string": "<i"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "velE",
|
|
76
|
+
"kind": "primitive",
|
|
77
|
+
"type": "int",
|
|
78
|
+
"format_string": "<i"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "velD",
|
|
82
|
+
"kind": "primitive",
|
|
83
|
+
"type": "int",
|
|
84
|
+
"format_string": "<i"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"format_string": "<BBdddddIIiii"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "bme_data",
|
|
91
|
+
"kind": "struct",
|
|
92
|
+
"type": "Telemetry::BME280_DATA",
|
|
93
|
+
"fields": [
|
|
94
|
+
{
|
|
95
|
+
"name": "valid",
|
|
96
|
+
"kind": "primitive",
|
|
97
|
+
"type": "unsigned char",
|
|
98
|
+
"format_string": "<B"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "temperature",
|
|
102
|
+
"kind": "primitive",
|
|
103
|
+
"type": "float",
|
|
104
|
+
"format_string": "<f"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "pressure",
|
|
108
|
+
"kind": "primitive",
|
|
109
|
+
"type": "float",
|
|
110
|
+
"format_string": "<f"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "humidity",
|
|
114
|
+
"kind": "primitive",
|
|
115
|
+
"type": "float",
|
|
116
|
+
"format_string": "<f"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "timestamp",
|
|
120
|
+
"kind": "primitive",
|
|
121
|
+
"type": "unsigned int",
|
|
122
|
+
"format_string": "<I"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"format_string": "<BfffI"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "ms_data",
|
|
129
|
+
"kind": "struct",
|
|
130
|
+
"type": "Telemetry::MS5611_DATA",
|
|
131
|
+
"fields": [
|
|
132
|
+
{
|
|
133
|
+
"name": "valid",
|
|
134
|
+
"kind": "primitive",
|
|
135
|
+
"type": "unsigned char",
|
|
136
|
+
"format_string": "<B"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "temperature",
|
|
140
|
+
"kind": "primitive",
|
|
141
|
+
"type": "float",
|
|
142
|
+
"format_string": "<f"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "pressure",
|
|
146
|
+
"kind": "primitive",
|
|
147
|
+
"type": "float",
|
|
148
|
+
"format_string": "<f"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "timestamp",
|
|
152
|
+
"kind": "primitive",
|
|
153
|
+
"type": "unsigned int",
|
|
154
|
+
"format_string": "<I"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"format_string": "<BffI"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "icm_data",
|
|
161
|
+
"kind": "struct",
|
|
162
|
+
"type": "Telemetry::ICM40609D_DATA",
|
|
163
|
+
"fields": [
|
|
164
|
+
{
|
|
165
|
+
"name": "acc_m_per_ss",
|
|
166
|
+
"kind": "struct",
|
|
167
|
+
"type": "Telemetry::AccelerationData",
|
|
168
|
+
"fields": [
|
|
169
|
+
{
|
|
170
|
+
"name": "acc_x_m_per_ss",
|
|
171
|
+
"kind": "primitive",
|
|
172
|
+
"type": "float",
|
|
173
|
+
"format_string": "<f"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "acc_y_m_per_ss",
|
|
177
|
+
"kind": "primitive",
|
|
178
|
+
"type": "float",
|
|
179
|
+
"format_string": "<f"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "acc_z_m_per_ss",
|
|
183
|
+
"kind": "primitive",
|
|
184
|
+
"type": "float",
|
|
185
|
+
"format_string": "<f"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"format_string": "<fff"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "gyro",
|
|
192
|
+
"kind": "struct",
|
|
193
|
+
"type": "Telemetry::GyroData",
|
|
194
|
+
"fields": [
|
|
195
|
+
{
|
|
196
|
+
"name": "gyro_x",
|
|
197
|
+
"kind": "primitive",
|
|
198
|
+
"type": "float",
|
|
199
|
+
"format_string": "<f"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "gyro_y",
|
|
203
|
+
"kind": "primitive",
|
|
204
|
+
"type": "float",
|
|
205
|
+
"format_string": "<f"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "gyro_z",
|
|
209
|
+
"kind": "primitive",
|
|
210
|
+
"type": "float",
|
|
211
|
+
"format_string": "<f"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"format_string": "<fff"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "temperature_C",
|
|
218
|
+
"kind": "primitive",
|
|
219
|
+
"type": "float",
|
|
220
|
+
"format_string": "<f"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"format_string": "<fffffff"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "stim_data",
|
|
227
|
+
"kind": "struct",
|
|
228
|
+
"type": "Telemetry::STIM377H_DATA",
|
|
229
|
+
"fields": [
|
|
230
|
+
{
|
|
231
|
+
"name": "acc",
|
|
232
|
+
"kind": "struct",
|
|
233
|
+
"type": "Telemetry::AccelerationData",
|
|
234
|
+
"fields": [
|
|
235
|
+
{
|
|
236
|
+
"name": "acc_x_m_per_ss",
|
|
237
|
+
"kind": "primitive",
|
|
238
|
+
"type": "float",
|
|
239
|
+
"format_string": "<f"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "acc_y_m_per_ss",
|
|
243
|
+
"kind": "primitive",
|
|
244
|
+
"type": "float",
|
|
245
|
+
"format_string": "<f"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "acc_z_m_per_ss",
|
|
249
|
+
"kind": "primitive",
|
|
250
|
+
"type": "float",
|
|
251
|
+
"format_string": "<f"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"format_string": "<fff"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "gyro",
|
|
258
|
+
"kind": "struct",
|
|
259
|
+
"type": "Telemetry::GyroData",
|
|
260
|
+
"fields": [
|
|
261
|
+
{
|
|
262
|
+
"name": "gyro_x",
|
|
263
|
+
"kind": "primitive",
|
|
264
|
+
"type": "float",
|
|
265
|
+
"format_string": "<f"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "gyro_y",
|
|
269
|
+
"kind": "primitive",
|
|
270
|
+
"type": "float",
|
|
271
|
+
"format_string": "<f"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "gyro_z",
|
|
275
|
+
"kind": "primitive",
|
|
276
|
+
"type": "float",
|
|
277
|
+
"format_string": "<f"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"format_string": "<fff"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"format_string": "<ffffff"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "pressure_data",
|
|
287
|
+
"kind": "struct",
|
|
288
|
+
"type": "Telemetry::PressureData",
|
|
289
|
+
"fields": [
|
|
290
|
+
{
|
|
291
|
+
"name": "flotation_pressure",
|
|
292
|
+
"kind": "primitive",
|
|
293
|
+
"type": "float",
|
|
294
|
+
"format_string": "<f"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "separation_pressure",
|
|
298
|
+
"kind": "primitive",
|
|
299
|
+
"type": "float",
|
|
300
|
+
"format_string": "<f"
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"format_string": "<ff"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"format_string": "<BBdddddIIiiiBfffIBffIfffffffffffffff"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"enums": {}
|
|
310
|
+
}
|