fossekall-interface 0.1.53 → 0.1.54

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,15 @@
1
1
  import bin from 'typed-binary';
2
+ export declare const node_bldc_Id: {
3
+ readonly Fuel: 0;
4
+ readonly Ox: 1;
5
+ readonly Count: 2;
6
+ };
7
+ export type node_bldc_Id = (typeof node_bldc_Id)[keyof typeof node_bldc_Id];
8
+ export declare const BldcCommands_OpenClose: {
9
+ readonly Open: 0;
10
+ readonly Close: 1;
11
+ };
12
+ export type BldcCommands_OpenClose = (typeof BldcCommands_OpenClose)[keyof typeof BldcCommands_OpenClose];
2
13
  export declare const StateId: {
3
14
  readonly Safe: 0;
4
15
  readonly N2Fill: 1;
@@ -72,6 +83,20 @@ export declare const RegulatorCommands_RegulatorValue: {
72
83
  readonly Enable: 1;
73
84
  };
74
85
  export type RegulatorCommands_RegulatorValue = (typeof RegulatorCommands_RegulatorValue)[keyof typeof RegulatorCommands_RegulatorValue];
86
+ export declare const BldcCommands_OpenCloseBldcPayload: import("typed-binary").ObjectSchema<{
87
+ id: import("typed-binary").ByteSchema;
88
+ open_close: import("typed-binary").ByteSchema;
89
+ }>;
90
+ export type BldcCommands_OpenCloseBldcPayload = bin.Parsed<typeof BldcCommands_OpenCloseBldcPayload>;
91
+ export declare const BldcCommands_SetBldcPayload: import("typed-binary").ObjectSchema<{
92
+ id: import("typed-binary").ByteSchema;
93
+ angle_deg: import("typed-binary").Float32Schema;
94
+ }>;
95
+ export type BldcCommands_SetBldcPayload = bin.Parsed<typeof BldcCommands_SetBldcPayload>;
96
+ export declare const BldcCommands_CalibratePayload: import("typed-binary").ObjectSchema<{
97
+ id: import("typed-binary").ByteSchema;
98
+ }>;
99
+ export type BldcCommands_CalibratePayload = bin.Parsed<typeof BldcCommands_CalibratePayload>;
75
100
  export declare const FsmCommands_NextStatePayload: import("typed-binary").ObjectSchema<{
76
101
  current_state: import("typed-binary").ByteSchema;
77
102
  }>;
@@ -133,6 +158,51 @@ export declare const RegulatorCommands_SetGainsPayload: import("typed-binary").O
133
158
  }>;
134
159
  export type RegulatorCommands_SetGainsPayload = bin.Parsed<typeof RegulatorCommands_SetGainsPayload>;
135
160
  export declare const spec: {
161
+ BldcCommands_OpenCloseBldcPayload: {
162
+ id: number;
163
+ schema: import("typed-binary").ObjectSchema<{
164
+ id: import("typed-binary").ByteSchema;
165
+ open_close: import("typed-binary").ByteSchema;
166
+ }>;
167
+ enums: {
168
+ id: {
169
+ readonly Fuel: 0;
170
+ readonly Ox: 1;
171
+ readonly Count: 2;
172
+ };
173
+ open_close: {
174
+ readonly Open: 0;
175
+ readonly Close: 1;
176
+ };
177
+ };
178
+ };
179
+ BldcCommands_SetBldcPayload: {
180
+ id: number;
181
+ schema: import("typed-binary").ObjectSchema<{
182
+ id: import("typed-binary").ByteSchema;
183
+ angle_deg: import("typed-binary").Float32Schema;
184
+ }>;
185
+ enums: {
186
+ id: {
187
+ readonly Fuel: 0;
188
+ readonly Ox: 1;
189
+ readonly Count: 2;
190
+ };
191
+ };
192
+ };
193
+ BldcCommands_CalibratePayload: {
194
+ id: number;
195
+ schema: import("typed-binary").ObjectSchema<{
196
+ id: import("typed-binary").ByteSchema;
197
+ }>;
198
+ enums: {
199
+ id: {
200
+ readonly Fuel: 0;
201
+ readonly Ox: 1;
202
+ readonly Count: 2;
203
+ };
204
+ };
205
+ };
136
206
  FsmCommands_NextStatePayload: {
137
207
  id: number;
138
208
  schema: import("typed-binary").ObjectSchema<{
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-04-01 14:26:50. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-04-01 14: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,6 +60,15 @@ 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 node_bldc_Id = {
64
+ Fuel: 0,
65
+ Ox: 1,
66
+ Count: 2,
67
+ };
68
+ export const BldcCommands_OpenClose = {
69
+ Open: 0,
70
+ Close: 1,
71
+ };
63
72
  export const StateId = {
64
73
  Safe: 0,
65
74
  N2Fill: 1,
@@ -123,6 +132,17 @@ export const RegulatorCommands_RegulatorValue = {
123
132
  Disable: 0,
124
133
  Enable: 1,
125
134
  };
135
+ export const BldcCommands_OpenCloseBldcPayload = bin.object({
136
+ id: bin.u8, // node::bldc::Id
137
+ open_close: bin.u8, // BldcCommands::OpenClose
138
+ });
139
+ export const BldcCommands_SetBldcPayload = bin.object({
140
+ id: bin.u8, // node::bldc::Id
141
+ angle_deg: bin.f32, // float
142
+ });
143
+ export const BldcCommands_CalibratePayload = bin.object({
144
+ id: bin.u8, // node::bldc::Id
145
+ });
126
146
  export const FsmCommands_NextStatePayload = bin.object({
127
147
  current_state: bin.u8, // StateId
128
148
  });
@@ -173,6 +193,28 @@ export const RegulatorCommands_SetGainsPayload = bin.object({
173
193
  kd: bin.f32, // float
174
194
  });
175
195
  export const spec = {
196
+ BldcCommands_OpenCloseBldcPayload: {
197
+ id: 64,
198
+ schema: BldcCommands_OpenCloseBldcPayload,
199
+ enums: {
200
+ id: node_bldc_Id,
201
+ open_close: BldcCommands_OpenClose,
202
+ },
203
+ },
204
+ BldcCommands_SetBldcPayload: {
205
+ id: 65,
206
+ schema: BldcCommands_SetBldcPayload,
207
+ enums: {
208
+ id: node_bldc_Id,
209
+ },
210
+ },
211
+ BldcCommands_CalibratePayload: {
212
+ id: 66,
213
+ schema: BldcCommands_CalibratePayload,
214
+ enums: {
215
+ id: node_bldc_Id,
216
+ },
217
+ },
176
218
  FsmCommands_NextStatePayload: {
177
219
  id: 32,
178
220
  schema: FsmCommands_NextStatePayload,
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-04-01 14:26:47. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-04-01 14:43:38. 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",