fossekall-interface 0.1.132 → 0.1.133

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-07-03 23:16:57. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-07-04 12:06: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;
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-07-03 23:17:00. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-07-04 12:06:04. 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;
@@ -1,85 +1,35 @@
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;
2
+ export declare const Commands_StateCommands: {
3
+ readonly IDLE: 0;
4
+ readonly OPEN_FILLING: 1;
5
+ readonly OPEN_RECOVERY_FILL: 2;
6
+ readonly EXPECT_LIFTOFF: 3;
7
+ readonly OPEN_FLOTATION_FILL: 4;
8
+ readonly SEPERATION: 5;
9
+ readonly FLOTATION: 6;
10
+ };
11
+ export type Commands_StateCommands = (typeof Commands_StateCommands)[keyof typeof Commands_StateCommands];
12
+ export declare const Commands_FSMStateCommand: import("typed-binary").ObjectSchema<{
13
+ command: import("typed-binary").ByteSchema;
30
14
  }>;
31
- export type Commands_SetServoPayload = bin.Parsed<typeof Commands_SetServoPayload>;
15
+ export type Commands_FSMStateCommand = bin.Parsed<typeof Commands_FSMStateCommand>;
32
16
  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: {
17
+ Commands_FSMStateCommand: {
76
18
  id: number;
77
19
  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;
20
+ command: import("typed-binary").ByteSchema;
81
21
  }>;
82
- enums: {};
22
+ enums: {
23
+ command: {
24
+ readonly IDLE: 0;
25
+ readonly OPEN_FILLING: 1;
26
+ readonly OPEN_RECOVERY_FILL: 2;
27
+ readonly EXPECT_LIFTOFF: 3;
28
+ readonly OPEN_FLOTATION_FILL: 4;
29
+ readonly SEPERATION: 5;
30
+ readonly FLOTATION: 6;
31
+ };
32
+ };
83
33
  };
84
34
  };
85
35
  export default spec;
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-07-04 13:01:22. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-07-04 14:47:16. 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,64 +60,25 @@ 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 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
63
+ export const Commands_StateCommands = {
64
+ IDLE: 0,
65
+ OPEN_FILLING: 1,
66
+ OPEN_RECOVERY_FILL: 2,
67
+ EXPECT_LIFTOFF: 3,
68
+ OPEN_FLOTATION_FILL: 4,
69
+ SEPERATION: 5,
70
+ FLOTATION: 6,
71
+ };
72
+ export const Commands_FSMStateCommand = bin.object({
73
+ command: bin.u8, // Commands::StateCommands
85
74
  });
86
75
  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: {},
76
+ Commands_FSMStateCommand: {
77
+ id: 16,
78
+ schema: Commands_FSMStateCommand,
79
+ enums: {
80
+ command: Commands_StateCommands,
81
+ },
121
82
  },
122
83
  };
123
84
  export default spec;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.132",
3
+ "version": "0.1.133",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",