motion-master-client 0.0.77 → 0.0.86
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/README.md +227 -138
- package/package.json +1 -1
- package/src/cli.d.ts +1 -1
- package/src/cli.js +160 -160
- package/src/index.d.ts +30 -28
- package/src/index.js +33 -31
- package/src/index.js.map +1 -1
- package/src/lib/cia402.d.ts +184 -182
- package/src/lib/cia402.js +393 -391
- package/src/lib/cia402.js.map +1 -1
- package/src/lib/config-file.d.ts +13 -13
- package/src/lib/config-file.js +49 -49
- package/src/lib/data-monitoring.d.ts +12 -12
- package/src/lib/data-monitoring.js +33 -33
- package/src/lib/device-log-line.d.ts +5 -5
- package/src/lib/device-log-line.js +2 -2
- package/src/lib/device-parameter.d.ts +56 -56
- package/src/lib/device-parameter.js +38 -38
- package/src/lib/device.d.ts +46 -9
- package/src/lib/device.js +166 -2
- package/src/lib/device.js.map +1 -1
- package/src/lib/encoder-register.d.ts +16 -16
- package/src/lib/encoder-register.js +116 -116
- package/src/lib/hardware-description.d.ts +46 -46
- package/src/lib/hardware-description.js +109 -109
- package/src/lib/integro-encoder-calibration.d.ts +31 -0
- package/src/lib/integro-encoder-calibration.js +196 -0
- package/src/lib/integro-encoder-calibration.js.map +1 -0
- package/src/lib/logger.d.ts +1 -1
- package/src/lib/logger.js +7 -7
- package/src/lib/monitoring-config.d.ts +31 -31
- package/src/lib/monitoring-config.js +2 -2
- package/src/lib/monitoring-entry.d.ts +9 -9
- package/src/lib/monitoring-entry.js +2 -2
- package/src/lib/motion-master-client.d.ts +77 -77
- package/src/lib/motion-master-client.js +196 -196
- package/src/lib/motion-master-pub-sub-client.d.ts +17 -17
- package/src/lib/motion-master-pub-sub-client.js +72 -72
- package/src/lib/motion-master-pub-sub-client.js.map +1 -1
- package/src/lib/motion-master-pub-sub-socket.d.ts +42 -42
- package/src/lib/motion-master-pub-sub-socket.js +2 -2
- package/src/lib/motion-master-pub-sub-web-socket.d.ts +18 -18
- package/src/lib/motion-master-pub-sub-web-socket.js +65 -65
- package/src/lib/motion-master-pub-sub-worker-socket.d.ts +18 -18
- package/src/lib/motion-master-pub-sub-worker-socket.js +47 -47
- package/src/lib/motion-master-req-res-client.d.ts +1104 -1062
- package/src/lib/motion-master-req-res-client.js +2137 -1997
- package/src/lib/motion-master-req-res-client.js.map +1 -1
- package/src/lib/motion-master-req-res-socket.d.ts +60 -60
- package/src/lib/motion-master-req-res-socket.js +2 -2
- package/src/lib/motion-master-req-res-web-socket.d.ts +28 -28
- package/src/lib/motion-master-req-res-web-socket.js +97 -97
- package/src/lib/motion-master-req-res-worker-socket.d.ts +24 -24
- package/src/lib/motion-master-req-res-worker-socket.js +71 -71
- package/src/lib/motion-master.proto.d.ts +5183 -5183
- package/src/lib/motion-master.proto.js +53218 -53218
- package/src/lib/operators.d.ts +20 -20
- package/src/lib/operators.js +82 -83
- package/src/lib/operators.js.map +1 -1
- package/src/lib/options.d.ts +10 -10
- package/src/lib/options.js +13 -13
- package/src/lib/os-command.d.ts +387 -173
- package/src/lib/os-command.js +555 -269
- package/src/lib/os-command.js.map +1 -1
- package/src/lib/parameter.d.ts +156 -138
- package/src/lib/parameter.js +377 -152
- package/src/lib/parameter.js.map +1 -1
- package/src/lib/product-id-range.d.ts +7 -7
- package/src/lib/product-id-range.js +11 -11
- package/src/lib/request-status-resolver.d.ts +4 -4
- package/src/lib/request-status-resolver.js +344 -344
- package/src/lib/somanet-product.d.ts +37 -0
- package/src/lib/somanet-product.js +126 -0
- package/src/lib/somanet-product.js.map +1 -0
- package/src/lib/system-log-line.d.ts +9 -9
- package/src/lib/system-log-line.js +2 -2
- package/src/lib/types.d.ts +141 -141
- package/src/lib/types.js +28 -28
- package/src/lib/urls.d.ts +3 -3
- package/src/lib/urls.js +9 -9
- package/src/lib/util.d.ts +21 -45
- package/src/lib/util.js +113 -379
- package/src/lib/util.js.map +1 -1
- package/src/lib/web-socket-connection-close-codes.d.ts +8 -8
- package/src/lib/web-socket-connection-close-codes.js +88 -88
package/src/lib/operators.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Observable, UnaryFunction } from 'rxjs';
|
|
2
|
-
import { IMotionMasterMessage, MotionMasterMessage, ParameterValueType, StatusKey } from './types';
|
|
3
|
-
import { DeviceParameter } from './device-parameter';
|
|
4
|
-
import { MotionMasterReqResClient } from './motion-master-req-res-client';
|
|
5
|
-
export declare function selectMotionMasterMessageStatusByMessageId<T>(key: StatusKey, id?: string): UnaryFunction<Observable<IMotionMasterMessage>, Observable<T>>;
|
|
6
|
-
export declare function extendStatus<T>(data: {
|
|
7
|
-
statusKey: StatusKey;
|
|
8
|
-
messageId: string;
|
|
9
|
-
}): UnaryFunction<Observable<T>, Observable<T & {
|
|
10
|
-
messageId: string;
|
|
11
|
-
request: import("./types").RequestStatus;
|
|
12
|
-
}>>;
|
|
13
|
-
export declare function transformMotionMasterMessageToStatus<T>(statusKey: StatusKey, requestTimeout: number, messageId: string): UnaryFunction<Observable<IMotionMasterMessage>, Observable<T & {
|
|
14
|
-
messageId: string;
|
|
15
|
-
request: import("./types").RequestStatus;
|
|
16
|
-
}>>;
|
|
17
|
-
export declare function selectMotionMasterMessageByTopic<T>(topic: string): UnaryFunction<Observable<[string, T]>, Observable<T>>;
|
|
18
|
-
export declare function selectMotionMasterMessageStatusByKey<T>(key: keyof MotionMasterMessage.IStatus): UnaryFunction<Observable<IMotionMasterMessage>, Observable<T>>;
|
|
19
|
-
export declare function mapMonitoringParameterValuesStatusMessageToParameterValues(): UnaryFunction<Observable<IMotionMasterMessage>, Observable<ParameterValueType[]>>;
|
|
20
|
-
export declare function mapMonitoringParameterValuesStatusMessageToDeviceParameters(request: MotionMasterReqResClient): UnaryFunction<Observable<IMotionMasterMessage>, Observable<DeviceParameter[]>>;
|
|
1
|
+
import { Observable, UnaryFunction } from 'rxjs';
|
|
2
|
+
import { IMotionMasterMessage, MotionMasterMessage, ParameterValueType, StatusKey } from './types';
|
|
3
|
+
import { DeviceParameter } from './device-parameter';
|
|
4
|
+
import { MotionMasterReqResClient } from './motion-master-req-res-client';
|
|
5
|
+
export declare function selectMotionMasterMessageStatusByMessageId<T>(key: StatusKey, id?: string): UnaryFunction<Observable<IMotionMasterMessage>, Observable<T>>;
|
|
6
|
+
export declare function extendStatus<T>(data: {
|
|
7
|
+
statusKey: StatusKey;
|
|
8
|
+
messageId: string;
|
|
9
|
+
}): UnaryFunction<Observable<T>, Observable<T & {
|
|
10
|
+
messageId: string;
|
|
11
|
+
request: import("./types").RequestStatus;
|
|
12
|
+
}>>;
|
|
13
|
+
export declare function transformMotionMasterMessageToStatus<T>(statusKey: StatusKey, requestTimeout: number, messageId: string): UnaryFunction<Observable<IMotionMasterMessage>, Observable<T & {
|
|
14
|
+
messageId: string;
|
|
15
|
+
request: import("./types").RequestStatus;
|
|
16
|
+
}>>;
|
|
17
|
+
export declare function selectMotionMasterMessageByTopic<T>(topic: string): UnaryFunction<Observable<[string, T]>, Observable<T>>;
|
|
18
|
+
export declare function selectMotionMasterMessageStatusByKey<T>(key: keyof MotionMasterMessage.IStatus): UnaryFunction<Observable<IMotionMasterMessage>, Observable<T>>;
|
|
19
|
+
export declare function mapMonitoringParameterValuesStatusMessageToParameterValues(): UnaryFunction<Observable<IMotionMasterMessage>, Observable<ParameterValueType[]>>;
|
|
20
|
+
export declare function mapMonitoringParameterValuesStatusMessageToDeviceParameters(request: MotionMasterReqResClient): UnaryFunction<Observable<IMotionMasterMessage>, Observable<DeviceParameter[]>>;
|
package/src/lib/operators.js
CHANGED
|
@@ -1,84 +1,83 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapMonitoringParameterValuesStatusMessageToDeviceParameters = exports.mapMonitoringParameterValuesStatusMessageToParameterValues = exports.selectMotionMasterMessageStatusByKey = exports.selectMotionMasterMessageByTopic = exports.transformMotionMasterMessageToStatus = exports.extendStatus = exports.selectMotionMasterMessageStatusByMessageId = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
//
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
exports.mapMonitoringParameterValuesStatusMessageToDeviceParameters = mapMonitoringParameterValuesStatusMessageToDeviceParameters;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mapMonitoringParameterValuesStatusMessageToDeviceParameters = exports.mapMonitoringParameterValuesStatusMessageToParameterValues = exports.selectMotionMasterMessageStatusByKey = exports.selectMotionMasterMessageByTopic = exports.transformMotionMasterMessageToStatus = exports.extendStatus = exports.selectMotionMasterMessageStatusByMessageId = void 0;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const request_status_resolver_1 = require("./request-status-resolver");
|
|
6
|
+
const parameter_1 = require("./parameter");
|
|
7
|
+
function selectMotionMasterMessageStatusByMessageId(key, id) {
|
|
8
|
+
return (0, rxjs_1.pipe)((0, rxjs_1.filter)((message) => message.id === id), (0, rxjs_1.map)((message) => {
|
|
9
|
+
var _a, _b, _c;
|
|
10
|
+
// Handling the special case when Motion Master sends SystemEvent instead of e.g. DeviceParameterInfo status for
|
|
11
|
+
// GetDeviceParameterInfo request message. This typically happens when request contains an invalid device address.
|
|
12
|
+
if (((_a = message.status) === null || _a === void 0 ? void 0 : _a.systemEvent) && key !== 'systemEvent') {
|
|
13
|
+
if (message.status.systemEvent.error) {
|
|
14
|
+
throw new Error(`Error selecting message: ${(_b = message.status.systemEvent.error.message) !== null && _b !== void 0 ? _b : ''}`);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error(`Error selecting message. Received System Event instead of "${key.toString()}": ${JSON.stringify(message)}`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return (_c = message.status) === null || _c === void 0 ? void 0 : _c[key];
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
exports.selectMotionMasterMessageStatusByMessageId = selectMotionMasterMessageStatusByMessageId;
|
|
24
|
+
function extendStatus(data) {
|
|
25
|
+
return (0, rxjs_1.pipe)((0, rxjs_1.map)((status) => {
|
|
26
|
+
var _a;
|
|
27
|
+
const { statusKey, messageId } = data;
|
|
28
|
+
const request = (_a = request_status_resolver_1.requestStatusResolver[statusKey]) === null || _a === void 0 ? void 0 : _a.call(request_status_resolver_1.requestStatusResolver, status);
|
|
29
|
+
return Object.assign(Object.assign({}, status), { messageId, request });
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
exports.extendStatus = extendStatus;
|
|
33
|
+
function transformMotionMasterMessageToStatus(statusKey, requestTimeout, messageId) {
|
|
34
|
+
if (typeof requestTimeout !== 'number') {
|
|
35
|
+
throw new Error(`Invalid requestTimeout=${requestTimeout} provided for ${statusKey}`);
|
|
36
|
+
}
|
|
37
|
+
return (0, rxjs_1.pipe)(selectMotionMasterMessageStatusByMessageId(statusKey, messageId), (0, rxjs_1.timeout)(requestTimeout), extendStatus({ statusKey, messageId }), (0, rxjs_1.takeWhile)((status) => status.request !== 'succeeded' && status.request !== 'failed', true));
|
|
38
|
+
}
|
|
39
|
+
exports.transformMotionMasterMessageToStatus = transformMotionMasterMessageToStatus;
|
|
40
|
+
function selectMotionMasterMessageByTopic(topic) {
|
|
41
|
+
return (0, rxjs_1.pipe)((0, rxjs_1.filter)(([t]) => t === topic), (0, rxjs_1.map)(([, data]) => data));
|
|
42
|
+
}
|
|
43
|
+
exports.selectMotionMasterMessageByTopic = selectMotionMasterMessageByTopic;
|
|
44
|
+
function selectMotionMasterMessageStatusByKey(key) {
|
|
45
|
+
return (0, rxjs_1.pipe)((0, rxjs_1.filter)((message) => !!(message.status && message.status[key])), (0, rxjs_1.map)((message) => { var _a; return (_a = message.status) === null || _a === void 0 ? void 0 : _a[key]; }));
|
|
46
|
+
}
|
|
47
|
+
exports.selectMotionMasterMessageStatusByKey = selectMotionMasterMessageStatusByKey;
|
|
48
|
+
function mapMonitoringParameterValuesStatusMessageToParameterValues() {
|
|
49
|
+
return (0, rxjs_1.pipe)((0, rxjs_1.map)((message) => {
|
|
50
|
+
var _a;
|
|
51
|
+
if ((_a = message.status) === null || _a === void 0 ? void 0 : _a.monitoringParameterValues) {
|
|
52
|
+
const { deviceParameterValues } = message.status.monitoringParameterValues;
|
|
53
|
+
if (deviceParameterValues === null || deviceParameterValues === void 0 ? void 0 : deviceParameterValues.parameterValues) {
|
|
54
|
+
return deviceParameterValues.parameterValues.map((parameterValue) => (0, parameter_1.getParameterValue)(parameterValue));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return [];
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
exports.mapMonitoringParameterValuesStatusMessageToParameterValues = mapMonitoringParameterValuesStatusMessageToParameterValues;
|
|
61
|
+
function mapMonitoringParameterValuesStatusMessageToDeviceParameters(request) {
|
|
62
|
+
return (0, rxjs_1.pipe)((0, rxjs_1.mergeMap)((message) => {
|
|
63
|
+
var _a, _b, _c, _d, _e, _f;
|
|
64
|
+
const parameterValues = (_c = (_b = (_a = message.status) === null || _a === void 0 ? void 0 : _a.monitoringParameterValues) === null || _b === void 0 ? void 0 : _b.deviceParameterValues) === null || _c === void 0 ? void 0 : _c.parameterValues;
|
|
65
|
+
if (!parameterValues) {
|
|
66
|
+
return (0, rxjs_1.of)([]);
|
|
67
|
+
}
|
|
68
|
+
const deviceAddress = (_f = (_e = (_d = message === null || message === void 0 ? void 0 : message.status) === null || _d === void 0 ? void 0 : _d.monitoringParameterValues) === null || _e === void 0 ? void 0 : _e.deviceParameterValues) === null || _f === void 0 ? void 0 : _f.deviceAddress;
|
|
69
|
+
return request.resolveDeviceParameterInfoMap(deviceAddress).pipe((0, rxjs_1.map)((infoMap) => {
|
|
70
|
+
return parameterValues.map((parameter) => {
|
|
71
|
+
var _a, _b;
|
|
72
|
+
const index = (_a = parameter.index) !== null && _a !== void 0 ? _a : 0x0000;
|
|
73
|
+
const subindex = (_b = parameter.subindex) !== null && _b !== void 0 ? _b : 0x00;
|
|
74
|
+
const id = (0, parameter_1.makeParameterId)(index, subindex);
|
|
75
|
+
const infoParameter = infoMap.get(id);
|
|
76
|
+
const value = (0, parameter_1.getParameterValue)(parameter);
|
|
77
|
+
return Object.assign(Object.assign({ id, index, subindex }, infoParameter), { value });
|
|
78
|
+
});
|
|
79
|
+
}));
|
|
80
|
+
}));
|
|
81
|
+
}
|
|
82
|
+
exports.mapMonitoringParameterValuesStatusMessageToDeviceParameters = mapMonitoringParameterValuesStatusMessageToDeviceParameters;
|
|
84
83
|
//# sourceMappingURL=operators.js.map
|
package/src/lib/operators.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operators.js","sourceRoot":"","sources":["../../../../../libs/motion-master-client/src/lib/operators.ts"],"names":[],"mappings":";;;AAAA,+BAAsG;AACtG,
|
|
1
|
+
{"version":3,"file":"operators.js","sourceRoot":"","sources":["../../../../../libs/motion-master-client/src/lib/operators.ts"],"names":[],"mappings":";;;AAAA,+BAAsG;AACtG,uEAAkE;AAIlE,2CAAiE;AAEjE,SAAgB,0CAA0C,CAAI,GAAc,EAAE,EAAW;IACvF,OAAO,IAAA,WAAI,EACT,IAAA,aAAM,EAAC,CAAC,OAA6B,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,EAC5D,IAAA,UAAG,EAAC,CAAC,OAAO,EAAE,EAAE;;QACd,gHAAgH;QAChH,kHAAkH;QAClH,IAAI,CAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,WAAW,KAAI,GAAG,KAAK,aAAa,EAAE;YACxD,IAAI,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE;gBACpC,MAAM,IAAI,KAAK,CAAC,4BAA4B,MAAA,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,mCAAI,EAAE,EAAE,CAAC,CAAC;aAC/F;iBAAM;gBACL,MAAM,IAAI,KAAK,CAAC,8DAA8D,GAAG,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;aAC9H;SACF;QACD,OAAO,MAAA,OAAO,CAAC,MAAM,0CAAG,GAAG,CAAM,CAAC;IACpC,CAAC,CAAC,CACH,CAAC;AACJ,CAAC;AAhBD,gGAgBC;AAED,SAAgB,YAAY,CAAI,IAAiD;IAC/E,OAAO,IAAA,WAAI,EACT,IAAA,UAAG,EAAC,CAAC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C,OAAO,EAAE,EAAE;YACd,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;;gBACvC,MAAM,KAAK,GAAG,MAAA,SAAS,CAAC,KAAK,mCAAI,MAAM,CAAC;gBACxC,MAAM,QAAQ,GAAG,MAAA,SAAS,CAAC,QAAQ,mCAAI,IAAI,CAAC;gBAC5C,MAAM,EAAE,GAAG,IAAA,2BAAe,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;gBAE5C,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBAEtC,MAAM,KAAK,GAAG,IAAA,6BAAiB,EAAC,SAAS,CAAC,CAAC;gBAE3C,OAAO,8BAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,IAAK,aAAa,KAAE,KAAK,GAAqB,CAAC;YAC7E,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CACH,CAAC;AACJ,CAAC;AA7BD,kIA6BC"}
|
package/src/lib/options.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MotionMasterMessage } from './types';
|
|
2
|
-
export declare const parameterValueTypeOptions: {
|
|
3
|
-
intValue: string;
|
|
4
|
-
uintValue: string;
|
|
5
|
-
floatValue: string;
|
|
6
|
-
stringValue: string;
|
|
7
|
-
rawValue: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const ethercatNetworkStateOptions: typeof MotionMasterMessage.Status.EthercatNetworkState.State;
|
|
10
|
-
export declare const positionControllerTypeOptions: typeof MotionMasterMessage.Request.ComputeAutoTuningGains.PositionParameters.ControllerType;
|
|
1
|
+
import { MotionMasterMessage } from './types';
|
|
2
|
+
export declare const parameterValueTypeOptions: {
|
|
3
|
+
intValue: string;
|
|
4
|
+
uintValue: string;
|
|
5
|
+
floatValue: string;
|
|
6
|
+
stringValue: string;
|
|
7
|
+
rawValue: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const ethercatNetworkStateOptions: typeof MotionMasterMessage.Status.EthercatNetworkState.State;
|
|
10
|
+
export declare const positionControllerTypeOptions: typeof MotionMasterMessage.Request.ComputeAutoTuningGains.PositionParameters.ControllerType;
|
package/src/lib/options.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.positionControllerTypeOptions = exports.ethercatNetworkStateOptions = exports.parameterValueTypeOptions = void 0;
|
|
4
|
-
const types_1 = require("./types");
|
|
5
|
-
exports.parameterValueTypeOptions = {
|
|
6
|
-
'intValue': 'intValue',
|
|
7
|
-
'uintValue': 'uintValue',
|
|
8
|
-
'floatValue': 'floatValue',
|
|
9
|
-
'stringValue': 'stringValue',
|
|
10
|
-
'rawValue': 'rawValue',
|
|
11
|
-
};
|
|
12
|
-
exports.ethercatNetworkStateOptions = types_1.MotionMasterMessage.Status.EthercatNetworkState.State;
|
|
13
|
-
exports.positionControllerTypeOptions = types_1.MotionMasterMessage.Request.ComputeAutoTuningGains.PositionParameters.ControllerType;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.positionControllerTypeOptions = exports.ethercatNetworkStateOptions = exports.parameterValueTypeOptions = void 0;
|
|
4
|
+
const types_1 = require("./types");
|
|
5
|
+
exports.parameterValueTypeOptions = {
|
|
6
|
+
'intValue': 'intValue',
|
|
7
|
+
'uintValue': 'uintValue',
|
|
8
|
+
'floatValue': 'floatValue',
|
|
9
|
+
'stringValue': 'stringValue',
|
|
10
|
+
'rawValue': 'rawValue',
|
|
11
|
+
};
|
|
12
|
+
exports.ethercatNetworkStateOptions = types_1.MotionMasterMessage.Status.EthercatNetworkState.State;
|
|
13
|
+
exports.positionControllerTypeOptions = types_1.MotionMasterMessage.Request.ComputeAutoTuningGains.PositionParameters.ControllerType;
|
|
14
14
|
//# sourceMappingURL=options.js.map
|