fossekall-interface 0.1.22 → 0.1.23

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,4 +1,4 @@
1
- import bin, { MaxValue, Schema, type IMeasurer, type ISerialInput, type ISerialOutput } from 'typed-binary';
1
+ import bin, { MaxValue, Schema, type IMeasurer, type ISerialInput, type ISerialOutput } from "typed-binary";
2
2
  declare class UInt64Schema extends Schema<bigint> {
3
3
  readonly maxSize = 8;
4
4
  read(input: ISerialInput): bigint;
@@ -30,6 +30,35 @@ export declare const actuators_solenoid_Opening: {
30
30
  readonly kOpen: 2;
31
31
  };
32
32
  export type actuators_solenoid_Opening = (typeof actuators_solenoid_Opening)[keyof typeof actuators_solenoid_Opening];
33
+ export declare const StateId: {
34
+ readonly Safe: 0;
35
+ readonly FuelFill: 1;
36
+ readonly PostFuelFill: 2;
37
+ readonly N2Fill: 3;
38
+ readonly PostN2Fill: 4;
39
+ readonly OxFill: 5;
40
+ readonly PostOxFill: 6;
41
+ readonly Pressurized: 7;
42
+ readonly Armed: 8;
43
+ readonly Burn: 9;
44
+ readonly Shutdown: 10;
45
+ readonly PostBurn: 11;
46
+ readonly Depressurize: 12;
47
+ readonly Calibrate: 13;
48
+ };
49
+ export type StateId = (typeof StateId)[keyof typeof StateId];
50
+ export declare const Event: {
51
+ readonly Boot: 0;
52
+ readonly NextState: 1;
53
+ readonly PreviousState: 2;
54
+ readonly Timeout: 3;
55
+ readonly CalibrateRequest: 4;
56
+ readonly BurnwireCut: 5;
57
+ readonly Abort: 6;
58
+ readonly None: 7;
59
+ readonly Count: 8;
60
+ };
61
+ export type Event = (typeof Event)[keyof typeof Event];
33
62
  export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
34
63
  commanded_angle_deg: import("typed-binary").Float32Schema;
35
64
  target_angle_deg: import("typed-binary").Float32Schema;
@@ -55,15 +84,36 @@ export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
55
84
  calibrated: import("typed-binary").ByteSchema;
56
85
  }>;
57
86
  export type BldcTelemetry = bin.Parsed<typeof BldcTelemetry>;
87
+ export declare const sensors_pressure_PressureBatch: import("typed-binary").ObjectSchema<{
88
+ t0_ms: import("typed-binary").Uint32Schema;
89
+ dt_us: import("typed-binary").Uint16Schema;
90
+ count: import("typed-binary").ByteSchema;
91
+ seq: import("typed-binary").ByteSchema;
92
+ overrun: import("typed-binary").BoolSchema;
93
+ samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
94
+ }>;
95
+ export type sensors_pressure_PressureBatch = bin.Parsed<typeof sensors_pressure_PressureBatch>;
58
96
  export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").ObjectSchema<{
59
97
  power_state: import("typed-binary").ByteSchema;
60
98
  opening: import("typed-binary").ByteSchema;
61
99
  }>;
62
100
  export type actuators_solenoid_SolenoidStatus = bin.Parsed<typeof actuators_solenoid_SolenoidStatus>;
