@zaber/motion 4.0.0 → 4.2.1
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/binding/wasm/zaber-motion-lib.wasm +0 -0
- package/dist/lib/ascii/axis.d.ts +1 -1
- package/dist/lib/ascii/axis.js +1 -1
- package/dist/lib/ascii/axis.js.map +1 -1
- package/dist/lib/ascii/device.d.ts +3 -3
- package/dist/lib/ascii/device.js +3 -3
- package/dist/lib/ascii/device.js.map +1 -1
- package/dist/lib/ascii/device_settings.d.ts +7 -0
- package/dist/lib/ascii/device_settings.js +14 -0
- package/dist/lib/ascii/device_settings.js.map +1 -1
- package/dist/lib/ascii/index.d.ts +5 -0
- package/dist/lib/ascii/index.js +12 -1
- package/dist/lib/ascii/index.js.map +1 -1
- package/dist/lib/ascii/oscilloscope.d.ts +1 -0
- package/dist/lib/ascii/oscilloscope.js +1 -0
- package/dist/lib/ascii/oscilloscope.js.map +1 -1
- package/dist/lib/ascii/process.d.ts +138 -0
- package/dist/lib/ascii/process.js +278 -0
- package/dist/lib/ascii/process.js.map +1 -0
- package/dist/lib/ascii/process_controller.d.ts +39 -0
- package/dist/lib/ascii/process_controller.js +89 -0
- package/dist/lib/ascii/process_controller.js.map +1 -0
- package/dist/lib/ascii/process_controller_mode.d.ts +9 -0
- package/dist/lib/ascii/process_controller_mode.js +16 -0
- package/dist/lib/ascii/process_controller_mode.js.map +1 -0
- package/dist/lib/ascii/process_controller_source.d.ts +17 -0
- package/dist/lib/ascii/process_controller_source.js +53 -0
- package/dist/lib/ascii/process_controller_source.js.map +1 -0
- package/dist/lib/ascii/process_controller_source_sensor.d.ts +7 -0
- package/dist/lib/ascii/process_controller_source_sensor.js +14 -0
- package/dist/lib/ascii/process_controller_source_sensor.js.map +1 -0
- package/dist/lib/ascii/stream.d.ts +48 -16
- package/dist/lib/ascii/stream.js +76 -16
- package/dist/lib/ascii/stream.js.map +1 -1
- package/dist/lib/ascii_ns.d.ts +5 -0
- package/dist/lib/ascii_ns.js +5 -0
- package/dist/lib/ascii_ns.js.map +1 -1
- package/dist/lib/measurement.js +8 -0
- package/dist/lib/measurement.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +109 -0
- package/dist/lib/protobufs/main_pb.js +812 -3
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
+
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.ProcessController = void 0;
|
|
29
|
+
const gateway = __importStar(require("../gateway"));
|
|
30
|
+
const process_1 = require("./process");
|
|
31
|
+
/**
|
|
32
|
+
* Use to manage a process controller.
|
|
33
|
+
* WARNING: DO NOT USE. This API is for an as-yet unreleased product and firmware version.
|
|
34
|
+
* It is subject to breaking changes without warning until further notice.
|
|
35
|
+
* Requires at least Firmware 7.34.
|
|
36
|
+
*/
|
|
37
|
+
class ProcessController {
|
|
38
|
+
/**
|
|
39
|
+
* The base device of this process controller.
|
|
40
|
+
*/
|
|
41
|
+
get device() {
|
|
42
|
+
return this._device;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Creates instance of `ProcessController` of the given device.
|
|
46
|
+
* If the device is identified, this constructor will ensure it is a process controller.
|
|
47
|
+
*/
|
|
48
|
+
constructor(device) {
|
|
49
|
+
this._device = device;
|
|
50
|
+
this._verifyIsProcessController();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Detects the process controllers on the connection.
|
|
54
|
+
* @param connection The connection to detect process controllers on.
|
|
55
|
+
* @param [identify=true] If the Process Controllers should be identified upon detection.
|
|
56
|
+
* @returns A list of all `ProcessController`s on the connection.
|
|
57
|
+
*/
|
|
58
|
+
static async detect(connection, identify = true) {
|
|
59
|
+
const request = new gateway.DeviceDetectRequest();
|
|
60
|
+
request.setType(gateway.DeviceDetectRequest.DeviceType.PROCESS_CONTROLLER);
|
|
61
|
+
request.setInterfaceId(connection.interfaceId);
|
|
62
|
+
request.setIdentifyDevices(identify);
|
|
63
|
+
const response = await gateway.callAsync('device/detect', request, gateway.DeviceDetectResponse);
|
|
64
|
+
return response.getDevicesList().map(deviceAddress => new ProcessController(connection.getDevice(deviceAddress)));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Gets an Process class instance which allows you to control a particular voltage source.
|
|
68
|
+
* Axes are numbered from 1.
|
|
69
|
+
* @param processNumber Number of process to control.
|
|
70
|
+
* @returns Process instance.
|
|
71
|
+
*/
|
|
72
|
+
getProcess(processNumber) {
|
|
73
|
+
if (processNumber <= 0) {
|
|
74
|
+
throw new TypeError('Invalid value; processes are numbered from 1.');
|
|
75
|
+
}
|
|
76
|
+
return new process_1.Process(this, processNumber);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Checks if this is a process controller or some other type of device and throws a detect error if it is not.
|
|
80
|
+
*/
|
|
81
|
+
_verifyIsProcessController() {
|
|
82
|
+
const request = new gateway.DeviceEmptyRequest();
|
|
83
|
+
request.setInterfaceId(this.device.connection.interfaceId);
|
|
84
|
+
request.setDevice(this.device.deviceAddress);
|
|
85
|
+
gateway.callSync('process_controller/verify', request);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.ProcessController = ProcessController;
|
|
89
|
+
//# sourceMappingURL=process_controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process_controller.js","sourceRoot":"","sources":["../../../src/ascii/process_controller.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAItD,oDAAsC;AACtC,uCAAoC;AAEpC;;;;;GAKG;AACH,MAAa,iBAAiB;IAC5B;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,0BAA0B,EAAE,CAAC;IACpC,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,KAAK,CAAC,MAAM,CACxB,UAAsB,EACtB,WAAoB,IAAI;QAExB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;QAClD,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;QAC3E,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC/C,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QAErC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,eAAe,EACf,OAAO,EACP,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAChC,OAAO,QAAQ,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC,IAAI,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IACpH,CAAC;IAED;;;;;OAKG;IACI,UAAU,CACf,aAAqB;QAErB,IAAI,aAAa,IAAI,CAAC,EAAE;YACtB,MAAM,IAAI,SAAS,CAAC,+CAA+C,CAAC,CAAC;SACtE;QACD,OAAO,IAAI,iBAAO,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAC1C,CAAC;IAED;;OAEG;IACK,0BAA0B;QAChC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;QACjD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAE7C,OAAO,CAAC,QAAQ,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;CACF;AAjED,8CAiEC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Connection } from './connection';\nimport { Device } from './device';\nimport * as gateway from '../gateway';\nimport { Process } from './process';\n\n/**\n * Use to manage a process controller.\n * WARNING: DO NOT USE. This API is for an as-yet unreleased product and firmware version.\n * It is subject to breaking changes without warning until further notice.\n * Requires at least Firmware 7.34.\n */\nexport class ProcessController {\n /**\n * The base device of this process controller.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * Creates instance of `ProcessController` of the given device.\n * If the device is identified, this constructor will ensure it is a process controller.\n */\n constructor(device: Device) {\n this._device = device;\n this._verifyIsProcessController();\n }\n\n /**\n * Detects the process controllers on the connection.\n * @param connection The connection to detect process controllers on.\n * @param [identify=true] If the Process Controllers should be identified upon detection.\n * @returns A list of all `ProcessController`s on the connection.\n */\n public static async detect(\n connection: Connection,\n identify: boolean = true\n ): Promise<ProcessController[]> {\n const request = new gateway.DeviceDetectRequest();\n request.setType(gateway.DeviceDetectRequest.DeviceType.PROCESS_CONTROLLER);\n request.setInterfaceId(connection.interfaceId);\n request.setIdentifyDevices(identify);\n\n const response = await gateway.callAsync<gateway.DeviceDetectResponse>(\n 'device/detect',\n request,\n gateway.DeviceDetectResponse);\n return response.getDevicesList().map(deviceAddress => new ProcessController(connection.getDevice(deviceAddress)));\n }\n\n /**\n * Gets an Process class instance which allows you to control a particular voltage source.\n * Axes are numbered from 1.\n * @param processNumber Number of process to control.\n * @returns Process instance.\n */\n public getProcess(\n processNumber: number\n ): Process {\n if (processNumber <= 0) {\n throw new TypeError('Invalid value; processes are numbered from 1.');\n }\n return new Process(this, processNumber);\n }\n\n /**\n * Checks if this is a process controller or some other type of device and throws a detect error if it is not.\n */\n private _verifyIsProcessController(): void {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n\n gateway.callSync('process_controller/verify', request);\n }\n}\n\nnamespace ProcessController {\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
+
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ProcessControllerMode = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* Servo Tuning Parameter Set to target.
|
|
8
|
+
*/
|
|
9
|
+
var ProcessControllerMode;
|
|
10
|
+
(function (ProcessControllerMode) {
|
|
11
|
+
ProcessControllerMode[ProcessControllerMode["MANUAL"] = 0] = "MANUAL";
|
|
12
|
+
ProcessControllerMode[ProcessControllerMode["PID"] = 1] = "PID";
|
|
13
|
+
ProcessControllerMode[ProcessControllerMode["PID_HEATER"] = 2] = "PID_HEATER";
|
|
14
|
+
ProcessControllerMode[ProcessControllerMode["ON_OFF"] = 3] = "ON_OFF";
|
|
15
|
+
})(ProcessControllerMode = exports.ProcessControllerMode || (exports.ProcessControllerMode = {}));
|
|
16
|
+
//# sourceMappingURL=process_controller_mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process_controller_mode.js","sourceRoot":"","sources":["../../../src/ascii/process_controller_mode.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD;;GAEG;AACH,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,qEAAU,CAAA;IACV,+DAAO,CAAA;IACP,6EAAc,CAAA;IACd,qEAAU,CAAA;AACZ,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\n/**\n * Servo Tuning Parameter Set to target.\n */\nexport enum ProcessControllerMode {\n MANUAL = 0,\n PID = 1,\n PID_HEATER = 2,\n ON_OFF = 3,\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ProcessControllerSourceSensor } from './process_controller_source_sensor';
|
|
2
|
+
/**
|
|
3
|
+
* The source used by a process in a closed-loop mode.
|
|
4
|
+
*/
|
|
5
|
+
export interface ProcessControllerSource {
|
|
6
|
+
/**
|
|
7
|
+
* The type of input sensor.
|
|
8
|
+
*/
|
|
9
|
+
sensor: ProcessControllerSourceSensor;
|
|
10
|
+
/**
|
|
11
|
+
* The specific input to use.
|
|
12
|
+
*/
|
|
13
|
+
port: number;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace ProcessControllerSource {
|
|
16
|
+
const __type = "ProcessControllerSource";
|
|
17
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
+
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.ProcessControllerSource = void 0;
|
|
29
|
+
const gateway = __importStar(require("../gateway"));
|
|
30
|
+
var ProcessControllerSource;
|
|
31
|
+
(function (ProcessControllerSource) {
|
|
32
|
+
ProcessControllerSource.__type = 'ProcessControllerSource';
|
|
33
|
+
/** @internal */
|
|
34
|
+
function fromProtobuf(pbData) {
|
|
35
|
+
return {
|
|
36
|
+
sensor: pbData.sensor,
|
|
37
|
+
port: pbData.port,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
ProcessControllerSource.fromProtobuf = fromProtobuf;
|
|
41
|
+
/** @internal */
|
|
42
|
+
function toProtobuf(source) {
|
|
43
|
+
const pbData = new gateway.ProcessControllerSource();
|
|
44
|
+
if (source == null) {
|
|
45
|
+
return pbData;
|
|
46
|
+
}
|
|
47
|
+
pbData.setSensor(source.sensor);
|
|
48
|
+
pbData.setPort(source.port);
|
|
49
|
+
return pbData;
|
|
50
|
+
}
|
|
51
|
+
ProcessControllerSource.toProtobuf = toProtobuf;
|
|
52
|
+
})(ProcessControllerSource = exports.ProcessControllerSource || (exports.ProcessControllerSource = {}));
|
|
53
|
+
//# sourceMappingURL=process_controller_source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process_controller_source.js","sourceRoot":"","sources":["../../../src/ascii/process_controller_source.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAmBtC,IAAiB,uBAAuB,CAqBvC;AArBD,WAAiB,uBAAuB;IACzB,8BAAM,GAAG,yBAAyB,CAAC;IAEhD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAgD;QAC3E,OAAO;YACL,MAAM,EAAE,MAAM,CAAC,MAAa;YAC5B,IAAI,EAAE,MAAM,CAAC,IAAI;SAClB,CAAC;IACJ,CAAC;IALe,oCAAY,eAK3B,CAAA;IACD,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAAkD;QAC3E,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC;QACrD,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,OAAO,MAAM,CAAC;SACf;QAED,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAChC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5B,OAAO,MAAM,CAAC;IAChB,CAAC;IATe,kCAAU,aASzB,CAAA;AACH,CAAC,EArBgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAqBvC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { ProcessControllerSourceSensor } from './process_controller_source_sensor';\n\n/**\n * The source used by a process in a closed-loop mode.\n */\nexport interface ProcessControllerSource {\n /**\n * The type of input sensor.\n */\n sensor: ProcessControllerSourceSensor;\n\n /**\n * The specific input to use.\n */\n port: number;\n\n}\n\nexport namespace ProcessControllerSource {\n export const __type = 'ProcessControllerSource';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.ProcessControllerSource.AsObject): ProcessControllerSource {\n return {\n sensor: pbData.sensor as any,\n port: pbData.port,\n };\n }\n /** @internal */\n export function toProtobuf(source: ProcessControllerSource | null | undefined): gateway.ProcessControllerSource {\n const pbData = new gateway.ProcessControllerSource();\n if (source == null) {\n return pbData;\n }\n\n pbData.setSensor(source.sensor);\n pbData.setPort(source.port);\n return pbData;\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
|
|
3
|
+
// ============= DO NOT EDIT DIRECTLY ============= //
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ProcessControllerSourceSensor = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* Servo Tuning Parameter Set to target.
|
|
8
|
+
*/
|
|
9
|
+
var ProcessControllerSourceSensor;
|
|
10
|
+
(function (ProcessControllerSourceSensor) {
|
|
11
|
+
ProcessControllerSourceSensor[ProcessControllerSourceSensor["THERMISTOR"] = 10] = "THERMISTOR";
|
|
12
|
+
ProcessControllerSourceSensor[ProcessControllerSourceSensor["ANALOG_INPUT"] = 20] = "ANALOG_INPUT";
|
|
13
|
+
})(ProcessControllerSourceSensor = exports.ProcessControllerSourceSensor || (exports.ProcessControllerSourceSensor = {}));
|
|
14
|
+
//# sourceMappingURL=process_controller_source_sensor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process_controller_source_sensor.js","sourceRoot":"","sources":["../../../src/ascii/process_controller_source_sensor.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD;;GAEG;AACH,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACvC,8FAAe,CAAA;IACf,kGAAiB,CAAA;AACnB,CAAC,EAHW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAGxC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\n/**\n * Servo Tuning Parameter Set to target.\n */\nexport enum ProcessControllerSourceSensor {\n THERMISTOR = 10,\n ANALOG_INPUT = 20,\n}\n"]}
|
|
@@ -99,20 +99,20 @@ export declare class Stream {
|
|
|
99
99
|
* Queue an absolute arc movement on the first two axes of the stream.
|
|
100
100
|
* Absolute meaning that the home positions of the axes is treated as the origin.
|
|
101
101
|
* @param rotationDirection The direction of the rotation.
|
|
102
|
-
* @param centerX The first
|
|
103
|
-
* @param centerY The second
|
|
104
|
-
* @param endX The first
|
|
105
|
-
* @param endY The second
|
|
102
|
+
* @param centerX The first dimension of the position of the center of the circle on which the arc exists.
|
|
103
|
+
* @param centerY The second dimension of the position of the center of the circle on which the arc exists.
|
|
104
|
+
* @param endX The first dimension of the end position of the arc.
|
|
105
|
+
* @param endY The second dimension of the end position of the arc.
|
|
106
106
|
*/
|
|
107
107
|
arcAbsolute(rotationDirection: RotationDirection, centerX: Measurement, centerY: Measurement, endX: Measurement, endY: Measurement): Promise<void>;
|
|
108
108
|
/**
|
|
109
109
|
* Queue a relative arc movement on the first two axes of the stream.
|
|
110
110
|
* Relative meaning that the current position of the axes is treated as the origin.
|
|
111
111
|
* @param rotationDirection The direction of the rotation.
|
|
112
|
-
* @param centerX The first
|
|
113
|
-
* @param centerY The second
|
|
114
|
-
* @param endX The first
|
|
115
|
-
* @param endY The second
|
|
112
|
+
* @param centerX The first dimension of the position of the center of the circle on which the arc exists.
|
|
113
|
+
* @param centerY The second dimension of the position of the center of the circle on which the arc exists.
|
|
114
|
+
* @param endX The first dimension of the end position of the arc.
|
|
115
|
+
* @param endY The second dimension of the end position of the arc.
|
|
116
116
|
*/
|
|
117
117
|
arcRelative(rotationDirection: RotationDirection, centerX: Measurement, centerY: Measurement, endX: Measurement, endY: Measurement): Promise<void>;
|
|
118
118
|
/**
|
|
@@ -123,10 +123,10 @@ export declare class Stream {
|
|
|
123
123
|
* Refers to the axes provided during the stream setup or further execution.
|
|
124
124
|
* Indices are zero-based.
|
|
125
125
|
* @param rotationDirection The direction of the rotation.
|
|
126
|
-
* @param centerX The first
|
|
127
|
-
* @param centerY The second
|
|
128
|
-
* @param endX The first
|
|
129
|
-
* @param endY The second
|
|
126
|
+
* @param centerX The first dimension of the position of the center of the circle on which the arc exists.
|
|
127
|
+
* @param centerY The second dimension of the position of the center of the circle on which the arc exists.
|
|
128
|
+
* @param endX The first dimension of the end position of the arc.
|
|
129
|
+
* @param endY The second dimension of the end position of the arc.
|
|
130
130
|
*/
|
|
131
131
|
arcAbsoluteOn(targetAxesIndices: number[], rotationDirection: RotationDirection, centerX: Measurement, centerY: Measurement, endX: Measurement, endY: Measurement): Promise<void>;
|
|
132
132
|
/**
|
|
@@ -137,12 +137,44 @@ export declare class Stream {
|
|
|
137
137
|
* Refers to the axes provided during the stream setup or further execution.
|
|
138
138
|
* Indices are zero-based.
|
|
139
139
|
* @param rotationDirection The direction of the rotation.
|
|
140
|
-
* @param centerX The first
|
|
141
|
-
* @param centerY The second
|
|
142
|
-
* @param endX The first
|
|
143
|
-
* @param endY The second
|
|
140
|
+
* @param centerX The first dimension of the position of the center of the circle on which the arc exists.
|
|
141
|
+
* @param centerY The second dimension of the position of the center of the circle on which the arc exists.
|
|
142
|
+
* @param endX The first dimension of the end position of the arc.
|
|
143
|
+
* @param endY The second dimension of the end position of the arc.
|
|
144
144
|
*/
|
|
145
145
|
arcRelativeOn(targetAxesIndices: number[], rotationDirection: RotationDirection, centerX: Measurement, centerY: Measurement, endX: Measurement, endY: Measurement): Promise<void>;
|
|
146
|
+
/**
|
|
147
|
+
* Queue an absolute helix movement in the stream.
|
|
148
|
+
* Requires at least Firmware 7.28.
|
|
149
|
+
* @param targetAxesIndices Indices of the axes in the stream the movement targets.
|
|
150
|
+
* Refers to the axes provided during the stream setup or further execution.
|
|
151
|
+
* Indices are zero-based.
|
|
152
|
+
* The first two axes refer to the helix's arc component,
|
|
153
|
+
* while the rest refers to the helix's line component.
|
|
154
|
+
* @param rotationDirection The direction of the rotation.
|
|
155
|
+
* @param centerX The first dimension of the position of the center of the circle on which the helix projects.
|
|
156
|
+
* @param centerY The second dimension of the position of the center of the circle on which the helix projects.
|
|
157
|
+
* @param endX The first dimension of the end position of the helix's arc component.
|
|
158
|
+
* @param endY The second dimension of the end position of the helix's arc component.
|
|
159
|
+
* @param endpoint Positions for the helix's line component axes, relative to their home positions.
|
|
160
|
+
*/
|
|
161
|
+
helixAbsoluteOn(targetAxesIndices: number[], rotationDirection: RotationDirection, centerX: Measurement, centerY: Measurement, endX: Measurement, endY: Measurement, ...endpoint: Measurement[]): Promise<void>;
|
|
162
|
+
/**
|
|
163
|
+
* Queue a relative helix movement in the stream.
|
|
164
|
+
* Requires at least Firmware 7.28.
|
|
165
|
+
* @param targetAxesIndices Indices of the axes in the stream the movement targets.
|
|
166
|
+
* Refers to the axes provided during the stream setup or further execution.
|
|
167
|
+
* Indices are zero-based.
|
|
168
|
+
* The first two axes refer to the helix's arc component,
|
|
169
|
+
* while the rest refers to the helix's line component.
|
|
170
|
+
* @param rotationDirection The direction of the rotation.
|
|
171
|
+
* @param centerX The first dimension of the position of the center of the circle on which the helix projects.
|
|
172
|
+
* @param centerY The second dimension of the position of the center of the circle on which the helix projects.
|
|
173
|
+
* @param endX The first dimension of the end position of the helix's arc component.
|
|
174
|
+
* @param endY The second dimension of the end position of the helix's arc component.
|
|
175
|
+
* @param endpoint Positions for the helix's line component axes, relative to their positions before movement.
|
|
176
|
+
*/
|
|
177
|
+
helixRelativeOn(targetAxesIndices: number[], rotationDirection: RotationDirection, centerX: Measurement, centerY: Measurement, endX: Measurement, endY: Measurement, ...endpoint: Measurement[]): Promise<void>;
|
|
146
178
|
/**
|
|
147
179
|
* Queue an absolute circle movement on the first two axes of the stream.
|
|
148
180
|
* Absolute meaning that the home positions of the axes are treated as the origin.
|
package/dist/lib/ascii/stream.js
CHANGED
|
@@ -212,10 +212,10 @@ class Stream {
|
|
|
212
212
|
* Queue an absolute arc movement on the first two axes of the stream.
|
|
213
213
|
* Absolute meaning that the home positions of the axes is treated as the origin.
|
|
214
214
|
* @param rotationDirection The direction of the rotation.
|
|
215
|
-
* @param centerX The first
|
|
216
|
-
* @param centerY The second
|
|
217
|
-
* @param endX The first
|
|
218
|
-
* @param endY The second
|
|
215
|
+
* @param centerX The first dimension of the position of the center of the circle on which the arc exists.
|
|
216
|
+
* @param centerY The second dimension of the position of the center of the circle on which the arc exists.
|
|
217
|
+
* @param endX The first dimension of the end position of the arc.
|
|
218
|
+
* @param endY The second dimension of the end position of the arc.
|
|
219
219
|
*/
|
|
220
220
|
async arcAbsolute(rotationDirection, centerX, centerY, endX, endY) {
|
|
221
221
|
const request = new gateway.StreamArcRequest();
|
|
@@ -234,10 +234,10 @@ class Stream {
|
|
|
234
234
|
* Queue a relative arc movement on the first two axes of the stream.
|
|
235
235
|
* Relative meaning that the current position of the axes is treated as the origin.
|
|
236
236
|
* @param rotationDirection The direction of the rotation.
|
|
237
|
-
* @param centerX The first
|
|
238
|
-
* @param centerY The second
|
|
239
|
-
* @param endX The first
|
|
240
|
-
* @param endY The second
|
|
237
|
+
* @param centerX The first dimension of the position of the center of the circle on which the arc exists.
|
|
238
|
+
* @param centerY The second dimension of the position of the center of the circle on which the arc exists.
|
|
239
|
+
* @param endX The first dimension of the end position of the arc.
|
|
240
|
+
* @param endY The second dimension of the end position of the arc.
|
|
241
241
|
*/
|
|
242
242
|
async arcRelative(rotationDirection, centerX, centerY, endX, endY) {
|
|
243
243
|
const request = new gateway.StreamArcRequest();
|
|
@@ -260,10 +260,10 @@ class Stream {
|
|
|
260
260
|
* Refers to the axes provided during the stream setup or further execution.
|
|
261
261
|
* Indices are zero-based.
|
|
262
262
|
* @param rotationDirection The direction of the rotation.
|
|
263
|
-
* @param centerX The first
|
|
264
|
-
* @param centerY The second
|
|
265
|
-
* @param endX The first
|
|
266
|
-
* @param endY The second
|
|
263
|
+
* @param centerX The first dimension of the position of the center of the circle on which the arc exists.
|
|
264
|
+
* @param centerY The second dimension of the position of the center of the circle on which the arc exists.
|
|
265
|
+
* @param endX The first dimension of the end position of the arc.
|
|
266
|
+
* @param endY The second dimension of the end position of the arc.
|
|
267
267
|
*/
|
|
268
268
|
async arcAbsoluteOn(targetAxesIndices, rotationDirection, centerX, centerY, endX, endY) {
|
|
269
269
|
const request = new gateway.StreamArcRequest();
|
|
@@ -287,10 +287,10 @@ class Stream {
|
|
|
287
287
|
* Refers to the axes provided during the stream setup or further execution.
|
|
288
288
|
* Indices are zero-based.
|
|
289
289
|
* @param rotationDirection The direction of the rotation.
|
|
290
|
-
* @param centerX The first
|
|
291
|
-
* @param centerY The second
|
|
292
|
-
* @param endX The first
|
|
293
|
-
* @param endY The second
|
|
290
|
+
* @param centerX The first dimension of the position of the center of the circle on which the arc exists.
|
|
291
|
+
* @param centerY The second dimension of the position of the center of the circle on which the arc exists.
|
|
292
|
+
* @param endX The first dimension of the end position of the arc.
|
|
293
|
+
* @param endY The second dimension of the end position of the arc.
|
|
294
294
|
*/
|
|
295
295
|
async arcRelativeOn(targetAxesIndices, rotationDirection, centerX, centerY, endX, endY) {
|
|
296
296
|
const request = new gateway.StreamArcRequest();
|
|
@@ -306,6 +306,66 @@ class Stream {
|
|
|
306
306
|
request.setEndY(measurement_1.Measurement.toProtobuf(endY));
|
|
307
307
|
await gateway.callAsync('device/stream_arc', request);
|
|
308
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* Queue an absolute helix movement in the stream.
|
|
311
|
+
* Requires at least Firmware 7.28.
|
|
312
|
+
* @param targetAxesIndices Indices of the axes in the stream the movement targets.
|
|
313
|
+
* Refers to the axes provided during the stream setup or further execution.
|
|
314
|
+
* Indices are zero-based.
|
|
315
|
+
* The first two axes refer to the helix's arc component,
|
|
316
|
+
* while the rest refers to the helix's line component.
|
|
317
|
+
* @param rotationDirection The direction of the rotation.
|
|
318
|
+
* @param centerX The first dimension of the position of the center of the circle on which the helix projects.
|
|
319
|
+
* @param centerY The second dimension of the position of the center of the circle on which the helix projects.
|
|
320
|
+
* @param endX The first dimension of the end position of the helix's arc component.
|
|
321
|
+
* @param endY The second dimension of the end position of the helix's arc component.
|
|
322
|
+
* @param endpoint Positions for the helix's line component axes, relative to their home positions.
|
|
323
|
+
*/
|
|
324
|
+
async helixAbsoluteOn(targetAxesIndices, rotationDirection, centerX, centerY, endX, endY, ...endpoint) {
|
|
325
|
+
const request = new gateway.StreamArcRequest();
|
|
326
|
+
request.setInterfaceId(this.device.connection.interfaceId);
|
|
327
|
+
request.setDevice(this.device.deviceAddress);
|
|
328
|
+
request.setStreamId(this.streamId);
|
|
329
|
+
request.setType(gateway.StreamArcRequest.Type.ABS);
|
|
330
|
+
request.setTargetAxesIndicesList(targetAxesIndices);
|
|
331
|
+
request.setRotationDirection(rotationDirection);
|
|
332
|
+
request.setCenterX(measurement_1.Measurement.toProtobuf(centerX));
|
|
333
|
+
request.setCenterY(measurement_1.Measurement.toProtobuf(centerY));
|
|
334
|
+
request.setEndX(measurement_1.Measurement.toProtobuf(endX));
|
|
335
|
+
request.setEndY(measurement_1.Measurement.toProtobuf(endY));
|
|
336
|
+
request.setEndpointList(endpoint.map(measurement_1.Measurement.toProtobuf));
|
|
337
|
+
await gateway.callAsync('device/stream_helix', request);
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Queue a relative helix movement in the stream.
|
|
341
|
+
* Requires at least Firmware 7.28.
|
|
342
|
+
* @param targetAxesIndices Indices of the axes in the stream the movement targets.
|
|
343
|
+
* Refers to the axes provided during the stream setup or further execution.
|
|
344
|
+
* Indices are zero-based.
|
|
345
|
+
* The first two axes refer to the helix's arc component,
|
|
346
|
+
* while the rest refers to the helix's line component.
|
|
347
|
+
* @param rotationDirection The direction of the rotation.
|
|
348
|
+
* @param centerX The first dimension of the position of the center of the circle on which the helix projects.
|
|
349
|
+
* @param centerY The second dimension of the position of the center of the circle on which the helix projects.
|
|
350
|
+
* @param endX The first dimension of the end position of the helix's arc component.
|
|
351
|
+
* @param endY The second dimension of the end position of the helix's arc component.
|
|
352
|
+
* @param endpoint Positions for the helix's line component axes, relative to their positions before movement.
|
|
353
|
+
*/
|
|
354
|
+
async helixRelativeOn(targetAxesIndices, rotationDirection, centerX, centerY, endX, endY, ...endpoint) {
|
|
355
|
+
const request = new gateway.StreamArcRequest();
|
|
356
|
+
request.setInterfaceId(this.device.connection.interfaceId);
|
|
357
|
+
request.setDevice(this.device.deviceAddress);
|
|
358
|
+
request.setStreamId(this.streamId);
|
|
359
|
+
request.setType(gateway.StreamArcRequest.Type.REL);
|
|
360
|
+
request.setTargetAxesIndicesList(targetAxesIndices);
|
|
361
|
+
request.setRotationDirection(rotationDirection);
|
|
362
|
+
request.setCenterX(measurement_1.Measurement.toProtobuf(centerX));
|
|
363
|
+
request.setCenterY(measurement_1.Measurement.toProtobuf(centerY));
|
|
364
|
+
request.setEndX(measurement_1.Measurement.toProtobuf(endX));
|
|
365
|
+
request.setEndY(measurement_1.Measurement.toProtobuf(endY));
|
|
366
|
+
request.setEndpointList(endpoint.map(measurement_1.Measurement.toProtobuf));
|
|
367
|
+
await gateway.callAsync('device/stream_helix', request);
|
|
368
|
+
}
|
|
309
369
|
/**
|
|
310
370
|
* Queue an absolute circle movement on the first two axes of the stream.
|
|
311
371
|
* Absolute meaning that the home positions of the axes are treated as the origin.
|