@kuriousdesign/machine-sdk 1.0.7 → 1.0.9
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/package.json
CHANGED
|
@@ -7,4 +7,27 @@ export enum DeviceTypes {
|
|
|
7
7
|
Bridge = 5, //used for communication
|
|
8
8
|
Machine = 6,
|
|
9
9
|
Robot = 7,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function deviceTypeToString(deviceType: DeviceTypes): string {
|
|
13
|
+
switch (deviceType) {
|
|
14
|
+
case DeviceTypes.Base:
|
|
15
|
+
return 'Base';
|
|
16
|
+
case DeviceTypes.Axis:
|
|
17
|
+
return 'Axis';
|
|
18
|
+
case DeviceTypes.BoschAxis:
|
|
19
|
+
return 'Bosch Axis';
|
|
20
|
+
case DeviceTypes.DualAxis:
|
|
21
|
+
return 'Dual Axis';
|
|
22
|
+
case DeviceTypes.Gantry:
|
|
23
|
+
return 'Gantry';
|
|
24
|
+
case DeviceTypes.Bridge:
|
|
25
|
+
return 'Bridge';
|
|
26
|
+
case DeviceTypes.Machine:
|
|
27
|
+
return 'Machine';
|
|
28
|
+
case DeviceTypes.Robot:
|
|
29
|
+
return 'Robot';
|
|
30
|
+
default:
|
|
31
|
+
return 'Unknown';
|
|
32
|
+
}
|
|
10
33
|
}
|