fossekall-interface 0.1.5 → 0.1.7

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.
@@ -5,22 +5,43 @@ declare class UInt64Schema extends Schema<bigint> {
5
5
  write(output: ISerialOutput, value: bigint): void;
6
6
  measure(_: bigint | typeof MaxValue, measurer?: IMeasurer): IMeasurer;
7
7
  }
8
- export declare const STATE_NAME: {
9
- readonly IDLE: 0;
10
- readonly N2_FILL: 1;
11
- readonly N2_FILL_HOLD: 2;
12
- readonly PRESSURIZE: 3;
13
- readonly RUN: 4;
14
- readonly HOLD: 5;
15
- readonly CALIBRATE: 6;
8
+ export declare const actuators_servo_ServoMode: {
9
+ readonly kUnknown: 0;
10
+ readonly kPosition: 1;
11
+ readonly kCalibrate: 2;
16
12
  };
17
- export type STATE_NAME = (typeof STATE_NAME)[keyof typeof STATE_NAME];
18
- export declare const BLDCTelemetry: import("typed-binary").ObjectSchema<{
13
+ export type actuators_servo_ServoMode = (typeof actuators_servo_ServoMode)[keyof typeof actuators_servo_ServoMode];
14
+ export declare const actuators_servo_PowerState: {
15
+ readonly kUnknown: 0;
16
+ readonly kOff: 1;
17
+ readonly kBooting: 2;
18
+ readonly kOn: 3;
19
+ };
20
+ export type actuators_servo_PowerState = (typeof actuators_servo_PowerState)[keyof typeof actuators_servo_PowerState];
21
+ export declare const actuators_solenoid_PowerState: {
22
+ readonly kUnknown: 0;
23
+ readonly kOff: 1;
24
+ readonly kOn: 2;
25
+ };
26
+ export type actuators_solenoid_PowerState = (typeof actuators_solenoid_PowerState)[keyof typeof actuators_solenoid_PowerState];
27
+ export declare const actuators_solenoid_Opening: {
28
+ readonly kUnknown: 0;
29
+ readonly kClosed: 1;
30
+ readonly kOpen: 2;
31
+ };
32
+ export type actuators_solenoid_Opening = (typeof actuators_solenoid_Opening)[keyof typeof actuators_solenoid_Opening];
33
+ export declare const actuators_servo_ServoStatus: import("typed-binary").ObjectSchema<{
34
+ commanded_angle_deg: import("typed-binary").Float32Schema;
35
+ target_angle_deg: import("typed-binary").Float32Schema;
36
+ measured_angle_deg: import("typed-binary").Float32Schema;
37
+ current_ma: import("typed-binary").Float32Schema;
38
+ mode: import("typed-binary").ByteSchema;
39
+ power_state: import("typed-binary").ByteSchema;
40
+ }>;
41
+ export type actuators_servo_ServoStatus = bin.Parsed<typeof actuators_servo_ServoStatus>;
42
+ export declare const BldcTelemetry: import("typed-binary").ObjectSchema<{
19
43
  valve_position: import("typed-binary").Float32Schema;
20
44
  motor_position: import("typed-binary").Float32Schema;
21
- upstream_pressure: import("typed-binary").Float32Schema;
22
- downstream_pressure: import("typed-binary").Float32Schema;
23
- venturi_pressure: import("typed-binary").Float32Schema;
24
45
  timestamp: UInt64Schema;
25
46
  current_draw: import("typed-binary").Float32Schema;
26
47
  u_p: import("typed-binary").Float32Schema;
@@ -31,19 +52,12 @@ export declare const BLDCTelemetry: import("typed-binary").ObjectSchema<{
31
52
  u_set: import("typed-binary").Float32Schema;
32
53
  u_total: import("typed-binary").Float32Schema;
33
54
  position_raw: import("typed-binary").Float32Schema;
34
- servo_encoder: import("typed-binary").Float32Schema;
35
55
  calibrated: import("typed-binary").ByteSchema;
36
- fsm_state: import("typed-binary").Uint16Schema;
37
- }>;
38
- export type BLDCTelemetry = bin.Parsed<typeof BLDCTelemetry>;
39
- export declare const FsmTelemetry: import("typed-binary").ObjectSchema<{
40
- currentState: import("typed-binary").Uint16Schema;
41
56
  }>;
42
- export type FsmTelemetry = bin.Parsed<typeof FsmTelemetry>;
43
- export declare const SawWaveTelemetry: import("typed-binary").ObjectSchema<{
44
- value: import("typed-binary").Float32Schema;
45
- inverse: import("typed-binary").Float32Schema;
46
- derivative: import("typed-binary").Float32Schema;
57
+ export type BldcTelemetry = bin.Parsed<typeof BldcTelemetry>;
58
+ export declare const actuators_solenoid_SolenoidStatus: import("typed-binary").ObjectSchema<{
59
+ power_state: import("typed-binary").ByteSchema;
60
+ opening: import("typed-binary").ByteSchema;
47
61
  }>;
48
- export type SawWaveTelemetry = bin.Parsed<typeof SawWaveTelemetry>;
62
+ export type actuators_solenoid_SolenoidStatus = bin.Parsed<typeof actuators_solenoid_SolenoidStatus>;
49
63
  export {};
@@ -1,5 +1,5 @@
1
1
  import bin, { Measurer, Schema } from 'typed-binary';
2
- // This file was generated by FRICC on 2026-03-05 14:48:28. Do not edit manually!
2
+ // This file was generated by FRICC on 2026-03-08 15:37:58. 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,38 @@ 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
- IDLE: 0,
65
- N2_FILL: 1,
66
- N2_FILL_HOLD: 2,
67
- PRESSURIZE: 3,
68
- RUN: 4,
69
- HOLD: 5,
70
- CALIBRATE: 6,
63
+ export const actuators_servo_ServoMode = {
64
+ kUnknown: 0,
65
+ kPosition: 1,
66
+ kCalibrate: 2,
71
67
  };
72
- export const BLDCTelemetry = bin.object({
68
+ export const actuators_servo_PowerState = {
69
+ kUnknown: 0,
70
+ kOff: 1,
71
+ kBooting: 2,
72
+ kOn: 3,
73
+ };
74
+ export const actuators_solenoid_PowerState = {
75
+ kUnknown: 0,
76
+ kOff: 1,
77
+ kOn: 2,
78
+ };
79
+ export const actuators_solenoid_Opening = {
80
+ kUnknown: 0,
81
+ kClosed: 1,
82
+ kOpen: 2,
83
+ };
84
+ export const actuators_servo_ServoStatus = bin.object({
85
+ commanded_angle_deg: bin.f32, // float
86
+ target_angle_deg: bin.f32, // float
87
+ measured_angle_deg: bin.f32, // float
88
+ current_ma: bin.f32, // float
89
+ mode: bin.u8, // actuators::servo::ServoMode
90
+ power_state: bin.u8, // actuators::servo::PowerState
91
+ });
92
+ export const BldcTelemetry = bin.object({
73
93
  valve_position: bin.f32, // float
74
94
  motor_position: bin.f32, // float
75
- upstream_pressure: bin.f32, // float
76
- downstream_pressure: bin.f32, // float
77
- venturi_pressure: bin.f32, // float
78
95
  timestamp: u64, // unsigned long long
79
96
  current_draw: bin.f32, // float
80
97
  u_p: bin.f32, // float
@@ -85,15 +102,9 @@ export const BLDCTelemetry = bin.object({
85
102
  u_set: bin.f32, // float
86
103
  u_total: bin.f32, // float
87
104
  position_raw: bin.f32, // float
88
- servo_encoder: bin.f32, // float
89
105
  calibrated: bin.u8, // unsigned char
90
- fsm_state: bin.u16, // STATE_NAME
91
- });
92
- export const FsmTelemetry = bin.object({
93
- currentState: bin.u16, // STATE_NAME
94
106
  });
95
- export const SawWaveTelemetry = bin.object({
96
- value: bin.f32, // float
97
- inverse: bin.f32, // float
98
- derivative: bin.f32, // float
107
+ export const actuators_solenoid_SolenoidStatus = bin.object({
108
+ power_state: bin.u8, // actuators::solenoid::PowerState
109
+ opening: bin.u8, // actuators::solenoid::Opening
99
110
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",