@kuriousdesign/machine-sdk 1.0.49 → 1.0.50
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.
- package/dist/custom-types/TaskQueue.d.ts +4 -3
- package/dist/custom-types/TaskQueue.js +23 -7
- package/dist/enums/DeviceId.d.ts +1 -0
- package/dist/enums/DeviceId.js +1 -0
- package/package.json +1 -1
- package/src/custom-types/Part.ts +0 -1
- package/src/custom-types/TaskQueue.ts +24 -7
- package/src/enums/DeviceId.ts +1 -0
|
@@ -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
|
-
|
|
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
|
-
|
|
10
|
-
|
|
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["
|
|
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["
|
|
16
|
-
Priorities[Priorities["
|
|
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.
|
|
25
|
-
return "Start
|
|
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,8 @@ function priorityToString(priority) {
|
|
|
31
47
|
return "Photograph Tubes";
|
|
32
48
|
case Priorities.POST_WEIGH_TUBES:
|
|
33
49
|
return "Post Weigh Tubes";
|
|
34
|
-
case Priorities.
|
|
35
|
-
return "
|
|
50
|
+
case Priorities.START_POT_DEPRESSURIZATION:
|
|
51
|
+
return "Start Pot Depressurization";
|
|
36
52
|
case Priorities.UNLOAD_PARTS:
|
|
37
53
|
return "Unload Parts";
|
|
38
54
|
default:
|
package/dist/enums/DeviceId.d.ts
CHANGED
package/dist/enums/DeviceId.js
CHANGED
|
@@ -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
package/src/custom-types/Part.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
12
|
-
|
|
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.
|
|
22
|
-
return "Start
|
|
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,8 @@ 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.
|
|
32
|
-
return "
|
|
48
|
+
case Priorities.START_POT_DEPRESSURIZATION:
|
|
49
|
+
return "Start Pot Depressurization";
|
|
33
50
|
case Priorities.UNLOAD_PARTS:
|
|
34
51
|
return "Unload Parts";
|
|
35
52
|
default:
|