@zaber/motion 2.10.1 → 2.11.2
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/index.d.ts +6 -0
- package/dist/lib/ascii/index.js +13 -1
- package/dist/lib/ascii/index.js.map +1 -1
- package/dist/lib/ascii/paramset_info.d.ts +17 -0
- package/dist/lib/ascii/paramset_info.js +19 -0
- package/dist/lib/ascii/paramset_info.js.map +1 -0
- package/dist/lib/ascii/pid_tuning.d.ts +32 -0
- package/dist/lib/ascii/pid_tuning.js +22 -0
- package/dist/lib/ascii/pid_tuning.js.map +1 -0
- package/dist/lib/ascii/servo_tuner.d.ts +77 -0
- package/dist/lib/ascii/servo_tuner.js +180 -0
- package/dist/lib/ascii/servo_tuner.js.map +1 -0
- package/dist/lib/ascii/servo_tuning_param.d.ts +16 -0
- package/dist/lib/ascii/servo_tuning_param.js +49 -0
- package/dist/lib/ascii/servo_tuning_param.js.map +1 -0
- package/dist/lib/ascii/servo_tuning_paramset.d.ts +17 -0
- package/dist/lib/ascii/servo_tuning_paramset.js +24 -0
- package/dist/lib/ascii/servo_tuning_paramset.js.map +1 -0
- package/dist/lib/ascii/simple_tuning_param.d.ts +24 -0
- package/dist/lib/ascii/simple_tuning_param.js +20 -0
- package/dist/lib/ascii/simple_tuning_param.js.map +1 -0
- package/dist/lib/ascii_ns.d.ts +12 -0
- package/dist/lib/ascii_ns.js +6 -0
- package/dist/lib/ascii_ns.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +452 -0
- package/dist/lib/protobufs/main_pb.js +3490 -4
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/dist/lib/tools.d.ts +6 -0
- package/dist/lib/tools.js +10 -0
- package/dist/lib/tools.js.map +1 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -27,3 +27,9 @@ export { StreamMode } from './stream_mode';
|
|
|
27
27
|
export { StreamAxisType } from './stream_axis_type';
|
|
28
28
|
export { StreamAxisDefinition } from './stream_axis_definition';
|
|
29
29
|
export { Transport } from './transport';
|
|
30
|
+
export { ServoTuner } from './servo_tuner';
|
|
31
|
+
export { ServoTuningParamset } from './servo_tuning_paramset';
|
|
32
|
+
export { ParamsetInfo } from './paramset_info';
|
|
33
|
+
export { PidTuning } from './pid_tuning';
|
|
34
|
+
export { ServoTuningParam } from './servo_tuning_param';
|
|
35
|
+
export { SimpleTuningParam } from './simple_tuning_param';
|
package/dist/lib/ascii/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Transport = exports.StreamAxisDefinition = exports.StreamAxisType = exports.StreamMode = exports.StreamBuffer = exports.Stream = exports.OscilloscopeCaptureProperties = exports.OscilloscopeData = exports.Oscilloscope = exports.LockstepAxes = exports.Lockstep = exports.Warnings = exports.WarningFlags = exports.UnknownResponseEvent = exports.SettingConstants = exports.Response = exports.MessageType = exports.DeviceIOInfo = exports.DeviceIO = exports.Device = exports.DeviceSettings = exports.DeviceIdentity = exports.Connection = exports.Axis = exports.AxisType = exports.AxisSettings = exports.AxisIdentity = exports.AllAxes = exports.AlertEvent = void 0;
|
|
3
|
+
exports.SimpleTuningParam = exports.ServoTuningParam = exports.PidTuning = exports.ParamsetInfo = exports.ServoTuningParamset = exports.ServoTuner = exports.Transport = exports.StreamAxisDefinition = exports.StreamAxisType = exports.StreamMode = exports.StreamBuffer = exports.Stream = exports.OscilloscopeCaptureProperties = exports.OscilloscopeData = exports.Oscilloscope = exports.LockstepAxes = exports.Lockstep = exports.Warnings = exports.WarningFlags = exports.UnknownResponseEvent = exports.SettingConstants = exports.Response = exports.MessageType = exports.DeviceIOInfo = exports.DeviceIO = exports.Device = exports.DeviceSettings = exports.DeviceIdentity = exports.Connection = exports.Axis = exports.AxisType = exports.AxisSettings = exports.AxisIdentity = exports.AllAxes = exports.AlertEvent = void 0;
|
|
4
4
|
var alert_event_1 = require("./alert_event");
|
|
5
5
|
Object.defineProperty(exports, "AlertEvent", { enumerable: true, get: function () { return alert_event_1.AlertEvent; } });
|
|
6
6
|
var all_axes_1 = require("./all_axes");
|
|
@@ -59,4 +59,16 @@ var stream_axis_definition_1 = require("./stream_axis_definition");
|
|
|
59
59
|
Object.defineProperty(exports, "StreamAxisDefinition", { enumerable: true, get: function () { return stream_axis_definition_1.StreamAxisDefinition; } });
|
|
60
60
|
var transport_1 = require("./transport");
|
|
61
61
|
Object.defineProperty(exports, "Transport", { enumerable: true, get: function () { return transport_1.Transport; } });
|
|
62
|
+
var servo_tuner_1 = require("./servo_tuner");
|
|
63
|
+
Object.defineProperty(exports, "ServoTuner", { enumerable: true, get: function () { return servo_tuner_1.ServoTuner; } });
|
|
64
|
+
var servo_tuning_paramset_1 = require("./servo_tuning_paramset");
|
|
65
|
+
Object.defineProperty(exports, "ServoTuningParamset", { enumerable: true, get: function () { return servo_tuning_paramset_1.ServoTuningParamset; } });
|
|
66
|
+
var paramset_info_1 = require("./paramset_info");
|
|
67
|
+
Object.defineProperty(exports, "ParamsetInfo", { enumerable: true, get: function () { return paramset_info_1.ParamsetInfo; } });
|
|
68
|
+
var pid_tuning_1 = require("./pid_tuning");
|
|
69
|
+
Object.defineProperty(exports, "PidTuning", { enumerable: true, get: function () { return pid_tuning_1.PidTuning; } });
|
|
70
|
+
var servo_tuning_param_1 = require("./servo_tuning_param");
|
|
71
|
+
Object.defineProperty(exports, "ServoTuningParam", { enumerable: true, get: function () { return servo_tuning_param_1.ServoTuningParam; } });
|
|
72
|
+
var simple_tuning_param_1 = require("./simple_tuning_param");
|
|
73
|
+
Object.defineProperty(exports, "SimpleTuningParam", { enumerable: true, get: function () { return simple_tuning_param_1.SimpleTuningParam; } });
|
|
62
74
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/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ent":["export { AlertEvent } from './alert_event';\nexport { AllAxes } from './all_axes';\nexport { AxisIdentity } from './axis_identity';\nexport { AxisSettings } from './axis_settings';\nexport { AxisType } from './axis_type';\nexport { Axis } from './axis';\nexport { Connection } from './connection';\nexport { DeviceIdentity } from './device_identity';\nexport { DeviceSettings } from './device_settings';\nexport { Device } from './device';\nexport { DeviceIO } from './device_io';\nexport { DeviceIOInfo } from './device_io_info';\nexport { MessageType } from './message_type';\nexport { Response } from './response';\nexport { SettingConstants } from './setting_constants';\nexport { UnknownResponseEvent } from './unknown_response_event';\nexport { WarningFlags } from './warning_flags';\nexport { Warnings } from './warnings';\nexport { Lockstep } from './lockstep';\nexport { LockstepAxes } from './lockstep_axes';\nexport { Oscilloscope } from './oscilloscope';\nexport { OscilloscopeData } from './oscilloscope_data';\nexport { OscilloscopeCaptureProperties } from './oscilloscope_capture_properties';\nexport { Stream } from './stream';\nexport { StreamBuffer } from './stream_buffer';\nexport { StreamMode } from './stream_mode';\nexport { StreamAxisType } from './stream_axis_type';\nexport { StreamAxisDefinition } from './stream_axis_definition';\nexport { Transport } from './transport';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ascii/index.ts"],"names":[],"mappings":";;;AAAA,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,uCAAqC;AAA5B,mGAAA,OAAO,OAAA;AAChB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,yCAAuC;AAA9B,qGAAA,QAAQ,OAAA;AACjB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,yCAAuC;AAA9B,qGAAA,QAAQ,OAAA;AACjB,mDAAgD;AAAvC,8GAAA,YAAY,OAAA;AACrB,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA;AAC7B,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,qFAAkF;AAAzE,gJAAA,6BAA6B,OAAA;AACtC,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,uDAAoD;AAA3C,kHAAA,cAAc,OAAA;AACvB,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA;AAC7B,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA","sourcesContent":["export { AlertEvent } from './alert_event';\nexport { AllAxes } from './all_axes';\nexport { AxisIdentity } from './axis_identity';\nexport { AxisSettings } from './axis_settings';\nexport { AxisType } from './axis_type';\nexport { Axis } from './axis';\nexport { Connection } from './connection';\nexport { DeviceIdentity } from './device_identity';\nexport { DeviceSettings } from './device_settings';\nexport { Device } from './device';\nexport { DeviceIO } from './device_io';\nexport { DeviceIOInfo } from './device_io_info';\nexport { MessageType } from './message_type';\nexport { Response } from './response';\nexport { SettingConstants } from './setting_constants';\nexport { UnknownResponseEvent } from './unknown_response_event';\nexport { WarningFlags } from './warning_flags';\nexport { Warnings } from './warnings';\nexport { Lockstep } from './lockstep';\nexport { LockstepAxes } from './lockstep_axes';\nexport { Oscilloscope } from './oscilloscope';\nexport { OscilloscopeData } from './oscilloscope_data';\nexport { OscilloscopeCaptureProperties } from './oscilloscope_capture_properties';\nexport { Stream } from './stream';\nexport { StreamBuffer } from './stream_buffer';\nexport { StreamMode } from './stream_mode';\nexport { StreamAxisType } from './stream_axis_type';\nexport { StreamAxisDefinition } from './stream_axis_definition';\nexport { Transport } from './transport';\nexport { ServoTuner } from './servo_tuner';\nexport { ServoTuningParamset } from './servo_tuning_paramset';\nexport { ParamsetInfo } from './paramset_info';\nexport { PidTuning } from './pid_tuning';\nexport { ServoTuningParam } from './servo_tuning_param';\nexport { SimpleTuningParam } from './simple_tuning_param';\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ServoTuningParam } from './servo_tuning_param';
|
|
2
|
+
/**
|
|
3
|
+
* The raw parameters currently saved to a given paramset.
|
|
4
|
+
*/
|
|
5
|
+
export interface ParamsetInfo {
|
|
6
|
+
/**
|
|
7
|
+
* The tuning algorithm used for this axis.
|
|
8
|
+
*/
|
|
9
|
+
type: string;
|
|
10
|
+
/**
|
|
11
|
+
* The raw tuning parameters of this device.
|
|
12
|
+
*/
|
|
13
|
+
params: ServoTuningParam[];
|
|
14
|
+
}
|
|
15
|
+
export declare namespace ParamsetInfo {
|
|
16
|
+
const __type = "ParamsetInfo";
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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.ParamsetInfo = void 0;
|
|
6
|
+
const servo_tuning_param_1 = require("./servo_tuning_param");
|
|
7
|
+
var ParamsetInfo;
|
|
8
|
+
(function (ParamsetInfo) {
|
|
9
|
+
ParamsetInfo.__type = 'ParamsetInfo';
|
|
10
|
+
/** @internal */
|
|
11
|
+
function fromProtobuf(pbData) {
|
|
12
|
+
return {
|
|
13
|
+
type: pbData.type,
|
|
14
|
+
params: pbData.paramsList.map(item => servo_tuning_param_1.ServoTuningParam.fromProtobuf(item)),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
ParamsetInfo.fromProtobuf = fromProtobuf;
|
|
18
|
+
})(ParamsetInfo = exports.ParamsetInfo || (exports.ParamsetInfo = {}));
|
|
19
|
+
//# sourceMappingURL=paramset_info.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paramset_info.js","sourceRoot":"","sources":["../../../src/ascii/paramset_info.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAGtD,6DAAwD;AAkBxD,IAAiB,YAAY,CAU5B;AAVD,WAAiB,YAAY;IACd,mBAAM,GAAG,cAAc,CAAC;IAErC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAqC;QAChE,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,qCAAgB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SAC3E,CAAC;IACJ,CAAC;IALe,yBAAY,eAK3B,CAAA;AACH,CAAC,EAVgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAU5B","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { ServoTuningParam } from './servo_tuning_param';\n\n/**\n * The raw parameters currently saved to a given paramset.\n */\nexport interface ParamsetInfo {\n /**\n * The tuning algorithm used for this axis.\n */\n type: string;\n\n /**\n * The raw tuning parameters of this device.\n */\n params: ServoTuningParam[];\n\n}\n\nexport namespace ParamsetInfo {\n export const __type = 'ParamsetInfo';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.ParamsetInfo.AsObject): ParamsetInfo {\n return {\n type: pbData.type,\n params: pbData.paramsList.map(item => ServoTuningParam.fromProtobuf(item)),\n };\n }\n}\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The tuning of this axis represented by PID parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface PidTuning {
|
|
5
|
+
/**
|
|
6
|
+
* The tuning algorithm used to tune this axis.
|
|
7
|
+
*/
|
|
8
|
+
type: string;
|
|
9
|
+
/**
|
|
10
|
+
* The version of the tuning algorithm used to tune this axis.
|
|
11
|
+
*/
|
|
12
|
+
version: number;
|
|
13
|
+
/**
|
|
14
|
+
* The positional tuning argument.
|
|
15
|
+
*/
|
|
16
|
+
p: number;
|
|
17
|
+
/**
|
|
18
|
+
* The integral tuning argument.
|
|
19
|
+
*/
|
|
20
|
+
i: number;
|
|
21
|
+
/**
|
|
22
|
+
* The derivative tuning argument.
|
|
23
|
+
*/
|
|
24
|
+
d: number;
|
|
25
|
+
/**
|
|
26
|
+
* The frequency cutoff for the tuning.
|
|
27
|
+
*/
|
|
28
|
+
fc: number;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace PidTuning {
|
|
31
|
+
const __type = "PidTuning";
|
|
32
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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.PidTuning = void 0;
|
|
6
|
+
var PidTuning;
|
|
7
|
+
(function (PidTuning) {
|
|
8
|
+
PidTuning.__type = 'PidTuning';
|
|
9
|
+
/** @internal */
|
|
10
|
+
function fromProtobuf(pbData) {
|
|
11
|
+
return {
|
|
12
|
+
type: pbData.type,
|
|
13
|
+
version: pbData.version,
|
|
14
|
+
p: pbData.p,
|
|
15
|
+
i: pbData.i,
|
|
16
|
+
d: pbData.d,
|
|
17
|
+
fc: pbData.fc,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
PidTuning.fromProtobuf = fromProtobuf;
|
|
21
|
+
})(PidTuning = exports.PidTuning || (exports.PidTuning = {}));
|
|
22
|
+
//# sourceMappingURL=pid_tuning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pid_tuning.js","sourceRoot":"","sources":["../../../src/ascii/pid_tuning.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAwCtD,IAAiB,SAAS,CAczB;AAdD,WAAiB,SAAS;IACX,gBAAM,GAAG,WAAW,CAAC;IAElC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAkC;QAC7D,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,CAAC,EAAE,MAAM,CAAC,CAAC;YACX,CAAC,EAAE,MAAM,CAAC,CAAC;YACX,CAAC,EAAE,MAAM,CAAC,CAAC;YACX,EAAE,EAAE,MAAM,CAAC,EAAE;SACd,CAAC;IACJ,CAAC;IATe,sBAAY,eAS3B,CAAA;AACH,CAAC,EAdgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAczB","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * The tuning of this axis represented by PID parameters.\n */\nexport interface PidTuning {\n /**\n * The tuning algorithm used to tune this axis.\n */\n type: string;\n\n /**\n * The version of the tuning algorithm used to tune this axis.\n */\n version: number;\n\n /**\n * The positional tuning argument.\n */\n p: number;\n\n /**\n * The integral tuning argument.\n */\n i: number;\n\n /**\n * The derivative tuning argument.\n */\n d: number;\n\n /**\n * The frequency cutoff for the tuning.\n */\n fc: number;\n\n}\n\nexport namespace PidTuning {\n export const __type = 'PidTuning';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.PidTuning.AsObject): PidTuning {\n return {\n type: pbData.type,\n version: pbData.version,\n p: pbData.p,\n i: pbData.i,\n d: pbData.d,\n fc: pbData.fc,\n };\n }\n}\n"]}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Axis } from './axis';
|
|
2
|
+
import { ServoTuningParamset } from './servo_tuning_paramset';
|
|
3
|
+
import { ParamsetInfo } from './paramset_info';
|
|
4
|
+
import { ServoTuningParam } from './servo_tuning_param';
|
|
5
|
+
import { PidTuning } from './pid_tuning';
|
|
6
|
+
import { SimpleTuningParam } from './simple_tuning_param';
|
|
7
|
+
/**
|
|
8
|
+
* Exposes the capabilities to inspect and edit an axis' servo tuning.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ServoTuner {
|
|
11
|
+
/**
|
|
12
|
+
* The axis that will be tuned.
|
|
13
|
+
*/
|
|
14
|
+
get axis(): Axis;
|
|
15
|
+
private _axis;
|
|
16
|
+
constructor(axis: Axis);
|
|
17
|
+
/**
|
|
18
|
+
* Get the paramset that this device uses by default when it starts up.
|
|
19
|
+
* @return The paramset used at when the device restarts.
|
|
20
|
+
*/
|
|
21
|
+
getStartupParamset(): Promise<ServoTuningParamset>;
|
|
22
|
+
/**
|
|
23
|
+
* Set the paramset that this device uses by default when it starts up.
|
|
24
|
+
* @param paramset The paramset to use at startup.
|
|
25
|
+
*/
|
|
26
|
+
setStartupParamset(paramset: ServoTuningParamset): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Load the values from one paramset into another.
|
|
29
|
+
* @param toParamset The paramset to load into.
|
|
30
|
+
* @param fromParamset The paramset to load from.
|
|
31
|
+
*/
|
|
32
|
+
loadParamset(toParamset: ServoTuningParamset, fromParamset: ServoTuningParamset): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Get the full set of tuning parameters used by the firmware driving this axis.
|
|
35
|
+
* @param paramset The paramset to get tuning for.
|
|
36
|
+
* @return The raw representation of the current tuning.
|
|
37
|
+
*/
|
|
38
|
+
getTuning(paramset: ServoTuningParamset): Promise<ParamsetInfo>;
|
|
39
|
+
/**
|
|
40
|
+
* Set individual tuning parameters.
|
|
41
|
+
* Only use this method if you have a strong understanding of Zaber specific tuning parameters.
|
|
42
|
+
* @param paramset The paramset to set tuning of.
|
|
43
|
+
* @param tuningParams The params to set.
|
|
44
|
+
*/
|
|
45
|
+
setTuning(paramset: ServoTuningParamset, tuningParams: ServoTuningParam[]): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the tuning of a paramset using the PID method.
|
|
48
|
+
* @param paramset The paramset to get tuning for.
|
|
49
|
+
* @param p The proportional gain. Must be in units of N/m.
|
|
50
|
+
* @param i The integral gain. Must be in units of N/m⋅s.
|
|
51
|
+
* @param d The derivative gain. Must be in units of N⋅s/m.
|
|
52
|
+
* @param fc The cutoff frequency. Must be in units of Hz.
|
|
53
|
+
* @return The PID representation of the current tuning after your changes have been applied.
|
|
54
|
+
*/
|
|
55
|
+
setPidTuning(paramset: ServoTuningParamset, p: number, i: number, d: number, fc: number): Promise<PidTuning>;
|
|
56
|
+
/**
|
|
57
|
+
* Gets the PID representation of this paramset's servo tuning.
|
|
58
|
+
* @param paramset The paramset to get tuning for.
|
|
59
|
+
* @return The PID representation of the current tuning.
|
|
60
|
+
*/
|
|
61
|
+
getPidTuning(paramset: ServoTuningParamset): Promise<PidTuning>;
|
|
62
|
+
/**
|
|
63
|
+
* Gets the parameters that are required to tune this device.
|
|
64
|
+
* @return The tuning parameters.
|
|
65
|
+
*/
|
|
66
|
+
getSimpleTuningParamList(): Promise<SimpleTuningParam[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Set the tuning of this device using the simple input method.
|
|
69
|
+
* @param paramset The paramset to set tuning for.
|
|
70
|
+
* @param tuningParams The params used to tune this device.
|
|
71
|
+
* To get what parameters are expected, call GetSimpleTuningParamList.
|
|
72
|
+
* All values must be between 0 and 1.
|
|
73
|
+
* @param loadMass The mass loaded on the stage (excluding the mass of the carriage itself) in kg.
|
|
74
|
+
* @param carriageMass The mass of the carriage in kg. If this value is not set the default carriage mass is used.
|
|
75
|
+
*/
|
|
76
|
+
setSimpleTuning(paramset: ServoTuningParamset, tuningParams: ServoTuningParam[], loadMass: number, carriageMass?: number): Promise<void>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
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
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
+
}) : (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
o[k2] = m[k];
|
|
10
|
+
}));
|
|
11
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
12
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
13
|
+
}) : function(o, v) {
|
|
14
|
+
o["default"] = v;
|
|
15
|
+
});
|
|
16
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
17
|
+
if (mod && mod.__esModule) return mod;
|
|
18
|
+
var result = {};
|
|
19
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
20
|
+
__setModuleDefault(result, mod);
|
|
21
|
+
return result;
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.ServoTuner = void 0;
|
|
25
|
+
const gateway = __importStar(require("../gateway"));
|
|
26
|
+
const paramset_info_1 = require("./paramset_info");
|
|
27
|
+
const servo_tuning_param_1 = require("./servo_tuning_param");
|
|
28
|
+
const pid_tuning_1 = require("./pid_tuning");
|
|
29
|
+
const simple_tuning_param_1 = require("./simple_tuning_param");
|
|
30
|
+
/**
|
|
31
|
+
* Exposes the capabilities to inspect and edit an axis' servo tuning.
|
|
32
|
+
*/
|
|
33
|
+
class ServoTuner {
|
|
34
|
+
constructor(axis) {
|
|
35
|
+
this._axis = axis;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The axis that will be tuned.
|
|
39
|
+
*/
|
|
40
|
+
get axis() {
|
|
41
|
+
return this._axis;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get the paramset that this device uses by default when it starts up.
|
|
45
|
+
* @return The paramset used at when the device restarts.
|
|
46
|
+
*/
|
|
47
|
+
async getStartupParamset() {
|
|
48
|
+
const request = new gateway.GetStartupParamset();
|
|
49
|
+
request.setInterfaceId(this.axis.device.connection.interfaceId);
|
|
50
|
+
request.setDevice(this.axis.device.deviceAddress);
|
|
51
|
+
request.setAxis(this.axis.axisNumber);
|
|
52
|
+
const response = await gateway.callAsync('servotuning/get_startup_set', request, gateway.StartupParamset);
|
|
53
|
+
return response.getParamset();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Set the paramset that this device uses by default when it starts up.
|
|
57
|
+
* @param paramset The paramset to use at startup.
|
|
58
|
+
*/
|
|
59
|
+
async setStartupParamset(paramset) {
|
|
60
|
+
const request = new gateway.ServoTuningRequest();
|
|
61
|
+
request.setInterfaceId(this.axis.device.connection.interfaceId);
|
|
62
|
+
request.setDevice(this.axis.device.deviceAddress);
|
|
63
|
+
request.setAxis(this.axis.axisNumber);
|
|
64
|
+
request.setParamset(paramset);
|
|
65
|
+
await gateway.callAsync('servotuning/set_startup_set', request);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Load the values from one paramset into another.
|
|
69
|
+
* @param toParamset The paramset to load into.
|
|
70
|
+
* @param fromParamset The paramset to load from.
|
|
71
|
+
*/
|
|
72
|
+
async loadParamset(toParamset, fromParamset) {
|
|
73
|
+
const request = new gateway.LoadParamset();
|
|
74
|
+
request.setInterfaceId(this.axis.device.connection.interfaceId);
|
|
75
|
+
request.setDevice(this.axis.device.deviceAddress);
|
|
76
|
+
request.setAxis(this.axis.axisNumber);
|
|
77
|
+
request.setToParamset(toParamset);
|
|
78
|
+
request.setFromParamset(fromParamset);
|
|
79
|
+
await gateway.callAsync('servotuning/load_paramset', request);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get the full set of tuning parameters used by the firmware driving this axis.
|
|
83
|
+
* @param paramset The paramset to get tuning for.
|
|
84
|
+
* @return The raw representation of the current tuning.
|
|
85
|
+
*/
|
|
86
|
+
async getTuning(paramset) {
|
|
87
|
+
const request = new gateway.ServoTuningRequest();
|
|
88
|
+
request.setInterfaceId(this.axis.device.connection.interfaceId);
|
|
89
|
+
request.setDevice(this.axis.device.deviceAddress);
|
|
90
|
+
request.setAxis(this.axis.axisNumber);
|
|
91
|
+
request.setParamset(paramset);
|
|
92
|
+
const response = await gateway.callAsync('servotuning/get_raw', request, gateway.ParamsetInfo);
|
|
93
|
+
return paramset_info_1.ParamsetInfo.fromProtobuf(response.toObject());
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Set individual tuning parameters.
|
|
97
|
+
* Only use this method if you have a strong understanding of Zaber specific tuning parameters.
|
|
98
|
+
* @param paramset The paramset to set tuning of.
|
|
99
|
+
* @param tuningParams The params to set.
|
|
100
|
+
*/
|
|
101
|
+
async setTuning(paramset, tuningParams) {
|
|
102
|
+
const request = new gateway.SetServoTuningRequest();
|
|
103
|
+
request.setInterfaceId(this.axis.device.connection.interfaceId);
|
|
104
|
+
request.setDevice(this.axis.device.deviceAddress);
|
|
105
|
+
request.setAxis(this.axis.axisNumber);
|
|
106
|
+
request.setParamset(paramset);
|
|
107
|
+
request.setTuningParamsList(tuningParams.map(servo_tuning_param_1.ServoTuningParam.toProtobuf));
|
|
108
|
+
await gateway.callAsync('servotuning/set_raw', request);
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Sets the tuning of a paramset using the PID method.
|
|
112
|
+
* @param paramset The paramset to get tuning for.
|
|
113
|
+
* @param p The proportional gain. Must be in units of N/m.
|
|
114
|
+
* @param i The integral gain. Must be in units of N/m⋅s.
|
|
115
|
+
* @param d The derivative gain. Must be in units of N⋅s/m.
|
|
116
|
+
* @param fc The cutoff frequency. Must be in units of Hz.
|
|
117
|
+
* @return The PID representation of the current tuning after your changes have been applied.
|
|
118
|
+
*/
|
|
119
|
+
async setPidTuning(paramset, p, i, d, fc) {
|
|
120
|
+
const request = new gateway.SetServoTuningPIDRequest();
|
|
121
|
+
request.setInterfaceId(this.axis.device.connection.interfaceId);
|
|
122
|
+
request.setDevice(this.axis.device.deviceAddress);
|
|
123
|
+
request.setAxis(this.axis.axisNumber);
|
|
124
|
+
request.setParamset(paramset);
|
|
125
|
+
request.setP(p);
|
|
126
|
+
request.setI(i);
|
|
127
|
+
request.setD(d);
|
|
128
|
+
request.setFc(fc);
|
|
129
|
+
const response = await gateway.callAsync('servotuning/set_pid', request, gateway.PidTuning);
|
|
130
|
+
return pid_tuning_1.PidTuning.fromProtobuf(response.toObject());
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Gets the PID representation of this paramset's servo tuning.
|
|
134
|
+
* @param paramset The paramset to get tuning for.
|
|
135
|
+
* @return The PID representation of the current tuning.
|
|
136
|
+
*/
|
|
137
|
+
async getPidTuning(paramset) {
|
|
138
|
+
const request = new gateway.ServoTuningRequest();
|
|
139
|
+
request.setInterfaceId(this.axis.device.connection.interfaceId);
|
|
140
|
+
request.setDevice(this.axis.device.deviceAddress);
|
|
141
|
+
request.setAxis(this.axis.axisNumber);
|
|
142
|
+
request.setParamset(paramset);
|
|
143
|
+
const response = await gateway.callAsync('servotuning/get_pid', request, gateway.PidTuning);
|
|
144
|
+
return pid_tuning_1.PidTuning.fromProtobuf(response.toObject());
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Gets the parameters that are required to tune this device.
|
|
148
|
+
* @return The tuning parameters.
|
|
149
|
+
*/
|
|
150
|
+
async getSimpleTuningParamList() {
|
|
151
|
+
const request = new gateway.GetSimpleTuningParamListRequest();
|
|
152
|
+
request.setInterfaceId(this.axis.device.connection.interfaceId);
|
|
153
|
+
request.setDevice(this.axis.device.deviceAddress);
|
|
154
|
+
request.setAxis(this.axis.axisNumber);
|
|
155
|
+
const response = await gateway.callAsync('servotuning/get_simple_params', request, gateway.SimpleTuningParamList);
|
|
156
|
+
return response.toObject().paramsList.map(simple_tuning_param_1.SimpleTuningParam.fromProtobuf);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Set the tuning of this device using the simple input method.
|
|
160
|
+
* @param paramset The paramset to set tuning for.
|
|
161
|
+
* @param tuningParams The params used to tune this device.
|
|
162
|
+
* To get what parameters are expected, call GetSimpleTuningParamList.
|
|
163
|
+
* All values must be between 0 and 1.
|
|
164
|
+
* @param loadMass The mass loaded on the stage (excluding the mass of the carriage itself) in kg.
|
|
165
|
+
* @param carriageMass The mass of the carriage in kg. If this value is not set the default carriage mass is used.
|
|
166
|
+
*/
|
|
167
|
+
async setSimpleTuning(paramset, tuningParams, loadMass, carriageMass = -1.0) {
|
|
168
|
+
const request = new gateway.SetSimpleTuning();
|
|
169
|
+
request.setInterfaceId(this.axis.device.connection.interfaceId);
|
|
170
|
+
request.setDevice(this.axis.device.deviceAddress);
|
|
171
|
+
request.setAxis(this.axis.axisNumber);
|
|
172
|
+
request.setParamset(paramset);
|
|
173
|
+
request.setTuningParamsList(tuningParams.map(servo_tuning_param_1.ServoTuningParam.toProtobuf));
|
|
174
|
+
request.setLoadMass(loadMass);
|
|
175
|
+
request.setCarriageMass(carriageMass);
|
|
176
|
+
await gateway.callAsync('servotuning/set_simple_tuning', request);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
exports.ServoTuner = ServoTuner;
|
|
180
|
+
//# sourceMappingURL=servo_tuner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servo_tuner.js","sourceRoot":"","sources":["../../../src/ascii/servo_tuner.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AAEtC,mDAA+C;AAC/C,6DAAwD;AACxD,6CAAyC;AACzC,+DAA0D;AAE1D;;GAEG;AACH,MAAa,UAAU;IASrB,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAVD;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAOD;;;OAGG;IACI,KAAK,CAAC,kBAAkB;QAC7B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;QACjD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAChE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEtC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,6BAA6B,EAC7B,OAAO,EACP,OAAO,CAAC,eAAe,CAAC,CAAC;QAC3B,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,kBAAkB,CAC7B,QAA6B;QAE7B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;QACjD,OAAO,CAAC,cAA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CAAC;IACpE,CAAC;CACF;AA3MD,gCA2MC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Axis } from './axis';\nimport * as gateway from '../gateway';\nimport { ServoTuningParamset } from './servo_tuning_paramset';\nimport { ParamsetInfo } from './paramset_info';\nimport { ServoTuningParam } from './servo_tuning_param';\nimport { PidTuning } from './pid_tuning';\nimport { SimpleTuningParam } from './simple_tuning_param';\n\n/**\n * Exposes the capabilities to inspect and edit an axis' servo tuning.\n */\nexport class ServoTuner {\n /**\n * The axis that will be tuned.\n */\n public get axis(): Axis {\n return this._axis;\n }\n private _axis: Axis;\n\n constructor(axis: Axis) {\n this._axis = axis;\n }\n\n /**\n * Get the paramset that this device uses by default when it starts up.\n * @return The paramset used at when the device restarts.\n */\n public async getStartupParamset(): Promise<ServoTuningParamset> {\n const request = new gateway.GetStartupParamset();\n request.setInterfaceId(this.axis.device.connection.interfaceId);\n request.setDevice(this.axis.device.deviceAddress);\n request.setAxis(this.axis.axisNumber);\n\n const response = await gateway.callAsync<gateway.StartupParamset>(\n 'servotuning/get_startup_set',\n request,\n gateway.StartupParamset);\n return response.getParamset();\n }\n\n /**\n * Set the paramset that this device uses by default when it starts up.\n * @param paramset The paramset to use at startup.\n */\n public async setStartupParamset(\n paramset: ServoTuningParamset\n ): Promise<void> {\n const request = new gateway.ServoTuningRequest();\n request.setInterfaceId(this.axis.device.connection.interfaceId);\n request.setDevice(this.axis.device.deviceAddress);\n request.setAxis(this.axis.axisNumber);\n request.setParamset(paramset as any);\n\n await gateway.callAsync('servotuning/set_startup_set', request);\n }\n\n /**\n * Load the values from one paramset into another.\n * @param toParamset The paramset to load into.\n * @param fromParamset The paramset to load from.\n */\n public async loadParamset(\n toParamset: ServoTuningParamset,\n fromParamset: ServoTuningParamset\n ): Promise<void> {\n const request = new gateway.LoadParamset();\n request.setInterfaceId(this.axis.device.connection.interfaceId);\n request.setDevice(this.axis.device.deviceAddress);\n request.setAxis(this.axis.axisNumber);\n request.setToParamset(toParamset as any);\n request.setFromParamset(fromParamset as any);\n\n await gateway.callAsync('servotuning/load_paramset', request);\n }\n\n /**\n * Get the full set of tuning parameters used by the firmware driving this axis.\n * @param paramset The paramset to get tuning for.\n * @return The raw representation of the current tuning.\n */\n public async getTuning(\n paramset: ServoTuningParamset\n ): Promise<ParamsetInfo> {\n const request = new gateway.ServoTuningRequest();\n request.setInterfaceId(this.axis.device.connection.interfaceId);\n request.setDevice(this.axis.device.deviceAddress);\n request.setAxis(this.axis.axisNumber);\n request.setParamset(paramset as any);\n\n const response = await gateway.callAsync<gateway.ParamsetInfo>(\n 'servotuning/get_raw',\n request,\n gateway.ParamsetInfo);\n return ParamsetInfo.fromProtobuf(response.toObject());\n }\n\n /**\n * Set individual tuning parameters.\n * Only use this method if you have a strong understanding of Zaber specific tuning parameters.\n * @param paramset The paramset to set tuning of.\n * @param tuningParams The params to set.\n */\n public async setTuning(\n paramset: ServoTuningParamset,\n tuningParams: ServoTuningParam[]\n ): Promise<void> {\n const request = new gateway.SetServoTuningRequest();\n request.setInterfaceId(this.axis.device.connection.interfaceId);\n request.setDevice(this.axis.device.deviceAddress);\n request.setAxis(this.axis.axisNumber);\n request.setParamset(paramset as any);\n request.setTuningParamsList(tuningParams.map(ServoTuningParam.toProtobuf));\n\n await gateway.callAsync('servotuning/set_raw', request);\n }\n\n /**\n * Sets the tuning of a paramset using the PID method.\n * @param paramset The paramset to get tuning for.\n * @param p The proportional gain. Must be in units of N/m.\n * @param i The integral gain. Must be in units of N/m⋅s.\n * @param d The derivative gain. Must be in units of N⋅s/m.\n * @param fc The cutoff frequency. Must be in units of Hz.\n * @return The PID representation of the current tuning after your changes have been applied.\n */\n public async setPidTuning(\n paramset: ServoTuningParamset,\n p: number,\n i: number,\n d: number,\n fc: number\n ): Promise<PidTuning> {\n const request = new gateway.SetServoTuningPIDRequest();\n request.setInterfaceId(this.axis.device.connection.interfaceId);\n request.setDevice(this.axis.device.deviceAddress);\n request.setAxis(this.axis.axisNumber);\n request.setParamset(paramset as any);\n request.setP(p);\n request.setI(i);\n request.setD(d);\n request.setFc(fc);\n\n const response = await gateway.callAsync<gateway.PidTuning>(\n 'servotuning/set_pid',\n request,\n gateway.PidTuning);\n return PidTuning.fromProtobuf(response.toObject());\n }\n\n /**\n * Gets the PID representation of this paramset's servo tuning.\n * @param paramset The paramset to get tuning for.\n * @return The PID representation of the current tuning.\n */\n public async getPidTuning(\n paramset: ServoTuningParamset\n ): Promise<PidTuning> {\n const request = new gateway.ServoTuningRequest();\n request.setInterfaceId(this.axis.device.connection.interfaceId);\n request.setDevice(this.axis.device.deviceAddress);\n request.setAxis(this.axis.axisNumber);\n request.setParamset(paramset as any);\n\n const response = await gateway.callAsync<gateway.PidTuning>(\n 'servotuning/get_pid',\n request,\n gateway.PidTuning);\n return PidTuning.fromProtobuf(response.toObject());\n }\n\n /**\n * Gets the parameters that are required to tune this device.\n * @return The tuning parameters.\n */\n public async getSimpleTuningParamList(): Promise<SimpleTuningParam[]> {\n const request = new gateway.GetSimpleTuningParamListRequest();\n request.setInterfaceId(this.axis.device.connection.interfaceId);\n request.setDevice(this.axis.device.deviceAddress);\n request.setAxis(this.axis.axisNumber);\n\n const response = await gateway.callAsync<gateway.SimpleTuningParamList>(\n 'servotuning/get_simple_params',\n request,\n gateway.SimpleTuningParamList);\n return response.toObject().paramsList.map(SimpleTuningParam.fromProtobuf);\n }\n\n /**\n * Set the tuning of this device using the simple input method.\n * @param paramset The paramset to set tuning for.\n * @param tuningParams The params used to tune this device.\n * To get what parameters are expected, call GetSimpleTuningParamList.\n * All values must be between 0 and 1.\n * @param loadMass The mass loaded on the stage (excluding the mass of the carriage itself) in kg.\n * @param carriageMass The mass of the carriage in kg. If this value is not set the default carriage mass is used.\n */\n public async setSimpleTuning(\n paramset: ServoTuningParamset,\n tuningParams: ServoTuningParam[],\n loadMass: number,\n carriageMass: number = -1.0\n ): Promise<void> {\n const request = new gateway.SetSimpleTuning();\n request.setInterfaceId(this.axis.device.connection.interfaceId);\n request.setDevice(this.axis.device.deviceAddress);\n request.setAxis(this.axis.axisNumber);\n request.setParamset(paramset as any);\n request.setTuningParamsList(tuningParams.map(ServoTuningParam.toProtobuf));\n request.setLoadMass(loadMass);\n request.setCarriageMass(carriageMass);\n\n await gateway.callAsync('servotuning/set_simple_tuning', request);\n }\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A parameter used to establish the servo tuning of an axis.
|
|
3
|
+
*/
|
|
4
|
+
export interface ServoTuningParam {
|
|
5
|
+
/**
|
|
6
|
+
* The name of the parameter to set.
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* The value to use for this parameter.
|
|
11
|
+
*/
|
|
12
|
+
value: number;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace ServoTuningParam {
|
|
15
|
+
const __type = "ServoTuningParam";
|
|
16
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
+
}) : (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
o[k2] = m[k];
|
|
10
|
+
}));
|
|
11
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
12
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
13
|
+
}) : function(o, v) {
|
|
14
|
+
o["default"] = v;
|
|
15
|
+
});
|
|
16
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
17
|
+
if (mod && mod.__esModule) return mod;
|
|
18
|
+
var result = {};
|
|
19
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
20
|
+
__setModuleDefault(result, mod);
|
|
21
|
+
return result;
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.ServoTuningParam = void 0;
|
|
25
|
+
const gateway = __importStar(require("../gateway"));
|
|
26
|
+
var ServoTuningParam;
|
|
27
|
+
(function (ServoTuningParam) {
|
|
28
|
+
ServoTuningParam.__type = 'ServoTuningParam';
|
|
29
|
+
/** @internal */
|
|
30
|
+
function fromProtobuf(pbData) {
|
|
31
|
+
return {
|
|
32
|
+
name: pbData.name,
|
|
33
|
+
value: pbData.value,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
ServoTuningParam.fromProtobuf = fromProtobuf;
|
|
37
|
+
/** @internal */
|
|
38
|
+
function toProtobuf(source) {
|
|
39
|
+
const pbData = new gateway.ServoTuningParam();
|
|
40
|
+
if (source == null) {
|
|
41
|
+
return pbData;
|
|
42
|
+
}
|
|
43
|
+
pbData.setName(source.name);
|
|
44
|
+
pbData.setValue(source.value);
|
|
45
|
+
return pbData;
|
|
46
|
+
}
|
|
47
|
+
ServoTuningParam.toProtobuf = toProtobuf;
|
|
48
|
+
})(ServoTuningParam = exports.ServoTuningParam || (exports.ServoTuningParam = {}));
|
|
49
|
+
//# sourceMappingURL=servo_tuning_param.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servo_tuning_param.js","sourceRoot":"","sources":["../../../src/ascii/servo_tuning_param.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAkBtC,IAAiB,gBAAgB,CAqBhC;AArBD,WAAiB,gBAAgB;IAClB,uBAAM,GAAG,kBAAkB,CAAC;IAEzC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAyC;QACpE,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC;IACJ,CAAC;IALe,6BAAY,eAK3B,CAAA;IACD,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAA2C;QACpE,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC9C,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,OAAO,MAAM,CAAC;SACf;QAED,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5B,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9B,OAAO,MAAM,CAAC;IAChB,CAAC;IATe,2BAAU,aASzB,CAAA;AACH,CAAC,EArBgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAqBhC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * A parameter used to establish the servo tuning of an axis.\n */\nexport interface ServoTuningParam {\n /**\n * The name of the parameter to set.\n */\n name: string;\n\n /**\n * The value to use for this parameter.\n */\n value: number;\n\n}\n\nexport namespace ServoTuningParam {\n export const __type = 'ServoTuningParam';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.ServoTuningParam.AsObject): ServoTuningParam {\n return {\n name: pbData.name,\n value: pbData.value,\n };\n }\n /** @internal */\n export function toProtobuf(source: ServoTuningParam | null | undefined): gateway.ServoTuningParam {\n const pbData = new gateway.ServoTuningParam();\n if (source == null) {\n return pbData;\n }\n\n pbData.setName(source.name);\n pbData.setValue(source.value);\n return pbData;\n }\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Servo Tuning Parameter Set to target.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ServoTuningParamset {
|
|
5
|
+
LIVE = 0,
|
|
6
|
+
P_1 = 1,
|
|
7
|
+
P_2 = 2,
|
|
8
|
+
P_3 = 3,
|
|
9
|
+
P_4 = 4,
|
|
10
|
+
P_5 = 5,
|
|
11
|
+
P_6 = 6,
|
|
12
|
+
P_7 = 7,
|
|
13
|
+
P_8 = 8,
|
|
14
|
+
P_9 = 9,
|
|
15
|
+
STAGING = 10,
|
|
16
|
+
DEFAULT = 11
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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.ServoTuningParamset = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* Servo Tuning Parameter Set to target.
|
|
8
|
+
*/
|
|
9
|
+
var ServoTuningParamset;
|
|
10
|
+
(function (ServoTuningParamset) {
|
|
11
|
+
ServoTuningParamset[ServoTuningParamset["LIVE"] = 0] = "LIVE";
|
|
12
|
+
ServoTuningParamset[ServoTuningParamset["P_1"] = 1] = "P_1";
|
|
13
|
+
ServoTuningParamset[ServoTuningParamset["P_2"] = 2] = "P_2";
|
|
14
|
+
ServoTuningParamset[ServoTuningParamset["P_3"] = 3] = "P_3";
|
|
15
|
+
ServoTuningParamset[ServoTuningParamset["P_4"] = 4] = "P_4";
|
|
16
|
+
ServoTuningParamset[ServoTuningParamset["P_5"] = 5] = "P_5";
|
|
17
|
+
ServoTuningParamset[ServoTuningParamset["P_6"] = 6] = "P_6";
|
|
18
|
+
ServoTuningParamset[ServoTuningParamset["P_7"] = 7] = "P_7";
|
|
19
|
+
ServoTuningParamset[ServoTuningParamset["P_8"] = 8] = "P_8";
|
|
20
|
+
ServoTuningParamset[ServoTuningParamset["P_9"] = 9] = "P_9";
|
|
21
|
+
ServoTuningParamset[ServoTuningParamset["STAGING"] = 10] = "STAGING";
|
|
22
|
+
ServoTuningParamset[ServoTuningParamset["DEFAULT"] = 11] = "DEFAULT";
|
|
23
|
+
})(ServoTuningParamset = exports.ServoTuningParamset || (exports.ServoTuningParamset = {}));
|
|
24
|
+
//# sourceMappingURL=servo_tuning_paramset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servo_tuning_paramset.js","sourceRoot":"","sources":["../../../src/ascii/servo_tuning_paramset.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD;;GAEG;AACH,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC7B,6DAAQ,CAAA;IACR,2DAAO,CAAA;IACP,2DAAO,CAAA;IACP,2DAAO,CAAA;IACP,2DAAO,CAAA;IACP,2DAAO,CAAA;IACP,2DAAO,CAAA;IACP,2DAAO,CAAA;IACP,2DAAO,CAAA;IACP,2DAAO,CAAA;IACP,oEAAY,CAAA;IACZ,oEAAY,CAAA;AACd,CAAC,EAbW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAa9B","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 ServoTuningParamset {\n LIVE = 0,\n P_1 = 1,\n P_2 = 2,\n P_3 = 3,\n P_4 = 4,\n P_5 = 5,\n P_6 = 6,\n P_7 = 7,\n P_8 = 8,\n P_9 = 9,\n STAGING = 10,\n DEFAULT = 11,\n}\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Information about a parameter used for the simple tuning method.
|
|
3
|
+
*/
|
|
4
|
+
export interface SimpleTuningParam {
|
|
5
|
+
/**
|
|
6
|
+
* The name of the parameter.
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* The human readable description of the effect of a lower value on this setting.
|
|
11
|
+
*/
|
|
12
|
+
minLabel: string;
|
|
13
|
+
/**
|
|
14
|
+
* The human readable description of the effect of a higher value on this setting.
|
|
15
|
+
*/
|
|
16
|
+
maxLabel: string;
|
|
17
|
+
/**
|
|
18
|
+
* How this parameter will be parsed by the tuner.
|
|
19
|
+
*/
|
|
20
|
+
dataType: string;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace SimpleTuningParam {
|
|
23
|
+
const __type = "SimpleTuningParam";
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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.SimpleTuningParam = void 0;
|
|
6
|
+
var SimpleTuningParam;
|
|
7
|
+
(function (SimpleTuningParam) {
|
|
8
|
+
SimpleTuningParam.__type = 'SimpleTuningParam';
|
|
9
|
+
/** @internal */
|
|
10
|
+
function fromProtobuf(pbData) {
|
|
11
|
+
return {
|
|
12
|
+
name: pbData.name,
|
|
13
|
+
minLabel: pbData.minLabel,
|
|
14
|
+
maxLabel: pbData.maxLabel,
|
|
15
|
+
dataType: pbData.dataType,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
SimpleTuningParam.fromProtobuf = fromProtobuf;
|
|
19
|
+
})(SimpleTuningParam = exports.SimpleTuningParam || (exports.SimpleTuningParam = {}));
|
|
20
|
+
//# sourceMappingURL=simple_tuning_param.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple_tuning_param.js","sourceRoot":"","sources":["../../../src/ascii/simple_tuning_param.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AA8BtD,IAAiB,iBAAiB,CAYjC;AAZD,WAAiB,iBAAiB;IACnB,wBAAM,GAAG,mBAAmB,CAAC;IAE1C,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAA0C;QACrE,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC1B,CAAC;IACJ,CAAC;IAPe,8BAAY,eAO3B,CAAA;AACH,CAAC,EAZgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAYjC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\n\n/**\n * Information about a parameter used for the simple tuning method.\n */\nexport interface SimpleTuningParam {\n /**\n * The name of the parameter.\n */\n name: string;\n\n /**\n * The human readable description of the effect of a lower value on this setting.\n */\n minLabel: string;\n\n /**\n * The human readable description of the effect of a higher value on this setting.\n */\n maxLabel: string;\n\n /**\n * How this parameter will be parsed by the tuner.\n */\n dataType: string;\n\n}\n\nexport namespace SimpleTuningParam {\n export const __type = 'SimpleTuningParam';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.SimpleTuningParam.AsObject): SimpleTuningParam {\n return {\n name: pbData.name,\n minLabel: pbData.minLabel,\n maxLabel: pbData.maxLabel,\n dataType: pbData.dataType,\n };\n }\n}\n"]}
|