fossekall-interface 0.1.125 → 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,3 +1,86 @@
1
- export declare const spec: {};
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-03-19 11:27:20. Do not edit manually!
1
+ import bin, { Measurer, Schema } from 'typed-binary';
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;
@@ -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 spec = {};
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,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 AccelerationData: import("typed-binary").ObjectSchema<{
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 AccelerationData = bin.Parsed<typeof AccelerationData>;
14
- export declare const GNSS_DATA: import("typed-binary").ObjectSchema<{
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 GNSS_DATA = bin.Parsed<typeof GNSS_DATA>;
23
- export declare const Loadcell: import("typed-binary").ObjectSchema<{
24
- loadcell_value: import("typed-binary").Float32Schema;
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 Loadcell = bin.Parsed<typeof Loadcell>;
27
- export declare const SensorData: import("typed-binary").ObjectSchema<{
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
- loadcell_data: import("typed-binary").ObjectSchema<{
42
- loadcell_value: import("typed-binary").Float32Schema;
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 SensorData = bin.Parsed<typeof SensorData>;
60
+ export type Telemetry_SensorData = bin.Parsed<typeof Telemetry_SensorData>;
46
61
  export declare const spec: {
47
- SensorData: {
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
- loadcell_data: import("typed-binary").ObjectSchema<{
64
- loadcell_value: import("typed-binary").Float32Schema;
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
- loadcell_data: {};
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-03-19 15:15:45. Do not edit manually!
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 AccelerationData = bin.object({
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 GNSS_DATA = bin.object({
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 Loadcell = bin.object({
77
- loadcell_value: bin.f32, // float
82
+ export const Telemetry_PressureData = bin.object({
83
+ pressure_bar: bin.f32, // float
78
84
  });
79
- export const SensorData = bin.object({
80
- iim_acc_data: AccelerationData, // AccelerationData
81
- gnss_data: GNSS_DATA, // GNSS_DATA
82
- loadcell_data: Loadcell, // Loadcell
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
- SensorData: {
92
+ Telemetry_SensorData: {
86
93
  port: 3001,
87
- schema: SensorData,
94
+ schema: Telemetry_SensorData,
88
95
  enums: {
89
96
  iim_acc_data: {},
90
97
  gnss_data: {},
91
- loadcell_data: {},
98
+ flotation_pressure_data: {},
99
+ seperation_pressure_data: {},
92
100
  },
93
101
  },
94
102
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.125",
3
+ "version": "0.1.127",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",