fossekall-interface 0.1.138 → 0.1.140
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 +271 -17
- package/dist/generated/ecu/telemetry.js +109 -10
- package/dist/generated/ecu/telemetry.json +390 -67
- package/dist/generated/fc/commands.d.ts +1 -34
- package/dist/generated/fc/commands.js +3 -23
- package/dist/generated/fc/commands.json +5 -0
- package/dist/generated/fc/index.d.ts +4 -0
- package/dist/generated/fc/index.js +4 -0
- package/dist/generated/fc/kalman.d.ts +24 -0
- package/dist/generated/fc/kalman.js +74 -0
- package/dist/generated/fc/status.d.ts +123 -0
- package/dist/generated/fc/status.js +119 -0
- package/dist/generated/fc/telemetry.d.ts +0 -131
- package/dist/generated/fc/telemetry.js +1 -64
- package/dist/generated/fc/telemetry.json +310 -0
- package/dist/generated/fs/commands.js +1 -1
- package/dist/generated/fs/telemetry.d.ts +2 -0
- package/dist/generated/fs/telemetry.js +2 -1
- package/dist/generated/fs/telemetry.json +2 -1
- package/package.json +1 -1
|
@@ -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::capacitance::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,
|
|
@@ -806,6 +870,248 @@
|
|
|
806
870
|
}
|
|
807
871
|
],
|
|
808
872
|
"format_string": "<Iff"
|
|
873
|
+
},
|
|
874
|
+
"BmsTelemetryPacket": {
|
|
875
|
+
"port": 5012,
|
|
876
|
+
"kind": "struct",
|
|
877
|
+
"type": "BmsTelemetryPacket",
|
|
878
|
+
"fields": [
|
|
879
|
+
{
|
|
880
|
+
"name": "timestamp_ms",
|
|
881
|
+
"kind": "primitive",
|
|
882
|
+
"type": "unsigned int",
|
|
883
|
+
"format_string": "<I"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"name": "rail",
|
|
887
|
+
"kind": "struct",
|
|
888
|
+
"type": "sensors::bms::RailData",
|
|
889
|
+
"fields": [
|
|
890
|
+
{
|
|
891
|
+
"name": "vbat",
|
|
892
|
+
"kind": "struct",
|
|
893
|
+
"type": "sensors::bms::RailMeasurement",
|
|
894
|
+
"fields": [
|
|
895
|
+
{
|
|
896
|
+
"name": "current",
|
|
897
|
+
"kind": "primitive",
|
|
898
|
+
"type": "float",
|
|
899
|
+
"format_string": "<f"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"name": "volts",
|
|
903
|
+
"kind": "primitive",
|
|
904
|
+
"type": "float",
|
|
905
|
+
"format_string": "<f"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"name": "shunt_voltage",
|
|
909
|
+
"kind": "primitive",
|
|
910
|
+
"type": "float",
|
|
911
|
+
"format_string": "<f"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"name": "power",
|
|
915
|
+
"kind": "primitive",
|
|
916
|
+
"type": "float",
|
|
917
|
+
"format_string": "<f"
|
|
918
|
+
}
|
|
919
|
+
],
|
|
920
|
+
"format_string": "<ffff"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"name": "v_12",
|
|
924
|
+
"kind": "struct",
|
|
925
|
+
"type": "sensors::bms::RailMeasurement",
|
|
926
|
+
"fields": [
|
|
927
|
+
{
|
|
928
|
+
"name": "current",
|
|
929
|
+
"kind": "primitive",
|
|
930
|
+
"type": "float",
|
|
931
|
+
"format_string": "<f"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"name": "volts",
|
|
935
|
+
"kind": "primitive",
|
|
936
|
+
"type": "float",
|
|
937
|
+
"format_string": "<f"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"name": "shunt_voltage",
|
|
941
|
+
"kind": "primitive",
|
|
942
|
+
"type": "float",
|
|
943
|
+
"format_string": "<f"
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"name": "power",
|
|
947
|
+
"kind": "primitive",
|
|
948
|
+
"type": "float",
|
|
949
|
+
"format_string": "<f"
|
|
950
|
+
}
|
|
951
|
+
],
|
|
952
|
+
"format_string": "<ffff"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"name": "v_24",
|
|
956
|
+
"kind": "struct",
|
|
957
|
+
"type": "sensors::bms::RailMeasurement",
|
|
958
|
+
"fields": [
|
|
959
|
+
{
|
|
960
|
+
"name": "current",
|
|
961
|
+
"kind": "primitive",
|
|
962
|
+
"type": "float",
|
|
963
|
+
"format_string": "<f"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "volts",
|
|
967
|
+
"kind": "primitive",
|
|
968
|
+
"type": "float",
|
|
969
|
+
"format_string": "<f"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"name": "shunt_voltage",
|
|
973
|
+
"kind": "primitive",
|
|
974
|
+
"type": "float",
|
|
975
|
+
"format_string": "<f"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"name": "power",
|
|
979
|
+
"kind": "primitive",
|
|
980
|
+
"type": "float",
|
|
981
|
+
"format_string": "<f"
|
|
982
|
+
}
|
|
983
|
+
],
|
|
984
|
+
"format_string": "<ffff"
|
|
985
|
+
}
|
|
986
|
+
],
|
|
987
|
+
"format_string": "<ffffffffffff"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"name": "battery_pack",
|
|
991
|
+
"kind": "struct",
|
|
992
|
+
"type": "sensors::bms::BatteryPackData",
|
|
993
|
+
"fields": [
|
|
994
|
+
{
|
|
995
|
+
"name": "cell",
|
|
996
|
+
"kind": "array",
|
|
997
|
+
"type": "float[6]",
|
|
998
|
+
"element": {
|
|
999
|
+
"kind": "primitive",
|
|
1000
|
+
"type": "float",
|
|
1001
|
+
"format_string": "<f"
|
|
1002
|
+
},
|
|
1003
|
+
"count": 6,
|
|
1004
|
+
"format_string": "<ffffff"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "voltage",
|
|
1008
|
+
"kind": "primitive",
|
|
1009
|
+
"type": "float",
|
|
1010
|
+
"format_string": "<f"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"name": "current",
|
|
1014
|
+
"kind": "primitive",
|
|
1015
|
+
"type": "float",
|
|
1016
|
+
"format_string": "<f"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"name": "die_temperature",
|
|
1020
|
+
"kind": "primitive",
|
|
1021
|
+
"type": "float",
|
|
1022
|
+
"format_string": "<f"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"name": "balancing_mask",
|
|
1026
|
+
"kind": "primitive",
|
|
1027
|
+
"type": "unsigned char",
|
|
1028
|
+
"format_string": "<B"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"name": "alert",
|
|
1032
|
+
"kind": "primitive",
|
|
1033
|
+
"type": "bool",
|
|
1034
|
+
"format_string": "<?"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"name": "comms_ok",
|
|
1038
|
+
"kind": "primitive",
|
|
1039
|
+
"type": "bool",
|
|
1040
|
+
"format_string": "<?"
|
|
1041
|
+
}
|
|
1042
|
+
],
|
|
1043
|
+
"format_string": "<fffffffffB??"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"name": "charger",
|
|
1047
|
+
"kind": "struct",
|
|
1048
|
+
"type": "sensors::bms::ChargerData",
|
|
1049
|
+
"fields": [
|
|
1050
|
+
{
|
|
1051
|
+
"name": "vac",
|
|
1052
|
+
"kind": "primitive",
|
|
1053
|
+
"type": "double",
|
|
1054
|
+
"format_string": "<d"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"name": "vbat",
|
|
1058
|
+
"kind": "primitive",
|
|
1059
|
+
"type": "double",
|
|
1060
|
+
"format_string": "<d"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"name": "vsys",
|
|
1064
|
+
"kind": "primitive",
|
|
1065
|
+
"type": "double",
|
|
1066
|
+
"format_string": "<d"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"name": "iac",
|
|
1070
|
+
"kind": "primitive",
|
|
1071
|
+
"type": "double",
|
|
1072
|
+
"format_string": "<d"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"name": "ibat",
|
|
1076
|
+
"kind": "primitive",
|
|
1077
|
+
"type": "double",
|
|
1078
|
+
"format_string": "<d"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"name": "temperature",
|
|
1082
|
+
"kind": "primitive",
|
|
1083
|
+
"type": "double",
|
|
1084
|
+
"format_string": "<d"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"name": "charging",
|
|
1088
|
+
"kind": "primitive",
|
|
1089
|
+
"type": "bool",
|
|
1090
|
+
"format_string": "<?"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"name": "power_good",
|
|
1094
|
+
"kind": "primitive",
|
|
1095
|
+
"type": "bool",
|
|
1096
|
+
"format_string": "<?"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"name": "faults",
|
|
1100
|
+
"kind": "primitive",
|
|
1101
|
+
"type": "unsigned char",
|
|
1102
|
+
"format_string": "<B"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"name": "state",
|
|
1106
|
+
"kind": "enum",
|
|
1107
|
+
"type": "sensors::bms::ChargingStatus",
|
|
1108
|
+
"format_string": "<I"
|
|
1109
|
+
}
|
|
1110
|
+
],
|
|
1111
|
+
"format_string": "<dddddd??BI"
|
|
1112
|
+
}
|
|
1113
|
+
],
|
|
1114
|
+
"format_string": "<IfffffffffffffffffffffB??dddddd??BI"
|
|
809
1115
|
}
|
|
810
1116
|
},
|
|
811
1117
|
"enums": {
|
|
@@ -844,7 +1150,8 @@
|
|
|
844
1150
|
"Manual": 1,
|
|
845
1151
|
"FuelTankOverpressure": 2,
|
|
846
1152
|
"OxTankOverpressure": 3,
|
|
847
|
-
"ChamberUnderpressure": 4
|
|
1153
|
+
"ChamberUnderpressure": 4,
|
|
1154
|
+
"ConnectionLost": 5
|
|
848
1155
|
},
|
|
849
1156
|
"sensors::pressure::Id": {
|
|
850
1157
|
"N2Tank": 0,
|
|
@@ -856,6 +1163,12 @@
|
|
|
856
1163
|
"Chamber": 6,
|
|
857
1164
|
"Count": 7
|
|
858
1165
|
},
|
|
1166
|
+
"sensors::capacitance::Id": {
|
|
1167
|
+
"Main": 0,
|
|
1168
|
+
"LiquidRef": 1,
|
|
1169
|
+
"GasRef": 2,
|
|
1170
|
+
"Count": 3
|
|
1171
|
+
},
|
|
859
1172
|
"actuators::servo::Id": {
|
|
860
1173
|
"MainFuel": 0,
|
|
861
1174
|
"MainOx": 1,
|
|
@@ -901,6 +1214,16 @@
|
|
|
901
1214
|
"Chamber2": 6,
|
|
902
1215
|
"ExtraNodeOne": 7,
|
|
903
1216
|
"Count": 8
|
|
1217
|
+
},
|
|
1218
|
+
"sensors::bms::ChargingStatus": {
|
|
1219
|
+
"NotCharging": 0,
|
|
1220
|
+
"TrickleCharge": 1,
|
|
1221
|
+
"PreCharge": 2,
|
|
1222
|
+
"FastCharge": 3,
|
|
1223
|
+
"TaperCharge": 4,
|
|
1224
|
+
"Reserved": 5,
|
|
1225
|
+
"TopOffTimerCharge": 6,
|
|
1226
|
+
"ChargeTermination": 7
|
|
904
1227
|
}
|
|
905
1228
|
}
|
|
906
1229
|
}
|
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Commands_StateCommands: {
|
|
3
|
-
readonly IDLE: 0;
|
|
4
|
-
readonly OPEN_FILLING: 1;
|
|
5
|
-
readonly OPEN_RECOVERY_FILL: 2;
|
|
6
|
-
readonly EXPECT_LIFTOFF: 3;
|
|
7
|
-
readonly OPEN_FLOTATION_FILL: 4;
|
|
8
|
-
readonly SEPERATION: 5;
|
|
9
|
-
readonly FLOTATION: 6;
|
|
10
|
-
};
|
|
11
|
-
export type Commands_StateCommands = (typeof Commands_StateCommands)[keyof typeof Commands_StateCommands];
|
|
12
|
-
export declare const Commands_FSMStateCommand: import("typed-binary").ObjectSchema<{
|
|
13
|
-
command: import("typed-binary").ByteSchema;
|
|
14
|
-
}>;
|
|
15
|
-
export type Commands_FSMStateCommand = bin.Parsed<typeof Commands_FSMStateCommand>;
|
|
16
|
-
export declare const spec: {
|
|
17
|
-
Commands_FSMStateCommand: {
|
|
18
|
-
id: number;
|
|
19
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
20
|
-
command: import("typed-binary").ByteSchema;
|
|
21
|
-
}>;
|
|
22
|
-
enums: {
|
|
23
|
-
command: {
|
|
24
|
-
readonly IDLE: 0;
|
|
25
|
-
readonly OPEN_FILLING: 1;
|
|
26
|
-
readonly OPEN_RECOVERY_FILL: 2;
|
|
27
|
-
readonly EXPECT_LIFTOFF: 3;
|
|
28
|
-
readonly OPEN_FLOTATION_FILL: 4;
|
|
29
|
-
readonly SEPERATION: 5;
|
|
30
|
-
readonly FLOTATION: 6;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
1
|
+
export declare const spec: {};
|
|
35
2
|
export default spec;
|
|
36
3
|
export type Spec = typeof spec;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
// This file was generated by FRICC on 2026-07-
|
|
1
|
+
import { Measurer, Schema } from 'typed-binary';
|
|
2
|
+
// This file was generated by FRICC on 2026-07-08 21:58:00. 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,5 @@ 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
|
|
64
|
-
IDLE: 0,
|
|
65
|
-
OPEN_FILLING: 1,
|
|
66
|
-
OPEN_RECOVERY_FILL: 2,
|
|
67
|
-
EXPECT_LIFTOFF: 3,
|
|
68
|
-
OPEN_FLOTATION_FILL: 4,
|
|
69
|
-
SEPERATION: 5,
|
|
70
|
-
FLOTATION: 6,
|
|
71
|
-
};
|
|
72
|
-
export const Commands_FSMStateCommand = bin.object({
|
|
73
|
-
command: bin.u8, // Commands::StateCommands
|
|
74
|
-
});
|
|
75
|
-
export const spec = {
|
|
76
|
-
Commands_FSMStateCommand: {
|
|
77
|
-
id: 16,
|
|
78
|
-
schema: Commands_FSMStateCommand,
|
|
79
|
-
enums: {
|
|
80
|
-
command: Commands_StateCommands,
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
};
|
|
63
|
+
export const spec = {};
|
|
84
64
|
export default spec;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
export { default as commandsJson } from "./commands.json";
|
|
1
2
|
export * as commands from "./commands";
|
|
3
|
+
export * as kalman from "./kalman";
|
|
4
|
+
export * as status from "./status";
|
|
5
|
+
export { default as telemetryJson } from "./telemetry.json";
|
|
2
6
|
export * as telemetry from "./telemetry";
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
+
export { default as commandsJson } from "./commands.json";
|
|
1
2
|
export * as commands from "./commands";
|
|
3
|
+
export * as kalman from "./kalman";
|
|
4
|
+
export * as status from "./status";
|
|
5
|
+
export { default as telemetryJson } from "./telemetry.json";
|
|
2
6
|
export * as telemetry from "./telemetry";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import bin, { MaxValue, Schema, type IMeasurer, type ISerialInput, type ISerialOutput } from 'typed-binary';
|
|
2
|
+
declare class Float64Schema extends Schema<number> {
|
|
3
|
+
readonly maxSize = 8;
|
|
4
|
+
read(input: ISerialInput): number;
|
|
5
|
+
write(output: ISerialOutput, value: number): void;
|
|
6
|
+
measure(_: number | typeof MaxValue, measurer?: IMeasurer): IMeasurer;
|
|
7
|
+
}
|
|
8
|
+
export declare const Telemetry_KalmanData: import("typed-binary").ObjectSchema<{
|
|
9
|
+
altitude: Float64Schema;
|
|
10
|
+
veloicty: Float64Schema;
|
|
11
|
+
}>;
|
|
12
|
+
export type Telemetry_KalmanData = bin.Parsed<typeof Telemetry_KalmanData>;
|
|
13
|
+
export declare const spec: {
|
|
14
|
+
Telemetry_KalmanData: {
|
|
15
|
+
port: number;
|
|
16
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
17
|
+
altitude: Float64Schema;
|
|
18
|
+
veloicty: Float64Schema;
|
|
19
|
+
}>;
|
|
20
|
+
enums: {};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default spec;
|
|
24
|
+
export type Spec = typeof spec;
|