@kuriousdesign/machine-sdk 1.0.63 → 1.0.65

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.
@@ -17,16 +17,18 @@ export interface ApplicatorSetpoint {
17
17
  zOffset: number;
18
18
  ballValveOn: boolean;
19
19
  }
20
+ export declare const initialApplicatorSetpoint: ApplicatorSetpoint;
20
21
  export declare const exampleApplicatorSetpoints: ApplicatorSetpoint[];
21
22
  export declare const initialApplicatorSetpoints: ApplicatorSetpoint[];
22
23
  export interface RecipeData {
23
24
  index: number;
25
+ nickname: string;
24
26
  tubeTypeId: number;
25
27
  tubeTypeString: string;
26
28
  tubeOuterDiameterMax: number;
27
29
  falseBottomStaysOpen: boolean;
28
30
  linerPotPressure: number;
29
- linerType: string;
31
+ linerTypeString: string;
30
32
  applicatorSetpoints: ApplicatorSetpoint[];
31
33
  applicatorToolId: ApplicatorTools;
32
34
  applicatorToolString: string;
@@ -1,8 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initialRecipeStore = exports.initialRecipe = exports.exampleRecipe = exports.weighingFingerStringToIdMap = exports.weighingFingerIdToStringMap = exports.WeighingFingers = exports.cleanerStringToIdMap = exports.cleanerIdToStringMap = exports.Cleaners = exports.applicatorToolStringToIdMap = exports.applicatorToolIdToStringMap = exports.ApplicatorTools = exports.LinerTypes = exports.tubeTypeStringToIdMap = exports.tubeTypeIdToStringMap = exports.TubeTypes = exports.cameraStringToIdMap = exports.cameraIdToStringMap = exports.CameraIds = exports.initialApplicatorSetpoints = exports.exampleApplicatorSetpoints = void 0;
3
+ exports.initialRecipeStore = exports.initialRecipe = exports.exampleRecipe = exports.weighingFingerStringToIdMap = exports.weighingFingerIdToStringMap = exports.WeighingFingers = exports.cleanerStringToIdMap = exports.cleanerIdToStringMap = exports.Cleaners = exports.applicatorToolStringToIdMap = exports.applicatorToolIdToStringMap = exports.ApplicatorTools = exports.LinerTypes = exports.tubeTypeStringToIdMap = exports.tubeTypeIdToStringMap = exports.TubeTypes = exports.cameraStringToIdMap = exports.cameraIdToStringMap = exports.CameraIds = exports.initialApplicatorSetpoints = exports.exampleApplicatorSetpoints = exports.initialApplicatorSetpoint = void 0;
4
4
  exports.getTubeTypeString = getTubeTypeString;
5
5
  const GlobalConstants_1 = require("./GlobalConstants");
6
+ exports.initialApplicatorSetpoint = {
7
+ speed: 0,
8
+ squeegeeDiameter: 0.0,
9
+ zOffset: 0.0,
10
+ ballValveOn: false,
11
+ };
6
12
  exports.exampleApplicatorSetpoints = [
7
13
  { speed: 100, squeegeeDiameter: 30.0, zOffset: -10.0, ballValveOn: true },
8
14
  { speed: 100, squeegeeDiameter: 30.0, zOffset: 100.0, ballValveOn: true },
@@ -123,9 +129,10 @@ exports.weighingFingerIdToStringMap = new Map([
123
129
  ]);
124
130
  exports.weighingFingerStringToIdMap = new Map(Array.from(exports.weighingFingerIdToStringMap.entries()).map(([id, str]) => [str, id]));
125
131
  exports.exampleRecipe = {
126
- linerType: "CKU",
127
- linerPotPressure: 50,
128
132
  index: 1,
133
+ nickname: "Example Recipe",
134
+ linerTypeString: "CKU",
135
+ linerPotPressure: 50,
129
136
  tubeTypeId: TubeTypes.TYPE_1340_38,
130
137
  tubeTypeString: "1340-38",
131
138
  tubeOuterDiameterMax: 38.1,
@@ -143,7 +150,8 @@ exports.exampleRecipe = {
143
150
  };
144
151
  exports.initialRecipe = {
145
152
  index: 0,
146
- linerType: "",
153
+ nickname: "",
154
+ linerTypeString: "",
147
155
  tubeOuterDiameterMax: 0.0,
148
156
  tubeTypeId: TubeTypes.NONE,
149
157
  tubeTypeString: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuriousdesign/machine-sdk",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "Shared data types and helpers for machine-related repositories",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,6 +21,13 @@ export interface ApplicatorSetpoint {
21
21
  ballValveOn: boolean; // whether ball valve is on or off at this setpoint
22
22
  }
23
23
 
24
+ export const initialApplicatorSetpoint: ApplicatorSetpoint = {
25
+ speed: 0,
26
+ squeegeeDiameter: 0.0,
27
+ zOffset: 0.0,
28
+ ballValveOn: false,
29
+ };
30
+
24
31
  export const exampleApplicatorSetpoints: ApplicatorSetpoint[] = [
25
32
  { speed: 100, squeegeeDiameter: 30.0, zOffset: -10.0, ballValveOn: true },
26
33
  { speed: 100, squeegeeDiameter: 30.0, zOffset: 100.0, ballValveOn: true },
@@ -37,6 +44,7 @@ export const initialApplicatorSetpoints: ApplicatorSetpoint[] = Array(GCs.MAX_AP
37
44
 
38
45
  export interface RecipeData {
39
46
  index: number; // index in RecipeStore.Recipes array
47
+ nickname: string; // user defined nickname for recipe
40
48
 
41
49
  tubeTypeId: number;
42
50
  tubeTypeString: string; // display purposes only
@@ -44,7 +52,7 @@ export interface RecipeData {
44
52
  falseBottomStaysOpen: boolean; // this also determines if only the tall fixture is used or not
45
53
 
46
54
  linerPotPressure: number; // PSI
47
- linerType: string; // display purposes only
55
+ linerTypeString: string; // display purposes only
48
56
 
49
57
  applicatorSetpoints: ApplicatorSetpoint[]; // speed robot uses while applying liner
50
58
  applicatorToolId: ApplicatorTools;
@@ -185,9 +193,11 @@ export const weighingFingerStringToIdMap = new Map(
185
193
 
186
194
 
187
195
  export const exampleRecipe: RecipeData = {
188
- linerType: "CKU",
189
- linerPotPressure: 50,
190
196
  index: 1,
197
+ nickname: "Example Recipe",
198
+ linerTypeString: "CKU",
199
+ linerPotPressure: 50,
200
+
191
201
  tubeTypeId: TubeTypes.TYPE_1340_38,
192
202
  tubeTypeString: "1340-38",
193
203
  tubeOuterDiameterMax: 38.1,
@@ -208,7 +218,8 @@ export const exampleRecipe: RecipeData = {
208
218
 
209
219
  export const initialRecipe: RecipeData = {
210
220
  index: 0,
211
- linerType: "",
221
+ nickname: "",
222
+ linerTypeString: "",
212
223
  tubeOuterDiameterMax: 0.0,
213
224
  tubeTypeId: TubeTypes.NONE,
214
225
  tubeTypeString: "",