101
+ export declare const HeartBeatTelemetry: import("typed-binary").ObjectSchema<{
102
+ message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
103
+ }>;
104
+ export type HeartBeatTelemetry = bin.Parsed<typeof HeartBeatTelemetry>;
105
+ export declare const fsm_FsmStatus: import("typed-binary").ObjectSchema<{
106
+ state_entry_time_ms: import("typed-binary").Uint32Schema;
107
+ state_time_ms: import("typed-binary").Uint32Schema;
108
+ current_state: import("typed-binary").ByteSchema;
109
+ previous_state: import("typed-binary").ByteSchema;
110
+ last_event: import("typed-binary").ByteSchema;
111
+ }>;
112
+ export type fsm_FsmStatus = bin.Parsed<typeof fsm_FsmStatus>;
63
113
  export declare const spec: {
64
- readonly actuators_servo_ServoStatus: {
65
- readonly port: 5003;
66
- readonly schema: import("typed-binary").ObjectSchema<{
114
+ actuators_servo_ServoStatus: {
115
+ port: number;
116
+ schema: import("typed-binary").ObjectSchema<{
67
117
  commanded_angle_deg: import("typed-binary").Float32Schema;
68
118
  target_angle_deg: import("typed-binary").Float32Schema;
69
119
  measured_angle_deg: import("typed-binary").Float32Schema;
@@ -71,13 +121,13 @@ export declare const spec: {
71
121
  mode: import("typed-binary").ByteSchema;
72
122
  power_state: import("typed-binary").ByteSchema;
73
123
  }>;
74
- readonly enums: {
75
- readonly mode: {
124
+ enums: {
125
+ mode: {
76
126
  readonly kUnknown: 0;
77
127
  readonly kPosition: 1;
78
128
  readonly kCalibrate: 2;
79
129
  };
80
- readonly power_state: {
130
+ power_state: {
81
131
  readonly kUnknown: 0;
82
132
  readonly kOff: 1;
83
133
  readonly kBooting: 2;
@@ -85,9 +135,9 @@ export declare const spec: {
85
135
  };
86
136
  };
87
137
  };
88
- readonly BldcTelemetry: {
89
- readonly port: 5000;
90
- readonly schema: import("typed-binary").ObjectSchema<{
138
+ BldcTelemetry: {
139
+ port: number;
140
+ schema: import("typed-binary").ObjectSchema<{
91
141
  valve_position: import("typed-binary").Float32Schema;
92
142
  motor_position: import("typed-binary").Float32Schema;
93
143
  timestamp: UInt64Schema;
@@ -102,27 +152,100 @@ export declare const spec: {
102
152
  position_raw: import("typed-binary").Float32Schema;
103
153
  calibrated: import("typed-binary").ByteSchema;
104
154
  }>;
105
- readonly enums: {};
155
+ enums: {};
156
+ };
157
+ sensors_pressure_PressureBatch: {
158
+ port: number;
159
+ schema: import("typed-binary").ObjectSchema<{
160
+ t0_ms: import("typed-binary").Uint32Schema;
161
+ dt_us: import("typed-binary").Uint16Schema;
162
+ count: import("typed-binary").ByteSchema;
163
+ seq: import("typed-binary").ByteSchema;
164
+ overrun: import("typed-binary").BoolSchema;
165
+ samples: import("typed-binary").ArraySchema<import("typed-binary").Int16Schema>;
166
+ }>;
167
+ enums: {};
106
168
  };
107
- readonly actuators_solenoid_SolenoidStatus: {
108
- readonly port: 5004;
109
- readonly schema: import("typed-binary").ObjectSchema<{
169
+ actuators_solenoid_SolenoidStatus: {
170
+ port: number;
171
+ schema: import("typed-binary").ObjectSchema<{
110
172
  power_state: import("typed-binary").ByteSchema;
111
173
  opening: import("typed-binary").ByteSchema;
112
174
  }>;
113
- readonly enums: {
114
- readonly power_state: {
175
+ enums: {
176
+ power_state: {
115
177
  readonly kUnknown: 0;
116
178
  readonly kOff: 1;
117
179
  readonly kOn: 2;
118
180
  };
119
- readonly opening: {
181
+ opening: {
120
182
  readonly kUnknown: 0;
121
183
  readonly kClosed: 1;
122
184
  readonly kOpen: 2;
123
185
  };
124
186
  };
125
187
  };
188
+ HeartBeatTelemetry: {
189
+ schema: import("typed-binary").ObjectSchema<{
190
+ message: import("typed-binary").ArraySchema<import("typed-binary").Int8Schema>;
191
+ }>;
192
+ enums: {};
193
+ };
194
+ fsm_FsmStatus: {
195
+ port: number;
196
+ schema: import("typed-binary").ObjectSchema<{
197
+ state_entry_time_ms: import("typed-binary").Uint32Schema;
198
+ state_time_ms: import("typed-binary").Uint32Schema;
199
+ current_state: import("typed-binary").ByteSchema;
200
+ previous_state: import("typed-binary").ByteSchema;
201
+ last_event: import("typed-binary").ByteSchema;
202
+ }>;
203
+ enums: {
204
+ current_state: {
205
+ readonly Safe: 0;
206
+ readonly FuelFill: 1;
207
+ readonly PostFuelFill: 2;
208
+ readonly N2Fill: 3;
209
+ readonly PostN2Fill: 4;
210
+ readonly OxFill: 5;
211
+ readonly PostOxFill: 6;
212
+ readonly Pressurized: 7;
213
+ readonly Armed: 8;
214
+ readonly Burn: 9;
215
+ readonly Shutdown: 10;
216
+ readonly PostBurn: 11;
217
+ readonly Depressurize: 12;
218
+ readonly Calibrate: 13;
219
+ };
220
+ previous_state: {
221
+ readonly Safe: 0;
222
+ readonly FuelFill: 1;
223
+ readonly PostFuelFill: 2;
224
+ readonly N2Fill: 3;
225
+ readonly PostN2Fill: 4;
226
+ readonly OxFill: 5;
227
+ readonly PostOxFill: 6;
228
+ readonly Pressurized: 7;
229
+ readonly Armed: 8;
230
+ readonly Burn: 9;
231
+ readonly Shutdown: 10;
232
+ readonly PostBurn: 11;
233
+ readonly Depressurize: 12;
234
+ readonly Calibrate: 13;
235
+ };
236
+ last_event: {
237
+ readonly Boot: 0;
238
+ readonly NextState: 1;
239
+ readonly PreviousState: 2;
240
+ readonly Timeout: 3;
241
+ readonly CalibrateRequest: 4;
242
+ readonly BurnwireCut: 5;
243
+ readonly Abort: 6;
244
+ readonly None: 7;
245
+ readonly Count: 8;
246
+ };
247
+ };
248
+ };
126
249
  };
127
250
  export default spec;
128
251
  export type Spec = typeof spec;
@@ -1,7 +1,7 @@
1
- import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-03-19 10:00:44. Do not edit manually!
1
+ import bin, { Measurer, Schema, } from "typed-binary";
2
+ // This file was generated by FRICC on 2026-03-23 20:29:42. Do not edit manually!
3
3
  // The current version of typed-binary does not support 64-bit primitives.
4
- // So for we'll implement our own schemas. :)
4
+ // So for we'll implement our own schemas. :)
5
5
  const __littleEndian = true;
6
6
  class UInt64Schema extends Schema {
7
7
  maxSize = 8;
@@ -81,6 +81,33 @@ export const actuators_solenoid_Opening = {
81
81
  kClosed: 1,
82
82
  kOpen: 2,
83
83
  };
84
+ export const StateId = {
85
+ Safe: 0,
86
+ FuelFill: 1,
87
+ PostFuelFill: 2,
88
+ N2Fill: 3,
89
+ PostN2Fill: 4,
90
+ OxFill: 5,
91
+ PostOxFill: 6,
92
+ Pressurized: 7,
93
+ Armed: 8,
94
+ Burn: 9,
95
+ Shutdown: 10,
96
+ PostBurn: 11,
97
+ Depressurize: 12,
98
+ Calibrate: 13,
99
+ };
100
+ export const Event = {
101
+ Boot: 0,
102
+ NextState: 1,
103
+ PreviousState: 2,
104
+ Timeout: 3,
105
+ CalibrateRequest: 4,
106
+ BurnwireCut: 5,
107
+ Abort: 6,
108
+ None: 7,
109
+ Count: 8,
110
+ };
84
111
  export const actuators_servo_ServoStatus = bin.object({
85
112
  commanded_angle_deg: bin.f32, // float
86
113
  target_angle_deg: bin.f32, // float
@@ -104,10 +131,28 @@ export const BldcTelemetry = bin.object({
104
131
  position_raw: bin.f32, // float
105
132
  calibrated: bin.u8, // unsigned char
106
133
  });
134
+ export const sensors_pressure_PressureBatch = bin.object({
135
+ t0_ms: bin.u32, // unsigned int
136
+ dt_us: bin.u16, // unsigned short
137
+ count: bin.u8, // unsigned char
138
+ seq: bin.u8, // unsigned char
139
+ overrun: bin.bool, // bool
140
+ samples: bin.arrayOf(bin.i16, 10), // short[10]
141
+ });
107
142
  export const actuators_solenoid_SolenoidStatus = bin.object({
108
143
  power_state: bin.u8, // actuators::solenoid::PowerState
109
144
  opening: bin.u8, // actuators::solenoid::Opening
110
145
  });
146
+ export const HeartBeatTelemetry = bin.object({
147
+ message: bin.arrayOf(bin.i8, 16), // char[16]
148
+ });
149
+ export const fsm_FsmStatus = bin.object({
150
+ state_entry_time_ms: bin.u32, // unsigned int
151
+ state_time_ms: bin.u32, // unsigned int
152
+ current_state: bin.u8, // StateId
153
+ previous_state: bin.u8, // StateId
154
+ last_event: bin.u8, // Event
155
+ });
111
156
  export const spec = {
112
157
  actuators_servo_ServoStatus: {
113
158
  port: 5003,
@@ -122,6 +167,11 @@ export const spec = {
122
167
  schema: BldcTelemetry,
123
168
  enums: {},
124
169
  },
170
+ sensors_pressure_PressureBatch: {
171
+ port: 5002,
172
+ schema: sensors_pressure_PressureBatch,
173
+ enums: {},
174
+ },
125
175
  actuators_solenoid_SolenoidStatus: {
126
176
  port: 5004,
127
177
  schema: actuators_solenoid_SolenoidStatus,
@@ -130,5 +180,18 @@ export const spec = {
130
180
  opening: actuators_solenoid_Opening,
131
181
  },
132
182
  },
183
+ HeartBeatTelemetry: {
184
+ schema: HeartBeatTelemetry,
185
+ enums: {},
186
+ },
187
+ fsm_FsmStatus: {
188
+ port: 5001,
189
+ schema: fsm_FsmStatus,
190
+ enums: {
191
+ current_state: StateId,
192
+ previous_state: StateId,
193
+ last_event: Event,
194
+ },
195
+ },
133
196
  };
134
197
  export default spec;
@@ -5,58 +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 Telemetry_AccelData: import("typed-binary").ObjectSchema<{
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 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;
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 Telemetry_GNSS_DATA = bin.Parsed<typeof Telemetry_GNSS_DATA>;
29
- export declare const Telemetry_Loadcell: import("typed-binary").ObjectSchema<{
30
- loadcell_value: Float64Schema;
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 Telemetry_Loadcell = bin.Parsed<typeof Telemetry_Loadcell>;
33
- export declare const Telemetry_SensorData: import("typed-binary").ObjectSchema<{
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
41
  loadcell_data: import("typed-binary").ObjectSchema<{
54
- loadcell_value: Float64Schema;
42
+ loadcell_value: import("typed-binary").Float32Schema;
55
43
  }>;
56
44
  }>;
57
- export type Telemetry_SensorData = bin.Parsed<typeof Telemetry_SensorData>;
45
+ export type SensorData = bin.Parsed<typeof SensorData>;
58
46
  export declare const spec: {
59
- Telemetry_SensorData: {
47
+ SensorData: {
60
48
  port: number;
61
49
  schema: import("typed-binary").ObjectSchema<{
62
50
  iim_acc_data: import("typed-binary").ObjectSchema<{
@@ -65,21 +53,15 @@ export declare const spec: {
65
53
  acc_z: import("typed-binary").Float32Schema;
66
54
  }>;
67
55
  gnss_data: import("typed-binary").ObjectSchema<{
68
- data_valid: import("typed-binary").BoolSchema;
69
56
  lat: Float64Schema;
70
57
  lon: Float64Schema;
71
- hAcc: import("typed-binary").Uint32Schema;
72
- vAcc: import("typed-binary").Uint32Schema;
73
58
  hMSL: Float64Schema;
74
59
  gSpeed: Float64Schema;
75
60
  headMot: Float64Schema;
76
- velN: import("typed-binary").Int32Schema;
77
- velE: import("typed-binary").Int32Schema;
78
- velD: import("typed-binary").Int32Schema;
79
61
  numSV: import("typed-binary").ByteSchema;
80
62
  }>;
81
63
  loadcell_data: import("typed-binary").ObjectSchema<{
82
- loadcell_value: Float64Schema;
64
+ loadcell_value: import("typed-binary").Float32Schema;
83
65
  }>;
84
66
  }>;
85
67
  enums: {
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-03-22 14:51:40. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-19 15:15:45. 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,37 +60,31 @@ 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 Telemetry_AccelData = bin.object({
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 Telemetry_GNSS_DATA = bin.object({
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 Telemetry_Loadcell = bin.object({
83
- loadcell_value: f64, // double
76
+ export const Loadcell = bin.object({
77
+ loadcell_value: bin.f32, // float
84
78
  });
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
- loadcell_data: Telemetry_Loadcell, // Telemetry::Loadcell
79
+ export const SensorData = bin.object({
80
+ iim_acc_data: AccelerationData, // AccelerationData
81
+ gnss_data: GNSS_DATA, // GNSS_DATA
82
+ loadcell_data: Loadcell, // Loadcell
89
83
  });
90
84
  export const spec = {
91
- Telemetry_SensorData: {
85
+ SensorData: {
92
86
  port: 3001,
93
- schema: Telemetry_SensorData,
87
+ schema: SensorData,
94
88
  enums: {
95
89
  iim_acc_data: {},
96
90
  gnss_data: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",