fossekall-interface 0.1.126 → 0.1.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
-
// This file was generated by FRICC on 2026-06-10 13:
|
|
2
|
+
// This file was generated by FRICC on 2026-06-10 13:42:19. 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;
|
|
@@ -5,46 +5,61 @@ 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 Telemetry_AccelData: 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
|
|
13
|
+
export type Telemetry_AccelData = bin.Parsed<typeof Telemetry_AccelData>;
|
|
14
|
+
export declare const Telemetry_GNSS_DATA: import("typed-binary").ObjectSchema<{
|
|
15
|
+
data_valid: import("typed-binary").BoolSchema;
|
|
15
16
|
lat: Float64Schema;
|
|
16
17
|
lon: Float64Schema;
|
|
18
|
+
hAcc: import("typed-binary").Uint32Schema;
|
|
19
|
+
vAcc: import("typed-binary").Uint32Schema;
|
|
17
20
|
hMSL: Float64Schema;
|
|
18
21
|
gSpeed: Float64Schema;
|
|
19
22
|
headMot: Float64Schema;
|
|
23
|
+
velN: import("typed-binary").Int32Schema;
|
|
24
|
+
velE: import("typed-binary").Int32Schema;
|
|
25
|
+
velD: import("typed-binary").Int32Schema;
|
|
20
26
|
numSV: import("typed-binary").ByteSchema;
|
|
21
27
|
}>;
|
|
22
|
-
export type
|
|
23
|
-
export declare const
|
|
24
|
-
|
|
28
|
+
export type Telemetry_GNSS_DATA = bin.Parsed<typeof Telemetry_GNSS_DATA>;
|
|
29
|
+
export declare const Telemetry_PressureData: import("typed-binary").ObjectSchema<{
|
|
30
|
+
pressure_bar: import("typed-binary").Float32Schema;
|
|
25
31
|
}>;
|
|
26
|
-
export type
|
|
27
|
-
export declare const
|
|
32
|
+
export type Telemetry_PressureData = bin.Parsed<typeof Telemetry_PressureData>;
|
|
33
|
+
export declare const Telemetry_SensorData: import("typed-binary").ObjectSchema<{
|
|
28
34
|
iim_acc_data: import("typed-binary").ObjectSchema<{
|
|
29
35
|
acc_x: import("typed-binary").Float32Schema;
|
|
30
36
|
acc_y: import("typed-binary").Float32Schema;
|
|
31
37
|
acc_z: import("typed-binary").Float32Schema;
|
|
32
38
|
}>;
|
|
33
39
|
gnss_data: import("typed-binary").ObjectSchema<{
|
|
40
|
+
data_valid: import("typed-binary").BoolSchema;
|
|
34
41
|
lat: Float64Schema;
|
|
35
42
|
lon: Float64Schema;
|
|
43
|
+
hAcc: import("typed-binary").Uint32Schema;
|
|
44
|
+
vAcc: import("typed-binary").Uint32Schema;
|
|
36
45
|
hMSL: Float64Schema;
|
|
37
46
|
gSpeed: Float64Schema;
|
|
38
47
|
headMot: Float64Schema;
|
|
48
|
+
velN: import("typed-binary").Int32Schema;
|
|
49
|
+
velE: import("typed-binary").Int32Schema;
|
|
50
|
+
velD: import("typed-binary").Int32Schema;
|
|
39
51
|
numSV: import("typed-binary").ByteSchema;
|
|
40
52
|
}>;
|
|
41
|
-
|
|
42
|
-
|
|
53
|
+
flotation_pressure_data: import("typed-binary").ObjectSchema<{
|
|
54
|
+
pressure_bar: import("typed-binary").Float32Schema;
|
|
55
|
+
}>;
|
|
56
|
+
seperation_pressure_data: import("typed-binary").ObjectSchema<{
|
|
57
|
+
pressure_bar: import("typed-binary").Float32Schema;
|
|
43
58
|
}>;
|
|
44
59
|
}>;
|
|
45
|
-
export type
|
|
60
|
+
export type Telemetry_SensorData = bin.Parsed<typeof Telemetry_SensorData>;
|
|
46
61
|
export declare const spec: {
|
|
47
|
-
|
|
62
|
+
Telemetry_SensorData: {
|
|
48
63
|
port: number;
|
|
49
64
|
schema: import("typed-binary").ObjectSchema<{
|
|
50
65
|
iim_acc_data: import("typed-binary").ObjectSchema<{
|
|
@@ -53,21 +68,31 @@ export declare const spec: {
|
|
|
53
68
|
acc_z: import("typed-binary").Float32Schema;
|
|
54
69
|
}>;
|
|
55
70
|
gnss_data: import("typed-binary").ObjectSchema<{
|
|
71
|
+
data_valid: import("typed-binary").BoolSchema;
|
|
56
72
|
lat: Float64Schema;
|
|
57
73
|
lon: Float64Schema;
|
|
74
|
+
hAcc: import("typed-binary").Uint32Schema;
|
|
75
|
+
vAcc: import("typed-binary").Uint32Schema;
|
|
58
76
|
hMSL: Float64Schema;
|
|
59
77
|
gSpeed: Float64Schema;
|
|
60
78
|
headMot: Float64Schema;
|
|
79
|
+
velN: import("typed-binary").Int32Schema;
|
|
80
|
+
velE: import("typed-binary").Int32Schema;
|
|
81
|
+
velD: import("typed-binary").Int32Schema;
|
|
61
82
|
numSV: import("typed-binary").ByteSchema;
|
|
62
83
|
}>;
|
|
63
|
-
|
|
64
|
-
|
|
84
|
+
flotation_pressure_data: import("typed-binary").ObjectSchema<{
|
|
85
|
+
pressure_bar: import("typed-binary").Float32Schema;
|
|
86
|
+
}>;
|
|
87
|
+
seperation_pressure_data: import("typed-binary").ObjectSchema<{
|
|
88
|
+
pressure_bar: import("typed-binary").Float32Schema;
|
|
65
89
|
}>;
|
|
66
90
|
}>;
|
|
67
91
|
enums: {
|
|
68
92
|
iim_acc_data: {};
|
|
69
93
|
gnss_data: {};
|
|
70
|
-
|
|
94
|
+
flotation_pressure_data: {};
|
|
95
|
+
seperation_pressure_data: {};
|
|
71
96
|
};
|
|
72
97
|
};
|
|
73
98
|
};
|
|
@@ -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 11:43:40. 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,35 +60,43 @@ 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 Telemetry_AccelData = 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
|
|
68
|
+
export const Telemetry_GNSS_DATA = bin.object({
|
|
69
|
+
data_valid: bin.bool, // bool
|
|
69
70
|
lat: f64, // double
|
|
70
71
|
lon: f64, // double
|
|
72
|
+
hAcc: bin.u32, // unsigned int
|
|
73
|
+
vAcc: bin.u32, // unsigned int
|
|
71
74
|
hMSL: f64, // double
|
|
72
75
|
gSpeed: f64, // double
|
|
73
76
|
headMot: f64, // double
|
|
77
|
+
velN: bin.i32, // int
|
|
78
|
+
velE: bin.i32, // int
|
|
79
|
+
velD: bin.i32, // int
|
|
74
80
|
numSV: bin.u8, // unsigned char
|
|
75
81
|
});
|
|
76
|
-
export const
|
|
77
|
-
|
|
82
|
+
export const Telemetry_PressureData = bin.object({
|
|
83
|
+
pressure_bar: bin.f32, // float
|
|
78
84
|
});
|
|
79
|
-
export const
|
|
80
|
-
iim_acc_data:
|
|
81
|
-
gnss_data:
|
|
82
|
-
|
|
85
|
+
export const Telemetry_SensorData = bin.object({
|
|
86
|
+
iim_acc_data: Telemetry_AccelData, // Telemetry::AccelData
|
|
87
|
+
gnss_data: Telemetry_GNSS_DATA, // Telemetry::GNSS_DATA
|
|
88
|
+
flotation_pressure_data: Telemetry_PressureData, // Telemetry::PressureData
|
|
89
|
+
seperation_pressure_data: Telemetry_PressureData, // Telemetry::PressureData
|
|
83
90
|
});
|
|
84
91
|
export const spec = {
|
|
85
|
-
|
|
92
|
+
Telemetry_SensorData: {
|
|
86
93
|
port: 3001,
|
|
87
|
-
schema:
|
|
94
|
+
schema: Telemetry_SensorData,
|
|
88
95
|
enums: {
|
|
89
96
|
iim_acc_data: {},
|
|
90
97
|
gnss_data: {},
|
|
91
|
-
|
|
98
|
+
flotation_pressure_data: {},
|
|
99
|
+
seperation_pressure_data: {},
|
|
92
100
|
},
|
|
93
101
|
},
|
|
94
102
|
};
|