@kuriousdesign/machine-sdk 1.0.49 → 1.0.51

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,13 +1,14 @@
1
1
  export declare enum Priorities {
2
2
  NONE = 0,// do not remove or change this
3
3
  LOAD_PARTS = 2,
4
- START_UTILITIES = 10,
4
+ START_POT_PRESSURIZATION = 10,
5
5
  PRE_WEIGH_TUBES = 20,
6
6
  APPLY_LINER = 30,
7
7
  PHOTOGRAPH_TUBES = 40,
8
8
  POST_WEIGH_TUBES = 50,
9
- STOP_UTILITIES = 60,
10
- UNLOAD_PARTS = 70
9
+ START_POT_DEPRESSURIZATION = 60,
10
+ WAIT_IMAGE_INSPECTION = 70,
11
+ UNLOAD_PARTS = 80
11
12
  }
12
13
  export declare function priorityToString(priority: Priorities): string;
13
14
  export interface TaskData {
@@ -3,17 +3,33 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.initialTaskQueue = exports.initialTaskData = exports.Priorities = void 0;
4
4
  exports.priorityToString = priorityToString;
5
5
  const BaseDevice_1 = require("./BaseDevice");
6
+ // TYPE Priorities :
7
+ // (
8
+ // NONE := 0, //do not remove or change this
9
+ // RECOVER_ROBOT :=1,
10
+ // LOAD_PARTS:=2,
11
+ // START_POT_PRESSURIZATION:=10, //param0: explain what the parameters do here, param1: continue to explain each of them
12
+ // PRE_WEIGH_TUBES:=20, //no params:
13
+ // APPLY_LINER :=30,
14
+ // PHOTOGRAPH_TUBES :=40,
15
+ // POST_WEIGH_TUBES:=50,
16
+ // START_POT_DEPRESSURIZATION:=60,
17
+ // WAIT_IMAGE_INSPECTION:=70,
18
+ // UNLOAD_PARTS:=80
19
+ // );
20
+ // END_TYPE
6
21
  var Priorities;
7
22
  (function (Priorities) {
8
23
  Priorities[Priorities["NONE"] = 0] = "NONE";
9
24
  Priorities[Priorities["LOAD_PARTS"] = 2] = "LOAD_PARTS";
10
- Priorities[Priorities["START_UTILITIES"] = 10] = "START_UTILITIES";
25
+ Priorities[Priorities["START_POT_PRESSURIZATION"] = 10] = "START_POT_PRESSURIZATION";
11
26
  Priorities[Priorities["PRE_WEIGH_TUBES"] = 20] = "PRE_WEIGH_TUBES";
12
27
  Priorities[Priorities["APPLY_LINER"] = 30] = "APPLY_LINER";
13
28
  Priorities[Priorities["PHOTOGRAPH_TUBES"] = 40] = "PHOTOGRAPH_TUBES";
14
29
  Priorities[Priorities["POST_WEIGH_TUBES"] = 50] = "POST_WEIGH_TUBES";
15
- Priorities[Priorities["STOP_UTILITIES"] = 60] = "STOP_UTILITIES";
16
- Priorities[Priorities["UNLOAD_PARTS"] = 70] = "UNLOAD_PARTS";
30
+ Priorities[Priorities["START_POT_DEPRESSURIZATION"] = 60] = "START_POT_DEPRESSURIZATION";
31
+ Priorities[Priorities["WAIT_IMAGE_INSPECTION"] = 70] = "WAIT_IMAGE_INSPECTION";
32
+ Priorities[Priorities["UNLOAD_PARTS"] = 80] = "UNLOAD_PARTS";
17
33
  })(Priorities || (exports.Priorities = Priorities = {}));
18
34
  function priorityToString(priority) {
19
35
  switch (priority) {
@@ -21,8 +37,8 @@ function priorityToString(priority) {
21
37
  return "None";
22
38
  case Priorities.LOAD_PARTS:
23
39
  return "Load Parts";
24
- case Priorities.START_UTILITIES:
25
- return "Start Utilities";
40
+ case Priorities.START_POT_PRESSURIZATION:
41
+ return "Start Pot Pressurization";
26
42
  case Priorities.PRE_WEIGH_TUBES:
27
43
  return "Pre Weigh Tubes";
28
44
  case Priorities.APPLY_LINER:
@@ -31,8 +47,10 @@ function priorityToString(priority) {
31
47
  return "Photograph Tubes";
32
48
  case Priorities.POST_WEIGH_TUBES:
33
49
  return "Post Weigh Tubes";
34
- case Priorities.STOP_UTILITIES:
35
- return "Stop Utilities";
50
+ case Priorities.START_POT_DEPRESSURIZATION:
51
+ return "Start Pot Depressurization";
52
+ case Priorities.WAIT_IMAGE_INSPECTION:
53
+ return "Wait Image Inspection";
36
54
  case Priorities.UNLOAD_PARTS:
37
55
  return "Unload Parts";
38
56
  default:
@@ -16,6 +16,7 @@ export declare enum DeviceId {
16
16
  CLAMP_S = 17,
17
17
  FLSB_T = 18,
18
18
  FLSB_S = 19,
19
+ POT = 20,
19
20
  LNR = 21,
20
21
  GCNV1 = 22,
21
22
  GCNV2 = 23,
@@ -20,6 +20,7 @@ var DeviceId;
20
20
  DeviceId[DeviceId["CLAMP_S"] = 17] = "CLAMP_S";
21
21
  DeviceId[DeviceId["FLSB_T"] = 18] = "FLSB_T";
22
22
  DeviceId[DeviceId["FLSB_S"] = 19] = "FLSB_S";
23
+ DeviceId[DeviceId["POT"] = 20] = "POT";
23
24
  DeviceId[DeviceId["LNR"] = 21] = "LNR";
24
25
  DeviceId[DeviceId["GCNV1"] = 22] = "GCNV1";
25
26
  DeviceId[DeviceId["GCNV2"] = 23] = "GCNV2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuriousdesign/machine-sdk",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
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",
@@ -42,7 +42,6 @@ export function partLocationIdToString(locationId: PartLocationIds): string {
42
42
  return "Unknown";
43
43
  }
44
44
  }
45
-
46
45
  // TYPE PartStates :
47
46
  // (
48
47
  // Empty:=0,//no part present
@@ -1,15 +1,32 @@
1
1
  import { DeviceConstants } from "./BaseDevice";
2
2
 
3
+
4
+ // TYPE Priorities :
5
+ // (
6
+ // NONE := 0, //do not remove or change this
7
+ // RECOVER_ROBOT :=1,
8
+ // LOAD_PARTS:=2,
9
+ // START_POT_PRESSURIZATION:=10, //param0: explain what the parameters do here, param1: continue to explain each of them
10
+ // PRE_WEIGH_TUBES:=20, //no params:
11
+ // APPLY_LINER :=30,
12
+ // PHOTOGRAPH_TUBES :=40,
13
+ // POST_WEIGH_TUBES:=50,
14
+ // START_POT_DEPRESSURIZATION:=60,
15
+ // WAIT_IMAGE_INSPECTION:=70,
16
+ // UNLOAD_PARTS:=80
17
+ // );
18
+ // END_TYPE
3
19
  export enum Priorities {
4
20
  NONE = 0, // do not remove or change this
5
21
  LOAD_PARTS = 2,
6
- START_UTILITIES = 10,
22
+ START_POT_PRESSURIZATION = 10,
7
23
  PRE_WEIGH_TUBES = 20,
8
24
  APPLY_LINER = 30,
9
25
  PHOTOGRAPH_TUBES = 40,
10
26
  POST_WEIGH_TUBES = 50,
11
- STOP_UTILITIES = 60,
12
- UNLOAD_PARTS = 70
27
+ START_POT_DEPRESSURIZATION = 60,
28
+ WAIT_IMAGE_INSPECTION = 70,
29
+ UNLOAD_PARTS = 80
13
30
  }
14
31
 
15
32
  export function priorityToString(priority: Priorities): string {
@@ -18,8 +35,8 @@ export function priorityToString(priority: Priorities): string {
18
35
  return "None";
19
36
  case Priorities.LOAD_PARTS:
20
37
  return "Load Parts";
21
- case Priorities.START_UTILITIES:
22
- return "Start Utilities";
38
+ case Priorities.START_POT_PRESSURIZATION:
39
+ return "Start Pot Pressurization";
23
40
  case Priorities.PRE_WEIGH_TUBES:
24
41
  return "Pre Weigh Tubes";
25
42
  case Priorities.APPLY_LINER:
@@ -28,8 +45,10 @@ export function priorityToString(priority: Priorities): string {
28
45
  return "Photograph Tubes";
29
46
  case Priorities.POST_WEIGH_TUBES:
30
47
  return "Post Weigh Tubes";
31
- case Priorities.STOP_UTILITIES:
32
- return "Stop Utilities";
48
+ case Priorities.START_POT_DEPRESSURIZATION:
49
+ return "Start Pot Depressurization";
50
+ case Priorities.WAIT_IMAGE_INSPECTION:
51
+ return "Wait Image Inspection";
33
52
  case Priorities.UNLOAD_PARTS:
34
53
  return "Unload Parts";
35
54
  default:
@@ -17,6 +17,7 @@ export enum DeviceId {
17
17
  CLAMP_S = 17,
18
18
  FLSB_T = 18,
19
19
  FLSB_S = 19,
20
+ POT = 20,
20
21
 
21
22
  LNR = 21,
22
23
  GCNV1 = 22,