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
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
+
// This file was generated by FRICC on 2026-07-04 12:57:22. Do not edit manually!
|
|
3
|
+
// The current version of typed-binary does not support 64-bit primitives.
|
|
4
|
+
// So for we'll implement our own schemas. :)
|
|
5
|
+
const __littleEndian = true;
|
|
6
|
+
class UInt64Schema extends Schema {
|
|
7
|
+
maxSize = 8;
|
|
8
|
+
read(input) {
|
|
9
|
+
const bytes = new Uint8Array(8);
|
|
10
|
+
input.readSlice(bytes, 0, 8);
|
|
11
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
12
|
+
return view.getBigUint64(0, __littleEndian);
|
|
13
|
+
}
|
|
14
|
+
write(output, value) {
|
|
15
|
+
const bytes = new Uint8Array(8);
|
|
16
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
17
|
+
view.setBigUint64(0, value, __littleEndian);
|
|
18
|
+
output.writeSlice(bytes);
|
|
19
|
+
}
|
|
20
|
+
measure(_, measurer = new Measurer()) {
|
|
21
|
+
return measurer.add(8);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
class Int64Schema extends Schema {
|
|
25
|
+
maxSize = 8;
|
|
26
|
+
read(input) {
|
|
27
|
+
const bytes = new Uint8Array(8);
|
|
28
|
+
input.readSlice(bytes, 0, 8);
|
|
29
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
30
|
+
return view.getBigInt64(0, __littleEndian);
|
|
31
|
+
}
|
|
32
|
+
write(output, value) {
|
|
33
|
+
const bytes = new Uint8Array(8);
|
|
34
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
35
|
+
view.setBigInt64(0, value, __littleEndian);
|
|
36
|
+
output.writeSlice(bytes);
|
|
37
|
+
}
|
|
38
|
+
measure(_, measurer = new Measurer()) {
|
|
39
|
+
return measurer.add(8);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
class Float64Schema extends Schema {
|
|
43
|
+
maxSize = 8;
|
|
44
|
+
read(input) {
|
|
45
|
+
const bytes = new Uint8Array(8);
|
|
46
|
+
input.readSlice(bytes, 0, 8);
|
|
47
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
48
|
+
return view.getFloat64(0, __littleEndian);
|
|
49
|
+
}
|
|
50
|
+
write(output, value) {
|
|
51
|
+
const bytes = new Uint8Array(8);
|
|
52
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
53
|
+
view.setFloat64(0, value, __littleEndian);
|
|
54
|
+
output.writeSlice(bytes);
|
|
55
|
+
}
|
|
56
|
+
measure(_, measurer = new Measurer()) {
|
|
57
|
+
return measurer.add(8);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const u64 = new UInt64Schema();
|
|
61
|
+
const i64 = new Int64Schema();
|
|
62
|
+
const f64 = new Float64Schema();
|
|
63
|
+
export const Telemetry_KalmanData = bin.object({
|
|
64
|
+
altitude: f64, // double
|
|
65
|
+
veloicty: f64, // double
|
|
66
|
+
});
|
|
67
|
+
export const spec = {
|
|
68
|
+
Telemetry_KalmanData: {
|
|
69
|
+
port: 3002,
|
|
70
|
+
schema: Telemetry_KalmanData,
|
|
71
|
+
enums: {},
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
export default spec;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import bin from 'typed-binary';
|
|
2
|
+
export declare const STATE_NAME: {
|
|
3
|
+
readonly NONE: 0;
|
|
4
|
+
readonly IDLE: 1;
|
|
5
|
+
readonly READY: 2;
|
|
6
|
+
readonly FILLING: 3;
|
|
7
|
+
readonly SEPARATION_FILLING: 4;
|
|
8
|
+
readonly FLOTATION_FILLING: 5;
|
|
9
|
+
readonly THRUSTING: 6;
|
|
10
|
+
readonly COASTING: 7;
|
|
11
|
+
readonly SEPARATION: 8;
|
|
12
|
+
readonly FLOTATION: 9;
|
|
13
|
+
readonly SHUTDOWN: 10;
|
|
14
|
+
readonly TEST_SEPARATION: 11;
|
|
15
|
+
readonly TEST_FLOTATION: 12;
|
|
16
|
+
};
|
|
17
|
+
export type STATE_NAME = (typeof STATE_NAME)[keyof typeof STATE_NAME];
|
|
18
|
+
export declare const Telemetry_ActuatorStatus: import("typed-binary").ObjectSchema<{
|
|
19
|
+
separation_filling_online: import("typed-binary").BoolSchema;
|
|
20
|
+
flotation_filling_online: import("typed-binary").BoolSchema;
|
|
21
|
+
flotation_online: import("typed-binary").BoolSchema;
|
|
22
|
+
separation_servo_online: import("typed-binary").BoolSchema;
|
|
23
|
+
}>;
|
|
24
|
+
export type Telemetry_ActuatorStatus = bin.Parsed<typeof Telemetry_ActuatorStatus>;
|
|
25
|
+
export declare const Telemetry_SensorStatus: import("typed-binary").ObjectSchema<{
|
|
26
|
+
bme_online: import("typed-binary").BoolSchema;
|
|
27
|
+
ms_online: import("typed-binary").BoolSchema;
|
|
28
|
+
gnss_online: import("typed-binary").BoolSchema;
|
|
29
|
+
icm_online: import("typed-binary").BoolSchema;
|
|
30
|
+
stim_online: import("typed-binary").BoolSchema;
|
|
31
|
+
pressure_online: import("typed-binary").BoolSchema;
|
|
32
|
+
}>;
|
|
33
|
+
export type Telemetry_SensorStatus = bin.Parsed<typeof Telemetry_SensorStatus>;
|
|
34
|
+
export declare const Telemetry_HardwareStatus: import("typed-binary").ObjectSchema<{
|
|
35
|
+
pcan1_online: import("typed-binary").BoolSchema;
|
|
36
|
+
pcan2_online: import("typed-binary").BoolSchema;
|
|
37
|
+
networking_thread_online: import("typed-binary").BoolSchema;
|
|
38
|
+
cli_thread_online: import("typed-binary").BoolSchema;
|
|
39
|
+
kalman_thread_online: import("typed-binary").BoolSchema;
|
|
40
|
+
sensor_thread_online: import("typed-binary").BoolSchema;
|
|
41
|
+
fsm_thread_online: import("typed-binary").BoolSchema;
|
|
42
|
+
}>;
|
|
43
|
+
export type Telemetry_HardwareStatus = bin.Parsed<typeof Telemetry_HardwareStatus>;
|
|
44
|
+
export declare const Telemetry_SystemStatus: import("typed-binary").ObjectSchema<{
|
|
45
|
+
actuators: import("typed-binary").ObjectSchema<{
|
|
46
|
+
separation_filling_online: import("typed-binary").BoolSchema;
|
|
47
|
+
flotation_filling_online: import("typed-binary").BoolSchema;
|
|
48
|
+
flotation_online: import("typed-binary").BoolSchema;
|
|
49
|
+
separation_servo_online: import("typed-binary").BoolSchema;
|
|
50
|
+
}>;
|
|
51
|
+
sensors: import("typed-binary").ObjectSchema<{
|
|
52
|
+
bme_online: import("typed-binary").BoolSchema;
|
|
53
|
+
ms_online: import("typed-binary").BoolSchema;
|
|
54
|
+
gnss_online: import("typed-binary").BoolSchema;
|
|
55
|
+
icm_online: import("typed-binary").BoolSchema;
|
|
56
|
+
stim_online: import("typed-binary").BoolSchema;
|
|
57
|
+
pressure_online: import("typed-binary").BoolSchema;
|
|
58
|
+
}>;
|
|
59
|
+
hardware: import("typed-binary").ObjectSchema<{
|
|
60
|
+
pcan1_online: import("typed-binary").BoolSchema;
|
|
61
|
+
pcan2_online: import("typed-binary").BoolSchema;
|
|
62
|
+
networking_thread_online: import("typed-binary").BoolSchema;
|
|
63
|
+
cli_thread_online: import("typed-binary").BoolSchema;
|
|
64
|
+
kalman_thread_online: import("typed-binary").BoolSchema;
|
|
65
|
+
sensor_thread_online: import("typed-binary").BoolSchema;
|
|
66
|
+
fsm_thread_online: import("typed-binary").BoolSchema;
|
|
67
|
+
}>;
|
|
68
|
+
current_state: import("typed-binary").Uint32Schema;
|
|
69
|
+
}>;
|
|
70
|
+
export type Telemetry_SystemStatus = bin.Parsed<typeof Telemetry_SystemStatus>;
|
|
71
|
+
export declare const spec: {
|
|
72
|
+
Telemetry_SystemStatus: {
|
|
73
|
+
port: number;
|
|
74
|
+
schema: import("typed-binary").ObjectSchema<{
|
|
75
|
+
actuators: import("typed-binary").ObjectSchema<{
|
|
76
|
+
separation_filling_online: import("typed-binary").BoolSchema;
|
|
77
|
+
flotation_filling_online: import("typed-binary").BoolSchema;
|
|
78
|
+
flotation_online: import("typed-binary").BoolSchema;
|
|
79
|
+
separation_servo_online: import("typed-binary").BoolSchema;
|
|
80
|
+
}>;
|
|
81
|
+
sensors: import("typed-binary").ObjectSchema<{
|
|
82
|
+
bme_online: import("typed-binary").BoolSchema;
|
|
83
|
+
ms_online: import("typed-binary").BoolSchema;
|
|
84
|
+
gnss_online: import("typed-binary").BoolSchema;
|
|
85
|
+
icm_online: import("typed-binary").BoolSchema;
|
|
86
|
+
stim_online: import("typed-binary").BoolSchema;
|
|
87
|
+
pressure_online: import("typed-binary").BoolSchema;
|
|
88
|
+
}>;
|
|
89
|
+
hardware: import("typed-binary").ObjectSchema<{
|
|
90
|
+
pcan1_online: import("typed-binary").BoolSchema;
|
|
91
|
+
pcan2_online: import("typed-binary").BoolSchema;
|
|
92
|
+
networking_thread_online: import("typed-binary").BoolSchema;
|
|
93
|
+
cli_thread_online: import("typed-binary").BoolSchema;
|
|
94
|
+
kalman_thread_online: import("typed-binary").BoolSchema;
|
|
95
|
+
sensor_thread_online: import("typed-binary").BoolSchema;
|
|
96
|
+
fsm_thread_online: import("typed-binary").BoolSchema;
|
|
97
|
+
}>;
|
|
98
|
+
current_state: import("typed-binary").Uint32Schema;
|
|
99
|
+
}>;
|
|
100
|
+
enums: {
|
|
101
|
+
actuators: {};
|
|
102
|
+
sensors: {};
|
|
103
|
+
hardware: {};
|
|
104
|
+
current_state: {
|
|
105
|
+
readonly NONE: 0;
|
|
106
|
+
readonly IDLE: 1;
|
|
107
|
+
readonly READY: 2;
|
|
108
|
+
readonly FILLING: 3;
|
|
109
|
+
readonly SEPARATION_FILLING: 4;
|
|
110
|
+
readonly FLOTATION_FILLING: 5;
|
|
111
|
+
readonly THRUSTING: 6;
|
|
112
|
+
readonly COASTING: 7;
|
|
113
|
+
readonly SEPARATION: 8;
|
|
114
|
+
readonly FLOTATION: 9;
|
|
115
|
+
readonly SHUTDOWN: 10;
|
|
116
|
+
readonly TEST_SEPARATION: 11;
|
|
117
|
+
readonly TEST_FLOTATION: 12;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
export default spec;
|
|
123
|
+
export type Spec = typeof spec;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import bin, { Measurer, Schema } from 'typed-binary';
|
|
2
|
+
// This file was generated by FRICC on 2026-07-06 02:23:39. Do not edit manually!
|
|
3
|
+
// The current version of typed-binary does not support 64-bit primitives.
|
|
4
|
+
// So for we'll implement our own schemas. :)
|
|
5
|
+
const __littleEndian = true;
|
|
6
|
+
class UInt64Schema extends Schema {
|
|
7
|
+
maxSize = 8;
|
|
8
|
+
read(input) {
|
|
9
|
+
const bytes = new Uint8Array(8);
|
|
10
|
+
input.readSlice(bytes, 0, 8);
|
|
11
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
12
|
+
return view.getBigUint64(0, __littleEndian);
|
|
13
|
+
}
|
|
14
|
+
write(output, value) {
|
|
15
|
+
const bytes = new Uint8Array(8);
|
|
16
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
17
|
+
view.setBigUint64(0, value, __littleEndian);
|
|
18
|
+
output.writeSlice(bytes);
|
|
19
|
+
}
|
|
20
|
+
measure(_, measurer = new Measurer()) {
|
|
21
|
+
return measurer.add(8);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
class Int64Schema extends Schema {
|
|
25
|
+
maxSize = 8;
|
|
26
|
+
read(input) {
|
|
27
|
+
const bytes = new Uint8Array(8);
|
|
28
|
+
input.readSlice(bytes, 0, 8);
|
|
29
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
30
|
+
return view.getBigInt64(0, __littleEndian);
|
|
31
|
+
}
|
|
32
|
+
write(output, value) {
|
|
33
|
+
const bytes = new Uint8Array(8);
|
|
34
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
35
|
+
view.setBigInt64(0, value, __littleEndian);
|
|
36
|
+
output.writeSlice(bytes);
|
|
37
|
+
}
|
|
38
|
+
measure(_, measurer = new Measurer()) {
|
|
39
|
+
return measurer.add(8);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
class Float64Schema extends Schema {
|
|
43
|
+
maxSize = 8;
|
|
44
|
+
read(input) {
|
|
45
|
+
const bytes = new Uint8Array(8);
|
|
46
|
+
input.readSlice(bytes, 0, 8);
|
|
47
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
48
|
+
return view.getFloat64(0, __littleEndian);
|
|
49
|
+
}
|
|
50
|
+
write(output, value) {
|
|
51
|
+
const bytes = new Uint8Array(8);
|
|
52
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
53
|
+
view.setFloat64(0, value, __littleEndian);
|
|
54
|
+
output.writeSlice(bytes);
|
|
55
|
+
}
|
|
56
|
+
measure(_, measurer = new Measurer()) {
|
|
57
|
+
return measurer.add(8);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const u64 = new UInt64Schema();
|
|
61
|
+
const i64 = new Int64Schema();
|
|
62
|
+
const f64 = new Float64Schema();
|
|
63
|
+
export const STATE_NAME = {
|
|
64
|
+
NONE: 0,
|
|
65
|
+
IDLE: 1,
|
|
66
|
+
READY: 2,
|
|
67
|
+
FILLING: 3,
|
|
68
|
+
SEPARATION_FILLING: 4,
|
|
69
|
+
FLOTATION_FILLING: 5,
|
|
70
|
+
THRUSTING: 6,
|
|
71
|
+
COASTING: 7,
|
|
72
|
+
SEPARATION: 8,
|
|
73
|
+
FLOTATION: 9,
|
|
74
|
+
SHUTDOWN: 10,
|
|
75
|
+
TEST_SEPARATION: 11,
|
|
76
|
+
TEST_FLOTATION: 12,
|
|
77
|
+
};
|
|
78
|
+
export const Telemetry_ActuatorStatus = bin.object({
|
|
79
|
+
separation_filling_online: bin.bool, // bool
|
|
80
|
+
flotation_filling_online: bin.bool, // bool
|
|
81
|
+
flotation_online: bin.bool, // bool
|
|
82
|
+
separation_servo_online: bin.bool, // bool
|
|
83
|
+
});
|
|
84
|
+
export const Telemetry_SensorStatus = bin.object({
|
|
85
|
+
bme_online: bin.bool, // bool
|
|
86
|
+
ms_online: bin.bool, // bool
|
|
87
|
+
gnss_online: bin.bool, // bool
|
|
88
|
+
icm_online: bin.bool, // bool
|
|
89
|
+
stim_online: bin.bool, // bool
|
|
90
|
+
pressure_online: bin.bool, // bool
|
|
91
|
+
});
|
|
92
|
+
export const Telemetry_HardwareStatus = bin.object({
|
|
93
|
+
pcan1_online: bin.bool, // bool
|
|
94
|
+
pcan2_online: bin.bool, // bool
|
|
95
|
+
networking_thread_online: bin.bool, // bool
|
|
96
|
+
cli_thread_online: bin.bool, // bool
|
|
97
|
+
kalman_thread_online: bin.bool, // bool
|
|
98
|
+
sensor_thread_online: bin.bool, // bool
|
|
99
|
+
fsm_thread_online: bin.bool, // bool
|
|
100
|
+
});
|
|
101
|
+
export const Telemetry_SystemStatus = bin.object({
|
|
102
|
+
actuators: Telemetry_ActuatorStatus, // Telemetry::ActuatorStatus
|
|
103
|
+
sensors: Telemetry_SensorStatus, // Telemetry::SensorStatus
|
|
104
|
+
hardware: Telemetry_HardwareStatus, // Telemetry::HardwareStatus
|
|
105
|
+
current_state: bin.u32, // STATE_NAME
|
|
106
|
+
});
|
|
107
|
+
export const spec = {
|
|
108
|
+
Telemetry_SystemStatus: {
|
|
109
|
+
port: 3003,
|
|
110
|
+
schema: Telemetry_SystemStatus,
|
|
111
|
+
enums: {
|
|
112
|
+
actuators: {},
|
|
113
|
+
sensors: {},
|
|
114
|
+
hardware: {},
|
|
115
|
+
current_state: STATE_NAME,
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
export default spec;
|
|
@@ -5,22 +5,6 @@ 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 STATE_NAME: {
|
|
9
|
-
readonly NONE: 0;
|
|
10
|
-
readonly IDLE: 1;
|
|
11
|
-
readonly READY: 2;
|
|
12
|
-
readonly FILLING: 3;
|
|
13
|
-
readonly SEPARATION_FILLING: 4;
|
|
14
|
-
readonly FLOTATION_FILLING: 5;
|
|
15
|
-
readonly THRUSTING: 6;
|
|
16
|
-
readonly COASTING: 7;
|
|
17
|
-
readonly SEPARATION: 8;
|
|
18
|
-
readonly FLOTATION: 9;
|
|
19
|
-
readonly SHUTDOWN: 10;
|
|
20
|
-
readonly TEST_SEPARATION: 11;
|
|
21
|
-
readonly TEST_FLOTATION: 12;
|
|
22
|
-
};
|
|
23
|
-
export type STATE_NAME = (typeof STATE_NAME)[keyof typeof STATE_NAME];
|
|
24
8
|
export declare const Telemetry_GNSS_DATA: import("typed-binary").ObjectSchema<{
|
|
25
9
|
data_valid: import("typed-binary").ByteSchema;
|
|
26
10
|
numSV: import("typed-binary").ByteSchema;
|
|
@@ -154,64 +138,6 @@ export declare const Telemetry_SensorData: import("typed-binary").ObjectSchema<{
|
|
|
154
138
|
}>;
|
|
155
139
|
}>;
|
|
156
140
|
export type Telemetry_SensorData = bin.Parsed<typeof Telemetry_SensorData>;
|
|
157
|
-
export declare const Telemetry_KalmanData: import("typed-binary").ObjectSchema<{
|
|
158
|
-
altitude: Float64Schema;
|
|
159
|
-
velocity: Float64Schema;
|
|
160
|
-
}>;
|
|
161
|
-
export type Telemetry_KalmanData = bin.Parsed<typeof Telemetry_KalmanData>;
|
|
162
|
-
export declare const Telemetry_ActuatorStatus: import("typed-binary").ObjectSchema<{
|
|
163
|
-
separation_filling_online: import("typed-binary").BoolSchema;
|
|
164
|
-
flotation_filling_online: import("typed-binary").BoolSchema;
|
|
165
|
-
flotation_online: import("typed-binary").BoolSchema;
|
|
166
|
-
separation_servo_online: import("typed-binary").BoolSchema;
|
|
167
|
-
}>;
|
|
168
|
-
export type Telemetry_ActuatorStatus = bin.Parsed<typeof Telemetry_ActuatorStatus>;
|
|
169
|
-
export declare const Telemetry_SensorStatus: import("typed-binary").ObjectSchema<{
|
|
170
|
-
bme_online: import("typed-binary").BoolSchema;
|
|
171
|
-
ms_online: import("typed-binary").BoolSchema;
|
|
172
|
-
gnss_online: import("typed-binary").BoolSchema;
|
|
173
|
-
icm_online: import("typed-binary").BoolSchema;
|
|
174
|
-
stim_online: import("typed-binary").BoolSchema;
|
|
175
|
-
pressure_online: import("typed-binary").BoolSchema;
|
|
176
|
-
}>;
|
|
177
|
-
export type Telemetry_SensorStatus = bin.Parsed<typeof Telemetry_SensorStatus>;
|
|
178
|
-
export declare const Telemetry_HardwareStatus: import("typed-binary").ObjectSchema<{
|
|
179
|
-
pcan1_online: import("typed-binary").BoolSchema;
|
|
180
|
-
pcan2_online: import("typed-binary").BoolSchema;
|
|
181
|
-
networking_thread_online: import("typed-binary").BoolSchema;
|
|
182
|
-
cli_thread_online: import("typed-binary").BoolSchema;
|
|
183
|
-
kalman_thread_online: import("typed-binary").BoolSchema;
|
|
184
|
-
sensor_thread_online: import("typed-binary").BoolSchema;
|
|
185
|
-
fsm_thread_online: import("typed-binary").BoolSchema;
|
|
186
|
-
}>;
|
|
187
|
-
export type Telemetry_HardwareStatus = bin.Parsed<typeof Telemetry_HardwareStatus>;
|
|
188
|
-
export declare const Telemetry_SystemStatus: import("typed-binary").ObjectSchema<{
|
|
189
|
-
actuators: import("typed-binary").ObjectSchema<{
|
|
190
|
-
separation_filling_online: import("typed-binary").BoolSchema;
|
|
191
|
-
flotation_filling_online: import("typed-binary").BoolSchema;
|
|
192
|
-
flotation_online: import("typed-binary").BoolSchema;
|
|
193
|
-
separation_servo_online: import("typed-binary").BoolSchema;
|
|
194
|
-
}>;
|
|
195
|
-
sensors: import("typed-binary").ObjectSchema<{
|
|
196
|
-
bme_online: import("typed-binary").BoolSchema;
|
|
197
|
-
ms_online: import("typed-binary").BoolSchema;
|
|
198
|
-
gnss_online: import("typed-binary").BoolSchema;
|
|
199
|
-
icm_online: import("typed-binary").BoolSchema;
|
|
200
|
-
stim_online: import("typed-binary").BoolSchema;
|
|
201
|
-
pressure_online: import("typed-binary").BoolSchema;
|
|
202
|
-
}>;
|
|
203
|
-
hardware: import("typed-binary").ObjectSchema<{
|
|
204
|
-
pcan1_online: import("typed-binary").BoolSchema;
|
|
205
|
-
pcan2_online: import("typed-binary").BoolSchema;
|
|
206
|
-
networking_thread_online: import("typed-binary").BoolSchema;
|
|
207
|
-
cli_thread_online: import("typed-binary").BoolSchema;
|
|
208
|
-
kalman_thread_online: import("typed-binary").BoolSchema;
|
|
209
|
-
sensor_thread_online: import("typed-binary").BoolSchema;
|
|
210
|
-
fsm_thread_online: import("typed-binary").BoolSchema;
|
|
211
|
-
}>;
|
|
212
|
-
current_state: import("typed-binary").Uint32Schema;
|
|
213
|
-
}>;
|
|
214
|
-
export type Telemetry_SystemStatus = bin.Parsed<typeof Telemetry_SystemStatus>;
|
|
215
141
|
export declare const spec: {
|
|
216
142
|
Telemetry_SensorData: {
|
|
217
143
|
port: number;
|
|
@@ -288,63 +214,6 @@ export declare const spec: {
|
|
|
288
214
|
pressure_data: {};
|
|
289
215
|
};
|
|
290
216
|
};
|
|
291
|
-
Telemetry_KalmanData: {
|
|
292
|
-
port: number;
|
|
293
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
294
|
-
altitude: Float64Schema;
|
|
295
|
-
velocity: Float64Schema;
|
|
296
|
-
}>;
|
|
297
|
-
enums: {};
|
|
298
|
-
};
|
|
299
|
-
Telemetry_SystemStatus: {
|
|
300
|
-
port: number;
|
|
301
|
-
schema: import("typed-binary").ObjectSchema<{
|
|
302
|
-
actuators: import("typed-binary").ObjectSchema<{
|
|
303
|
-
separation_filling_online: import("typed-binary").BoolSchema;
|
|
304
|
-
flotation_filling_online: import("typed-binary").BoolSchema;
|
|
305
|
-
flotation_online: import("typed-binary").BoolSchema;
|
|
306
|
-
separation_servo_online: import("typed-binary").BoolSchema;
|
|
307
|
-
}>;
|
|
308
|
-
sensors: import("typed-binary").ObjectSchema<{
|
|
309
|
-
bme_online: import("typed-binary").BoolSchema;
|
|
310
|
-
ms_online: import("typed-binary").BoolSchema;
|
|
311
|
-
gnss_online: import("typed-binary").BoolSchema;
|
|
312
|
-
icm_online: import("typed-binary").BoolSchema;
|
|
313
|
-
stim_online: import("typed-binary").BoolSchema;
|
|
314
|
-
pressure_online: import("typed-binary").BoolSchema;
|
|
315
|
-
}>;
|
|
316
|
-
hardware: import("typed-binary").ObjectSchema<{
|
|
317
|
-
pcan1_online: import("typed-binary").BoolSchema;
|
|
318
|
-
pcan2_online: import("typed-binary").BoolSchema;
|
|
319
|
-
networking_thread_online: import("typed-binary").BoolSchema;
|
|
320
|
-
cli_thread_online: import("typed-binary").BoolSchema;
|
|
321
|
-
kalman_thread_online: import("typed-binary").BoolSchema;
|
|
322
|
-
sensor_thread_online: import("typed-binary").BoolSchema;
|
|
323
|
-
fsm_thread_online: import("typed-binary").BoolSchema;
|
|
324
|
-
}>;
|
|
325
|
-
current_state: import("typed-binary").Uint32Schema;
|
|
326
|
-
}>;
|
|
327
|
-
enums: {
|
|
328
|
-
actuators: {};
|
|
329
|
-
sensors: {};
|
|
330
|
-
hardware: {};
|
|
331
|
-
current_state: {
|
|
332
|
-
readonly NONE: 0;
|
|
333
|
-
readonly IDLE: 1;
|
|
334
|
-
readonly READY: 2;
|
|
335
|
-
readonly FILLING: 3;
|
|
336
|
-
readonly SEPARATION_FILLING: 4;
|
|
337
|
-
readonly FLOTATION_FILLING: 5;
|
|
338
|
-
readonly THRUSTING: 6;
|
|
339
|
-
readonly COASTING: 7;
|
|
340
|
-
readonly SEPARATION: 8;
|
|
341
|
-
readonly FLOTATION: 9;
|
|
342
|
-
readonly SHUTDOWN: 10;
|
|
343
|
-
readonly TEST_SEPARATION: 11;
|
|
344
|
-
readonly TEST_FLOTATION: 12;
|
|
345
|
-
};
|
|
346
|
-
};
|
|
347
|
-
};
|
|
348
217
|
};
|
|
349
218
|
export default spec;
|
|
350
219
|
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-07-
|
|
2
|
+
// This file was generated by FRICC on 2026-07-08 21:58: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,21 +60,6 @@ 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 STATE_NAME = {
|
|
64
|
-
NONE: 0,
|
|
65
|
-
IDLE: 1,
|
|
66
|
-
READY: 2,
|
|
67
|
-
FILLING: 3,
|
|
68
|
-
SEPARATION_FILLING: 4,
|
|
69
|
-
FLOTATION_FILLING: 5,
|
|
70
|
-
THRUSTING: 6,
|
|
71
|
-
COASTING: 7,
|
|
72
|
-
SEPARATION: 8,
|
|
73
|
-
FLOTATION: 9,
|
|
74
|
-
SHUTDOWN: 10,
|
|
75
|
-
TEST_SEPARATION: 11,
|
|
76
|
-
TEST_FLOTATION: 12,
|
|
77
|
-
};
|
|
78
63
|
export const Telemetry_GNSS_DATA = bin.object({
|
|
79
64
|
data_valid: bin.u8, // unsigned char
|
|
80
65
|
numSV: bin.u8, // unsigned char
|
|
@@ -133,39 +118,6 @@ export const Telemetry_SensorData = bin.object({
|
|
|
133
118
|
stim_data: Telemetry_STIM377H_DATA, // Telemetry::STIM377H_DATA
|
|
134
119
|
pressure_data: Telemetry_PressureData, // Telemetry::PressureData
|
|
135
120
|
});
|
|
136
|
-
export const Telemetry_KalmanData = bin.object({
|
|
137
|
-
altitude: f64, // double
|
|
138
|
-
velocity: f64, // double
|
|
139
|
-
});
|
|
140
|
-
export const Telemetry_ActuatorStatus = bin.object({
|
|
141
|
-
separation_filling_online: bin.bool, // bool
|
|
142
|
-
flotation_filling_online: bin.bool, // bool
|
|
143
|
-
flotation_online: bin.bool, // bool
|
|
144
|
-
separation_servo_online: bin.bool, // bool
|
|
145
|
-
});
|
|
146
|
-
export const Telemetry_SensorStatus = bin.object({
|
|
147
|
-
bme_online: bin.bool, // bool
|
|
148
|
-
ms_online: bin.bool, // bool
|
|
149
|
-
gnss_online: bin.bool, // bool
|
|
150
|
-
icm_online: bin.bool, // bool
|
|
151
|
-
stim_online: bin.bool, // bool
|
|
152
|
-
pressure_online: bin.bool, // bool
|
|
153
|
-
});
|
|
154
|
-
export const Telemetry_HardwareStatus = bin.object({
|
|
155
|
-
pcan1_online: bin.bool, // bool
|
|
156
|
-
pcan2_online: bin.bool, // bool
|
|
157
|
-
networking_thread_online: bin.bool, // bool
|
|
158
|
-
cli_thread_online: bin.bool, // bool
|
|
159
|
-
kalman_thread_online: bin.bool, // bool
|
|
160
|
-
sensor_thread_online: bin.bool, // bool
|
|
161
|
-
fsm_thread_online: bin.bool, // bool
|
|
162
|
-
});
|
|
163
|
-
export const Telemetry_SystemStatus = bin.object({
|
|
164
|
-
actuators: Telemetry_ActuatorStatus, // Telemetry::ActuatorStatus
|
|
165
|
-
sensors: Telemetry_SensorStatus, // Telemetry::SensorStatus
|
|
166
|
-
hardware: Telemetry_HardwareStatus, // Telemetry::HardwareStatus
|
|
167
|
-
current_state: bin.u32, // STATE_NAME
|
|
168
|
-
});
|
|
169
121
|
export const spec = {
|
|
170
122
|
Telemetry_SensorData: {
|
|
171
123
|
port: 3001,
|
|
@@ -185,20 +137,5 @@ export const spec = {
|
|
|
185
137
|
pressure_data: {},
|
|
186
138
|
},
|
|
187
139
|
},
|
|
188
|
-
Telemetry_KalmanData: {
|
|
189
|
-
port: 3002,
|
|
190
|
-
schema: Telemetry_KalmanData,
|
|
191
|
-
enums: {},
|
|
192
|
-
},
|
|
193
|
-
Telemetry_SystemStatus: {
|
|
194
|
-
port: 3003,
|
|
195
|
-
schema: Telemetry_SystemStatus,
|
|
196
|
-
enums: {
|
|
197
|
-
actuators: {},
|
|
198
|
-
sensors: {},
|
|
199
|
-
hardware: {},
|
|
200
|
-
current_state: STATE_NAME,
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
140
|
};
|
|
204
141
|
export default spec;
|