fossekall-interface 0.1.124 → 0.1.126
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 +289 -120
- package/dist/generated/ecu/commands.js +114 -63
- package/dist/generated/ecu/commands.json +569 -0
- package/dist/generated/ecu/index.d.ts +2 -0
- package/dist/generated/ecu/index.js +2 -0
- package/dist/generated/ecu/telemetry.d.ts +640 -211
- package/dist/generated/ecu/telemetry.js +284 -95
- package/dist/generated/ecu/telemetry.json +913 -0
- package/dist/generated/fc/commands.d.ts +84 -1
- package/dist/generated/fc/commands.js +62 -3
- package/dist/generated/fc/telemetry.d.ts +15 -40
- package/dist/generated/fc/telemetry.js +12 -20
- package/package.json +1 -1
|
@@ -1,3 +1,86 @@
|
|
|
1
|
-
|
|
1
|
+
import bin from 'typed-binary';
|
|
2
|
+
export declare const Commands_OpenSeperationFillingSolenoid: import("typed-binary").ObjectSchema<{
|
|
3
|
+
cmd: import("typed-binary").BoolSchema;
|
|
4
|
+
}>;
|
|
5
|
+
export type Commands_OpenSeperationFillingSolenoid = bin.Parsed<typeof Commands_OpenSeperationFillingSolenoid>;
|
|
6
|
+
export declare const Commands_CloseSeperationFillingSolenoid: import("typed-binary").ObjectSchema<{
|
|
7
|
+
cmd: import("typed-binary").BoolSchema;
|
|
8
|
+
}>;
|
|
9
|
+
export type Commands_CloseSeperationFillingSolenoid = bin.Parsed<typeof Commands_CloseSeperationFillingSolenoid>;
|
|
10
|
+
export declare const Commands_OpenFlotationFillingSolenoid: import("typed-binary").ObjectSchema<{
|
|
11
|
+
cmd: import("typed-binary").BoolSchema;
|
|
12
|
+
}>;
|
|
13
|
+
export type Commands_OpenFlotationFillingSolenoid = bin.Parsed<typeof Commands_OpenFlotationFillingSolenoid>;
|
|
14
|
+
export declare const Commands_CloseFlotationFillingSolenoid: import("typed-binary").ObjectSchema<{
|
|
15
|
+
cmd: import("typed-binary").BoolSchema;
|
|
16
|
+
}>;
|
|
17
|
+
export type Commands_CloseFlotationFillingSolenoid = bin.Parsed<typeof Commands_CloseFlotationFillingSolenoid>;
|
|
18
|
+
export declare const Commands_OpenFlotationSolenoid: import("typed-binary").ObjectSchema<{
|
|
19
|
+
cmd: import("typed-binary").BoolSchema;
|
|
20
|
+
}>;
|
|
21
|
+
export type Commands_OpenFlotationSolenoid = bin.Parsed<typeof Commands_OpenFlotationSolenoid>;
|
|
22
|
+
export declare const Commands_CloseFlotationSolenoid: import("typed-binary").ObjectSchema<{
|
|
23
|
+
cmd: import("typed-binary").BoolSchema;
|
|
24
|
+
}>;
|
|
25
|
+
export type Commands_CloseFlotationSolenoid = bin.Parsed<typeof Commands_CloseFlotationSolenoid>;
|
|
26
|
+
export declare const Commands_SetServoPayload: import("typed-binary").ObjectSchema<{
|
|
27
|
+
angle_deg: import("typed-binary").Float32Schema;
|
|
28
|
+
duration_ms: import("typed-binary").Uint16Schema;
|
|
29
|
+
delay_ms: import("typed-binary").Uint16Schema;
|
|
30
|
+
}>;
|
|
31
|
+
export type Commands_SetServoPayload = bin.Parsed<typeof Commands_SetServoPayload>;
|
|
32
|
+
export declare const spec: {
|
|
33
|
+
Commands_OpenSeperationFillingSolenoid: {
|
|
34
|
+
id: number;
|
|
35
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
36
|
+
cmd: import("typed-binary").BoolSchema;
|
|
37
|
+
}>;
|
|
38
|
+
enums: {};
|
|
39
|
+
};
|
|
40
|
+
Commands_CloseSeperationFillingSolenoid: {
|
|
41
|
+
id: number;
|
|
42
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
43
|
+
cmd: import("typed-binary").BoolSchema;
|
|
44
|
+
}>;
|
|
45
|
+
enums: {};
|
|
46
|
+
};
|
|
47
|
+
Commands_OpenFlotationFillingSolenoid: {
|
|
48
|
+
id: number;
|
|
49
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
50
|
+
cmd: import("typed-binary").BoolSchema;
|
|
51
|
+
}>;
|
|
52
|
+
enums: {};
|
|
53
|
+
};
|
|
54
|
+
Commands_CloseFlotationFillingSolenoid: {
|
|
55
|
+
id: number;
|
|
56
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
57
|
+
cmd: import("typed-binary").BoolSchema;
|
|
58
|
+
}>;
|
|
59
|
+
enums: {};
|
|
60
|
+
};
|
|
61
|
+
Commands_OpenFlotationSolenoid: {
|
|
62
|
+
id: number;
|
|
63
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
64
|
+
cmd: import("typed-binary").BoolSchema;
|
|
65
|
+
}>;
|
|
66
|
+
enums: {};
|
|
67
|
+
};
|
|
68
|
+
Commands_CloseFlotationSolenoid: {
|
|
69
|
+
id: number;
|
|
70
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
71
|
+
cmd: import("typed-binary").BoolSchema;
|
|
72
|
+
}>;
|
|
73
|
+
enums: {};
|
|
74
|
+
};
|
|
75
|
+
Commands_SetServoPayload: {
|
|
76
|
+
id: number;
|
|
77
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
78
|
+
angle_deg: import("typed-binary").Float32Schema;
|
|
79
|
+
duration_ms: import("typed-binary").Uint16Schema;
|
|
80
|
+
delay_ms: import("typed-binary").Uint16Schema;
|
|
81
|
+
}>;
|
|
82
|
+
enums: {};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
2
85
|
export default spec;
|
|
3
86
|
export type Spec = typeof spec;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-
|
|
1
|
+
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
+
// This file was generated by FRICC on 2026-06-10 13:17:02. Do not edit manually!
|
|
3
3
|
// The current version of typed-binary does not support 64-bit primitives.
|
|
4
4
|
// So for we'll implement our own schemas. :)
|
|
5
5
|
const __littleEndian = true;
|
|
@@ -60,5 +60,64 @@ 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 Commands_OpenSeperationFillingSolenoid = bin.object({
|
|
64
|
+
cmd: bin.bool, // bool
|
|
65
|
+
});
|
|
66
|
+
export const Commands_CloseSeperationFillingSolenoid = bin.object({
|
|
67
|
+
cmd: bin.bool, // bool
|
|
68
|
+
});
|
|
69
|
+
export const Commands_OpenFlotationFillingSolenoid = bin.object({
|
|
70
|
+
cmd: bin.bool, // bool
|
|
71
|
+
});
|
|
72
|
+
export const Commands_CloseFlotationFillingSolenoid = bin.object({
|
|
73
|
+
cmd: bin.bool, // bool
|
|
74
|
+
});
|
|
75
|
+
export const Commands_OpenFlotationSolenoid = bin.object({
|
|
76
|
+
cmd: bin.bool, // bool
|
|
77
|
+
});
|
|
78
|
+
export const Commands_CloseFlotationSolenoid = bin.object({
|
|
79
|
+
cmd: bin.bool, // bool
|
|
80
|
+
});
|
|
81
|
+
export const Commands_SetServoPayload = bin.object({
|
|
82
|
+
angle_deg: bin.f32, // float
|
|
83
|
+
duration_ms: bin.u16, // unsigned short
|
|
84
|
+
delay_ms: bin.u16, // unsigned short
|
|
85
|
+
});
|
|
86
|
+
export const spec = {
|
|
87
|
+
Commands_OpenSeperationFillingSolenoid: {
|
|
88
|
+
id: 128,
|
|
89
|
+
schema: Commands_OpenSeperationFillingSolenoid,
|
|
90
|
+
enums: {},
|
|
91
|
+
},
|
|
92
|
+
Commands_CloseSeperationFillingSolenoid: {
|
|
93
|
+
id: 129,
|
|
94
|
+
schema: Commands_CloseSeperationFillingSolenoid,
|
|
95
|
+
enums: {},
|
|
96
|
+
},
|
|
97
|
+
Commands_OpenFlotationFillingSolenoid: {
|
|
98
|
+
id: 144,
|
|
99
|
+
schema: Commands_OpenFlotationFillingSolenoid,
|
|
100
|
+
enums: {},
|
|
101
|
+
},
|
|
102
|
+
Commands_CloseFlotationFillingSolenoid: {
|
|
103
|
+
id: 145,
|
|
104
|
+
schema: Commands_CloseFlotationFillingSolenoid,
|
|
105
|
+
enums: {},
|
|
106
|
+
},
|
|
107
|
+
Commands_OpenFlotationSolenoid: {
|
|
108
|
+
id: 32,
|
|
109
|
+
schema: Commands_OpenFlotationSolenoid,
|
|
110
|
+
enums: {},
|
|
111
|
+
},
|
|
112
|
+
Commands_CloseFlotationSolenoid: {
|
|
113
|
+
id: 33,
|
|
114
|
+
schema: Commands_CloseFlotationSolenoid,
|
|
115
|
+
enums: {},
|
|
116
|
+
},
|
|
117
|
+
Commands_SetServoPayload: {
|
|
118
|
+
id: 64,
|
|
119
|
+
schema: Commands_SetServoPayload,
|
|
120
|
+
enums: {},
|
|
121
|
+
},
|
|
122
|
+
};
|
|
64
123
|
export default spec;
|
|
@@ -5,61 +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
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
}>;
|
|
56
|
-
seperation_pressure_data: import("typed-binary").ObjectSchema<{
|
|
57
|
-
pressure_bar: import("typed-binary").Float32Schema;
|
|
41
|
+
loadcell_data: import("typed-binary").ObjectSchema<{
|
|
42
|
+
loadcell_value: import("typed-binary").Float32Schema;
|
|
58
43
|
}>;
|
|
59
44
|
}>;
|
|
60
|
-
export type
|
|
45
|
+
export type SensorData = bin.Parsed<typeof SensorData>;
|
|
61
46
|
export declare const spec: {
|
|
62
|
-
|
|
47
|
+
SensorData: {
|
|
63
48
|
port: number;
|
|
64
49
|
schema: import("typed-binary").ObjectSchema<{
|
|
65
50
|
iim_acc_data: import("typed-binary").ObjectSchema<{
|
|
@@ -68,31 +53,21 @@ export declare const spec: {
|
|
|
68
53
|
acc_z: import("typed-binary").Float32Schema;
|
|
69
54
|
}>;
|
|
70
55
|
gnss_data: import("typed-binary").ObjectSchema<{
|
|
71
|
-
data_valid: import("typed-binary").BoolSchema;
|
|
72
56
|
lat: Float64Schema;
|
|
73
57
|
lon: Float64Schema;
|
|
74
|
-
hAcc: import("typed-binary").Uint32Schema;
|
|
75
|
-
vAcc: import("typed-binary").Uint32Schema;
|
|
76
58
|
hMSL: Float64Schema;
|
|
77
59
|
gSpeed: Float64Schema;
|
|
78
60
|
headMot: Float64Schema;
|
|
79
|
-
velN: import("typed-binary").Int32Schema;
|
|
80
|
-
velE: import("typed-binary").Int32Schema;
|
|
81
|
-
velD: import("typed-binary").Int32Schema;
|
|
82
61
|
numSV: import("typed-binary").ByteSchema;
|
|
83
62
|
}>;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}>;
|
|
87
|
-
seperation_pressure_data: import("typed-binary").ObjectSchema<{
|
|
88
|
-
pressure_bar: import("typed-binary").Float32Schema;
|
|
63
|
+
loadcell_data: import("typed-binary").ObjectSchema<{
|
|
64
|
+
loadcell_value: import("typed-binary").Float32Schema;
|
|
89
65
|
}>;
|
|
90
66
|
}>;
|
|
91
67
|
enums: {
|
|
92
68
|
iim_acc_data: {};
|
|
93
69
|
gnss_data: {};
|
|
94
|
-
|
|
95
|
-
seperation_pressure_data: {};
|
|
70
|
+
loadcell_data: {};
|
|
96
71
|
};
|
|
97
72
|
};
|
|
98
73
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-06-10
|
|
2
|
+
// This file was generated by FRICC on 2026-06-10 12:46:27. 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,43 +60,35 @@ 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
|
-
|
|
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
|
-
|
|
89
|
-
seperation_pressure_data: Telemetry_PressureData, // Telemetry::PressureData
|
|
79
|
+
export const SensorData = bin.object({
|
|
80
|
+
iim_acc_data: AccelerationData, // AccelerationData
|
|
81
|
+
gnss_data: GNSS_DATA, // GNSS_DATA
|
|
82
|
+
loadcell_data: Loadcell, // Loadcell
|
|
90
83
|
});
|
|
91
84
|
export const spec = {
|
|
92
|
-
|
|
85
|
+
SensorData: {
|
|
93
86
|
port: 3001,
|
|
94
|
-
schema:
|
|
87
|
+
schema: SensorData,
|
|
95
88
|
enums: {
|
|
96
89
|
iim_acc_data: {},
|
|
97
90
|
gnss_data: {},
|
|
98
|
-
|
|
99
|
-
seperation_pressure_data: {},
|
|
91
|
+
loadcell_data: {},
|
|
100
92
|
},
|
|
101
93
|
},
|
|
102
94
|
};
|