@zaber/motion 5.1.3 → 5.1.4
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 +1 -0
- package/dist/lib/ascii/index.js +4 -2
- package/dist/lib/ascii/index.js.map +1 -1
- package/dist/lib/ascii/servo_tuner.d.ts +10 -1
- package/dist/lib/ascii/servo_tuner.js +18 -1
- package/dist/lib/ascii/servo_tuner.js.map +1 -1
- package/dist/lib/ascii/simple_tuning.d.ts +26 -0
- package/dist/lib/ascii/simple_tuning.js +21 -0
- package/dist/lib/ascii/simple_tuning.js.map +1 -0
- package/dist/lib/ascii_ns.d.ts +2 -0
- package/dist/lib/ascii_ns.js +1 -0
- package/dist/lib/ascii_ns.js.map +1 -1
- package/dist/lib/protobufs/main_pb.d.ts +38 -0
- package/dist/lib/protobufs/main_pb.js +302 -0
- package/dist/lib/protobufs/main_pb.js.map +1 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -42,6 +42,7 @@ export { ServoTuningParamset } from './servo_tuning_paramset';
|
|
|
42
42
|
export { ParamsetInfo } from './paramset_info';
|
|
43
43
|
export { PidTuning } from './pid_tuning';
|
|
44
44
|
export { ServoTuningParam } from './servo_tuning_param';
|
|
45
|
+
export { SimpleTuning } from './simple_tuning';
|
|
45
46
|
export { SimpleTuningParamDefinition } from './simple_tuning_param_definition';
|
|
46
47
|
export { AxisStorage, DeviceStorage } from './storage';
|
|
47
48
|
export { ConversionFactor } from './conversion_factor';
|
package/dist/lib/ascii/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.DigitalOutputAction = exports.Streams = exports.TriggerOperation = exports.TriggerCondition = exports.TriggerAction = exports.TriggerEnabledState = exports.TriggerState = exports.Trigger = exports.Triggers = exports.AxisGroup = exports.PvtAxisType = exports.PvtAxisDefinition = void 0;
|
|
3
|
+
exports.CanSetStateAxisResponse = exports.ConversionFactor = exports.DeviceStorage = exports.AxisStorage = exports.SimpleTuningParamDefinition = exports.SimpleTuning = exports.ServoTuningParam = exports.PidTuning = exports.ParamsetInfo = exports.ServoTuningParamset = exports.ServoTuner = exports.Transport = exports.PvtMode = exports.PvtBuffer = exports.PvtSequence = exports.Pvt = exports.StreamAxisDefinition = exports.StreamAxisType = exports.StreamMode = exports.StreamBuffer = exports.Stream = exports.OscilloscopeDataSource = exports.OscilloscopeData = exports.OscilloscopeCaptureProperties = exports.Oscilloscope = exports.LockstepAxes = exports.Lockstep = exports.Warnings = exports.WarningFlags = exports.UnknownResponseEvent = exports.SettingConstants = exports.Response = exports.MessageType = exports.IoPortType = exports.DeviceIOInfo = exports.DeviceIO = exports.Device = exports.GetAxisSettingResult = exports.GetSettingResult = exports.GetAxisSetting = exports.GetSetting = exports.DeviceSettings = exports.DeviceIdentity = exports.Connection = exports.Axis = exports.AxisType = exports.AxisSettings = exports.AxisIdentity = exports.AllAxes = exports.AlertEvent = void 0;
|
|
4
|
+
exports.DigitalOutputAction = exports.Streams = exports.TriggerOperation = exports.TriggerCondition = exports.TriggerAction = exports.TriggerEnabledState = exports.TriggerState = exports.Trigger = exports.Triggers = exports.AxisGroup = exports.PvtAxisType = exports.PvtAxisDefinition = exports.CanSetStateDeviceResponse = void 0;
|
|
5
5
|
var alert_event_1 = require("./alert_event");
|
|
6
6
|
Object.defineProperty(exports, "AlertEvent", { enumerable: true, get: function () { return alert_event_1.AlertEvent; } });
|
|
7
7
|
var all_axes_1 = require("./all_axes");
|
|
@@ -90,6 +90,8 @@ var pid_tuning_1 = require("./pid_tuning");
|
|
|
90
90
|
Object.defineProperty(exports, "PidTuning", { enumerable: true, get: function () { return pid_tuning_1.PidTuning; } });
|
|
91
91
|
var servo_tuning_param_1 = require("./servo_tuning_param");
|
|
92
92
|
Object.defineProperty(exports, "ServoTuningParam", { enumerable: true, get: function () { return servo_tuning_param_1.ServoTuningParam; } });
|
|
93
|
+
var simple_tuning_1 = require("./simple_tuning");
|
|
94
|
+
Object.defineProperty(exports, "SimpleTuning", { enumerable: true, get: function () { return simple_tuning_1.SimpleTuning; } });
|
|
93
95
|
var simple_tuning_param_definition_1 = require("./simple_tuning_param_definition");
|
|
94
96
|
Object.defineProperty(exports, "SimpleTuningParamDefinition", { enumerable: true, get: function () { return simple_tuning_param_definition_1.SimpleTuningParamDefinition; } });
|
|
95
97
|
var storage_1 = require("./storage");
|
|
@@ -1 +1 @@
|
|
|
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,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,uDAAoD;AAA3C,kHAAA,cAAc,OAAA;AACvB,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,yCAAuC;AAA9B,qGAAA,QAAQ,OAAA;AACjB,mDAAgD;AAAvC,8GAAA,YAAY,OAAA;AACrB,+CAA4C;AAAnC,0GAAA,UAAU,OAAA;AACnB,+CAA6C;AAApC,2GAAA,WAAW,OAAA;AACpB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;A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,OAAA;AAChC,iFAA4E;AAAnE,0IAAA,yBAAyB,OAAA;AAClC,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA;AAC1B,iDAA8C;AAArC,4GAAA,WAAW,OAAA;AACpB,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,iEAA8D;AAArD,4HAAA,mBAAmB,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 { GetSetting } from './get_setting';\nexport { GetAxisSetting } from './get_axis_setting';\nexport { GetSettingResult } from './get_setting_result';\nexport { GetAxisSettingResult } from './get_axis_setting_result';\nexport { Device } from './device';\nexport { DeviceIO } from './device_io';\nexport { DeviceIOInfo } from './device_io_info';\nexport { IoPortType } from './io_port_type';\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 { OscilloscopeCaptureProperties } from './oscilloscope_capture_properties';\nexport { OscilloscopeData } from './oscilloscope_data';\nexport { OscilloscopeDataSource } from './oscilloscope_data_source';\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 { Pvt } from './pvt';\nexport { PvtSequence } from './pvt_sequence';\nexport { PvtBuffer } from './pvt_buffer';\nexport { PvtMode } from './pvt_mode';\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 { SimpleTuningParamDefinition } from './simple_tuning_param_definition';\nexport { AxisStorage, DeviceStorage } from './storage';\nexport { ConversionFactor } from './conversion_factor';\nexport { CanSetStateAxisResponse } from './can_set_state_axis_response';\nexport { CanSetStateDeviceResponse } from './can_set_state_device_response';\nexport { PvtAxisDefinition } from './pvt_axis_definition';\nexport { PvtAxisType } from './pvt_axis_type';\nexport { AxisGroup } from './axis_group';\nexport { Triggers } from './triggers';\nexport { Trigger } from './trigger';\nexport { TriggerState } from './trigger_state';\nexport { TriggerEnabledState } from './trigger_enabled_state';\nexport { TriggerAction } from './trigger_action';\nexport { TriggerCondition } from './trigger_condition';\nexport { TriggerOperation } from './trigger_operation';\nexport { Streams } from './streams';\nexport { DigitalOutputAction } from './digital_output_action';\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,2CA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W,OAAA;AACpB,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,uCAAqC;AAA5B,mGAAA,OAAO,OAAA;AAChB,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,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,qCAAuD;AAA9C,sGAAA,WAAW,OAAA;AAAE,wGAAA,aAAa,OAAA;AACnC,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,6EAAwE;AAA/D,sIAAA,uBAAuB,OAAA;AAChC,iFAA4E;AAAnE,0IAAA,yBAAyB,OAAA;AAClC,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA;AAC1B,iDAA8C;AAArC,4GAAA,WAAW,OAAA;AACpB,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA;AACzB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,iEAA8D;AAArD,4HAAA,mBAAmB,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 { GetSetting } from './get_setting';\nexport { GetAxisSetting } from './get_axis_setting';\nexport { GetSettingResult } from './get_setting_result';\nexport { GetAxisSettingResult } from './get_axis_setting_result';\nexport { Device } from './device';\nexport { DeviceIO } from './device_io';\nexport { DeviceIOInfo } from './device_io_info';\nexport { IoPortType } from './io_port_type';\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 { OscilloscopeCaptureProperties } from './oscilloscope_capture_properties';\nexport { OscilloscopeData } from './oscilloscope_data';\nexport { OscilloscopeDataSource } from './oscilloscope_data_source';\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 { Pvt } from './pvt';\nexport { PvtSequence } from './pvt_sequence';\nexport { PvtBuffer } from './pvt_buffer';\nexport { PvtMode } from './pvt_mode';\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 { SimpleTuning } from './simple_tuning';\nexport { SimpleTuningParamDefinition } from './simple_tuning_param_definition';\nexport { AxisStorage, DeviceStorage } from './storage';\nexport { ConversionFactor } from './conversion_factor';\nexport { CanSetStateAxisResponse } from './can_set_state_axis_response';\nexport { CanSetStateDeviceResponse } from './can_set_state_device_response';\nexport { PvtAxisDefinition } from './pvt_axis_definition';\nexport { PvtAxisType } from './pvt_axis_type';\nexport { AxisGroup } from './axis_group';\nexport { Triggers } from './triggers';\nexport { Trigger } from './trigger';\nexport { TriggerState } from './trigger_state';\nexport { TriggerEnabledState } from './trigger_enabled_state';\nexport { TriggerAction } from './trigger_action';\nexport { TriggerCondition } from './trigger_condition';\nexport { TriggerOperation } from './trigger_operation';\nexport { Streams } from './streams';\nexport { DigitalOutputAction } from './digital_output_action';\n"]}
|
|
@@ -4,6 +4,7 @@ import { ParamsetInfo } from './paramset_info';
|
|
|
4
4
|
import { ServoTuningParam } from './servo_tuning_param';
|
|
5
5
|
import { PidTuning } from './pid_tuning';
|
|
6
6
|
import { SimpleTuningParamDefinition } from './simple_tuning_param_definition';
|
|
7
|
+
import { SimpleTuning } from './simple_tuning';
|
|
7
8
|
/**
|
|
8
9
|
* Exposes the capabilities to inspect and edit an axis' servo tuning.
|
|
9
10
|
* Requires at least Firmware 6.25 or 7.00.
|
|
@@ -20,7 +21,7 @@ export declare class ServoTuner {
|
|
|
20
21
|
constructor(axis: Axis);
|
|
21
22
|
/**
|
|
22
23
|
* Get the paramset that this device uses by default when it starts up.
|
|
23
|
-
* @returns The paramset used
|
|
24
|
+
* @returns The paramset used when the device restarts.
|
|
24
25
|
*/
|
|
25
26
|
getStartupParamset(): Promise<ServoTuningParamset>;
|
|
26
27
|
/**
|
|
@@ -79,6 +80,14 @@ export declare class ServoTuner {
|
|
|
79
80
|
*/
|
|
80
81
|
setSimpleTuning(paramset: ServoTuningParamset, tuningParams: ServoTuningParam[], loadMass: number, options?: ServoTuner.SetSimpleTuningOptions): Promise<void>;
|
|
81
82
|
/**
|
|
83
|
+
* Get the simple tuning parameters for this device.
|
|
84
|
+
* @param paramset The paramset to get tuning for.
|
|
85
|
+
* @returns The simple tuning parameters.
|
|
86
|
+
*/
|
|
87
|
+
getSimpleTuning(paramset: ServoTuningParamset): Promise<SimpleTuning>;
|
|
88
|
+
/**
|
|
89
|
+
* @deprecated Use GetSimpleTuning instead.
|
|
90
|
+
*
|
|
82
91
|
* Checks if the provided simple tuning is being stored by this paramset.
|
|
83
92
|
* @param paramset The paramset to set tuning for.
|
|
84
93
|
* @param tuningParams The params used to tune this device.
|
|
@@ -31,6 +31,7 @@ const paramset_info_1 = require("./paramset_info");
|
|
|
31
31
|
const servo_tuning_param_1 = require("./servo_tuning_param");
|
|
32
32
|
const pid_tuning_1 = require("./pid_tuning");
|
|
33
33
|
const simple_tuning_param_definition_1 = require("./simple_tuning_param_definition");
|
|
34
|
+
const simple_tuning_1 = require("./simple_tuning");
|
|
34
35
|
/**
|
|
35
36
|
* Exposes the capabilities to inspect and edit an axis' servo tuning.
|
|
36
37
|
* Requires at least Firmware 6.25 or 7.00.
|
|
@@ -50,7 +51,7 @@ class ServoTuner {
|
|
|
50
51
|
}
|
|
51
52
|
/**
|
|
52
53
|
* Get the paramset that this device uses by default when it starts up.
|
|
53
|
-
* @returns The paramset used
|
|
54
|
+
* @returns The paramset used when the device restarts.
|
|
54
55
|
*/
|
|
55
56
|
async getStartupParamset() {
|
|
56
57
|
const request = new gateway.AxisEmptyRequest();
|
|
@@ -185,6 +186,22 @@ class ServoTuner {
|
|
|
185
186
|
await gateway.callAsync('servotuning/set_simple_tuning', request);
|
|
186
187
|
}
|
|
187
188
|
/**
|
|
189
|
+
* Get the simple tuning parameters for this device.
|
|
190
|
+
* @param paramset The paramset to get tuning for.
|
|
191
|
+
* @returns The simple tuning parameters.
|
|
192
|
+
*/
|
|
193
|
+
async getSimpleTuning(paramset) {
|
|
194
|
+
const request = new gateway.ServoTuningRequest();
|
|
195
|
+
request.setInterfaceId(this.axis.device.connection.interfaceId);
|
|
196
|
+
request.setDevice(this.axis.device.deviceAddress);
|
|
197
|
+
request.setAxis(this.axis.axisNumber);
|
|
198
|
+
request.setParamset(paramset);
|
|
199
|
+
const response = await gateway.callAsync('servotuning/get_simple_tuning', request, gateway.SimpleTuning);
|
|
200
|
+
return simple_tuning_1.SimpleTuning.fromProtobuf(response.toObject());
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @deprecated Use GetSimpleTuning instead.
|
|
204
|
+
*
|
|
188
205
|
* Checks if the provided simple tuning is being stored by this paramset.
|
|
189
206
|
* @param paramset The paramset to set tuning for.
|
|
190
207
|
* @param tuningParams The params used to tune this device.
|
|
@@ -1 +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,qFAA+E;AAE/E;;;GAGG;AACH,MAAa,UAAU;IACrB;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAGD;;OAEG;IACH,YAAY,IAAU;QACpB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACpB,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,kBAAkB;QAC7B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QAC/C,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,WAAW,CAAC,CAAC;QACvB,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,kBAAkB,CAC7B,QAA6B;QAE7B,MAAM,OAAO,GAAG,IAAI,OAAO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,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC9B,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;QAEtC,MAAM,OAAO,CAAC,SAAS,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;OASG;IACI,KAAK,CAAC,mBAAmB,CAC9B,QAA6B,EAC7B,YAAgC,EAChC,QAAgB,EAChB,UAAiD,EAAE;QAEnD,MAAM,EACJ,YAAY,GAAG,CAAC,GAAG,GACpB,GAAG,OAAO,CAAC;QACZ,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;QAC9C,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;QACtC,OAAO,CAAC,WAAW,CAAC,QAAe,CAAC,CAAC;QACrC,OAAO,CAAC,mBAAmB,CAAC,YAAY,CAAC,GAAG,CAAC,qCAAgB,CAAC,UAAU,CAAC,CAAC,CAAC;QAC3E,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC9B,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;QAEtC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,oCAAoC,EACpC,OAAO,EACP,OAAO,CAAC,YAAY,CAAC,CAAC;QACxB,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;CACF;AApPD,gCAoPC","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 { SimpleTuningParamDefinition } from './simple_tuning_param_definition';\n\n/**\n * Exposes the capabilities to inspect and edit an axis' servo tuning.\n * Requires at least Firmware 6.25 or 7.00.\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 /**\n * Creates instance of ServoTuner for the given 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 * @returns The paramset used at when the device restarts.\n */\n public async getStartupParamset(): Promise<ServoTuningParamset> {\n const request = new gateway.AxisEmptyRequest();\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.IntResponse>(\n 'servotuning/get_startup_set',\n request,\n gateway.IntResponse);\n return response.getValue();\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 * @returns 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 * @returns 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 * @returns 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 * @returns The tuning parameters.\n */\n public async getSimpleTuningParamDefinitions(): Promise<SimpleTuningParamDefinition[]> {\n const request = new gateway.AxisEmptyRequest();\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.GetSimpleTuningParamDefinitionResponse>(\n 'servotuning/get_simple_params_definition',\n request,\n gateway.GetSimpleTuningParamDefinitionResponse);\n return response.getParamsList().map(a => SimpleTuningParamDefinition.fromProtobuf(a.toObject()));\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 [options.carriageMass=-1.0] 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 options: ServoTuner.SetSimpleTuningOptions = {}\n ): Promise<void> {\n const {\n carriageMass = -1.0,\n } = options;\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 /**\n * Checks if the provided simple tuning is being stored by this paramset.\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 [options.carriageMass=-1.0] The mass of the carriage in kg. If this value is not set the default carriage mass is used.\n * @returns True if the provided simple tuning is currently stored in this paramset.\n */\n public async isUsingSimpleTuning(\n paramset: ServoTuningParamset,\n tuningParams: ServoTuningParam[],\n loadMass: number,\n options: ServoTuner.IsUsingSimpleTuningOptions = {}\n ): Promise<boolean> {\n const {\n carriageMass = -1.0,\n } = options;\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 const response = await gateway.callAsync<gateway.BoolResponse>(\n 'servotuning/is_using_simple_tuning',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n}\n\nnamespace ServoTuner {\n export interface SetSimpleTuningOptions {\n carriageMass?: number;\n }\n export interface IsUsingSimpleTuningOptions {\n carriageMass?: number;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"servo_tuner.js","sourceRoot":"","sources":["../../../src/ascii/servo_tuner.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtD,oD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AS,CACtC,oCAAoC,EACpC,OAAO,EACP,OAAO,CAAC,YAAY,CAAC,CAAC;QACxB,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;CACF;AA3QD,gCA2QC","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 { SimpleTuningParamDefinition } from './simple_tuning_param_definition';\nimport { SimpleTuning } from './simple_tuning';\n\n/**\n * Exposes the capabilities to inspect and edit an axis' servo tuning.\n * Requires at least Firmware 6.25 or 7.00.\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 /**\n * Creates instance of ServoTuner for the given 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 * @returns The paramset used when the device restarts.\n */\n public async getStartupParamset(): Promise<ServoTuningParamset> {\n const request = new gateway.AxisEmptyRequest();\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.IntResponse>(\n 'servotuning/get_startup_set',\n request,\n gateway.IntResponse);\n return response.getValue();\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 * @returns 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 * @returns 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 * @returns 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 * @returns The tuning parameters.\n */\n public async getSimpleTuningParamDefinitions(): Promise<SimpleTuningParamDefinition[]> {\n const request = new gateway.AxisEmptyRequest();\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.GetSimpleTuningParamDefinitionResponse>(\n 'servotuning/get_simple_params_definition',\n request,\n gateway.GetSimpleTuningParamDefinitionResponse);\n return response.getParamsList().map(a => SimpleTuningParamDefinition.fromProtobuf(a.toObject()));\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 [options.carriageMass=-1.0] 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 options: ServoTuner.SetSimpleTuningOptions = {}\n ): Promise<void> {\n const {\n carriageMass = -1.0,\n } = options;\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 /**\n * Get the simple tuning parameters for this device.\n * @param paramset The paramset to get tuning for.\n * @returns The simple tuning parameters.\n */\n public async getSimpleTuning(\n paramset: ServoTuningParamset\n ): Promise<SimpleTuning> {\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.SimpleTuning>(\n 'servotuning/get_simple_tuning',\n request,\n gateway.SimpleTuning);\n return SimpleTuning.fromProtobuf(response.toObject());\n }\n\n /**\n * @deprecated Use GetSimpleTuning instead.\n *\n * Checks if the provided simple tuning is being stored by this paramset.\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 [options.carriageMass=-1.0] The mass of the carriage in kg. If this value is not set the default carriage mass is used.\n * @returns True if the provided simple tuning is currently stored in this paramset.\n */\n public async isUsingSimpleTuning(\n paramset: ServoTuningParamset,\n tuningParams: ServoTuningParam[],\n loadMass: number,\n options: ServoTuner.IsUsingSimpleTuningOptions = {}\n ): Promise<boolean> {\n const {\n carriageMass = -1.0,\n } = options;\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 const response = await gateway.callAsync<gateway.BoolResponse>(\n 'servotuning/is_using_simple_tuning',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n}\n\nnamespace ServoTuner {\n export interface SetSimpleTuningOptions {\n carriageMass?: number;\n }\n export interface IsUsingSimpleTuningOptions {\n carriageMass?: number;\n }\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ServoTuningParam } from './servo_tuning_param';
|
|
2
|
+
/**
|
|
3
|
+
* The masses and parameters last used by simple tuning.
|
|
4
|
+
*/
|
|
5
|
+
export interface SimpleTuning {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the tuning returned is currently in use by this paramset,
|
|
8
|
+
* or if it has been overwritten by a later change.
|
|
9
|
+
*/
|
|
10
|
+
isUsed: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The mass of the carriage in kg.
|
|
13
|
+
*/
|
|
14
|
+
carriageMass?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The mass of the load in kg, excluding the mass of the carriage.
|
|
17
|
+
*/
|
|
18
|
+
loadMass: number;
|
|
19
|
+
/**
|
|
20
|
+
* The parameters used by simple tuning.
|
|
21
|
+
*/
|
|
22
|
+
tuningParams: ServoTuningParam[];
|
|
23
|
+
}
|
|
24
|
+
export declare namespace SimpleTuning {
|
|
25
|
+
const __type = "SimpleTuning";
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.SimpleTuning = void 0;
|
|
6
|
+
const servo_tuning_param_1 = require("./servo_tuning_param");
|
|
7
|
+
var SimpleTuning;
|
|
8
|
+
(function (SimpleTuning) {
|
|
9
|
+
SimpleTuning.__type = 'SimpleTuning';
|
|
10
|
+
/** @internal */
|
|
11
|
+
function fromProtobuf(pbData) {
|
|
12
|
+
return {
|
|
13
|
+
isUsed: pbData.isUsed,
|
|
14
|
+
carriageMass: pbData.hasCarriageMass ? pbData.carriageMass : undefined,
|
|
15
|
+
loadMass: pbData.loadMass,
|
|
16
|
+
tuningParams: pbData.tuningParamsList.map(item => servo_tuning_param_1.ServoTuningParam.fromProtobuf(item)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
SimpleTuning.fromProtobuf = fromProtobuf;
|
|
20
|
+
})(SimpleTuning = exports.SimpleTuning || (exports.SimpleTuning = {}));
|
|
21
|
+
//# sourceMappingURL=simple_tuning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple_tuning.js","sourceRoot":"","sources":["../../../src/ascii/simple_tuning.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAGtD,6DAAwD;AA6BxD,IAAiB,YAAY,CAY5B;AAZD,WAAiB,YAAY;IACd,mBAAM,GAAG,cAAc,CAAC;IAErC,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAqC;QAChE,OAAO;YACL,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,YAAY,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS;YACtE,QAAQ,EAAE,MAAM,CAAC,QAAQ;YACzB,YAAY,EAAE,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,qCAAgB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;SACvF,CAAC;IACJ,CAAC;IAPe,yBAAY,eAO3B,CAAA;AACH,CAAC,EAZgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAY5B","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 masses and parameters last used by simple tuning.\n */\nexport interface SimpleTuning {\n /**\n * Whether the tuning returned is currently in use by this paramset,\n * or if it has been overwritten by a later change.\n */\n isUsed: boolean;\n\n /**\n * The mass of the carriage in kg.\n */\n carriageMass?: number;\n\n /**\n * The mass of the load in kg, excluding the mass of the carriage.\n */\n loadMass: number;\n\n /**\n * The parameters used by simple tuning.\n */\n tuningParams: ServoTuningParam[];\n\n}\n\nexport namespace SimpleTuning {\n export const __type = 'SimpleTuning';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.SimpleTuning.AsObject): SimpleTuning {\n return {\n isUsed: pbData.isUsed,\n carriageMass: pbData.hasCarriageMass ? pbData.carriageMass : undefined,\n loadMass: pbData.loadMass,\n tuningParams: pbData.tuningParamsList.map(item => ServoTuningParam.fromProtobuf(item)),\n };\n }\n}\n"]}
|
package/dist/lib/ascii_ns.d.ts
CHANGED
|
@@ -82,6 +82,8 @@ export declare namespace ascii {
|
|
|
82
82
|
type ServoTuningParam = asciiImport.ServoTuningParam;
|
|
83
83
|
const SimpleTuningParamDefinition: typeof asciiImport.SimpleTuningParamDefinition;
|
|
84
84
|
type SimpleTuningParamDefinition = asciiImport.SimpleTuningParamDefinition;
|
|
85
|
+
const SimpleTuning: typeof asciiImport.SimpleTuning;
|
|
86
|
+
type SimpleTuning = asciiImport.SimpleTuning;
|
|
85
87
|
const AxisStorage: typeof asciiImport.AxisStorage;
|
|
86
88
|
type AxisStorage = asciiImport.AxisStorage;
|
|
87
89
|
const DeviceStorage: typeof asciiImport.DeviceStorage;
|
package/dist/lib/ascii_ns.js
CHANGED
|
@@ -68,6 +68,7 @@ var ascii;
|
|
|
68
68
|
ascii.PidTuning = asciiImport.PidTuning;
|
|
69
69
|
ascii.ServoTuningParam = asciiImport.ServoTuningParam;
|
|
70
70
|
ascii.SimpleTuningParamDefinition = asciiImport.SimpleTuningParamDefinition;
|
|
71
|
+
ascii.SimpleTuning = asciiImport.SimpleTuning;
|
|
71
72
|
ascii.AxisStorage = asciiImport.AxisStorage;
|
|
72
73
|
ascii.DeviceStorage = asciiImport.DeviceStorage;
|
|
73
74
|
ascii.ConversionFactor = asciiImport.ConversionFactor;
|
package/dist/lib/ascii_ns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ascii_ns.js","sourceRoot":"","sources":["../../src/ascii_ns.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAuC;AAEvC,IAAiB,KAAK,CA6HrB;AA7HD,WAAiB,KAAK;IACP,gBAAU,GAAG,WAAW,CAAC,UAAU,CAAC;IAEpC,aAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IAE9B,UAAI,GAAG,WAAW,CAAC,IAAI,CAAC;IAExB,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,cAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAEhC,gBAAU,GAAG,WAAW,CAAC,UAAU,CAAC;IAEpC,YAAM,GAAG,WAAW,CAAC,MAAM,CAAC;IAE5B,cAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAEhC,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,oBAAc,GAAG,WAAW,CAAC,cAAc,CAAC;IAE5C,oBAAc,GAAG,WAAW,CAAC,cAAc,CAAC;IAE5C,gBAAU,GAAG,WAAW,CAAC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,CAAC;IAEhD,iCAA2B,GAAG,WAAW,CAAC,2BAA2B,CAAC;IAEtE,iBAAW,GAAG,WAAW,CAAC,WAAW,CAAC;IAEtC,mBAAa,GAAG,WAAW,CAAC,aAAa,CAAC;IAE1C,sBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;IAEhD,6BAAuB,GAAG,WAAW,CAAC,uBAAuB,CAAC;IAE9D,+BAAyB,GAAG,WAAW,CAAC,yBAAyB,CAAC;IAElE,SAAG,GAAG,WAAW,CAAC,GAAG,CAAC;IAEtB,iBAAW,GAAG,WAAW,CAAC,WAAW,CAAC;IAEtC,eAAS,GAAG,WAAW,CAAC,SAAS,CAAC;IAElC,aAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IAE9B,uBAAiB,GAAG,WAAW,CAAC,iBAAiB,CAAC;IAElD,iBAAW,GAAG,WAAW,CAAC,WAAW,CAAC;IAEtC,eAAS,GAAG,WAAW,CAAC,SAAS,CAAC;IAElC,aAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IAE9B,cAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAEhC,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,yBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC;IAEtD,mBAAa,GAAG,WAAW,CAAC,aAAa,CAAC;IAE1C,sBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;IAEhD,sBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;IAEhD,aAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IAE9B,yBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC;AAErE,CAAC,EA7HgB,KAAK,GAAL,aAAK,KAAL,aAAK,QA6HrB","sourcesContent":["import * as asciiImport from './ascii';\n\nexport namespace ascii {\n export const AlertEvent = asciiImport.AlertEvent;\n export type AlertEvent = asciiImport.AlertEvent;\n export const AllAxes = asciiImport.AllAxes;\n export type AllAxes = asciiImport.AllAxes;\n export const Axis = asciiImport.Axis;\n export type Axis = asciiImport.Axis;\n export const AxisIdentity = asciiImport.AxisIdentity;\n export type AxisIdentity = asciiImport.AxisIdentity;\n export const AxisSettings = asciiImport.AxisSettings;\n export type AxisSettings = asciiImport.AxisSettings;\n export const AxisType = asciiImport.AxisType;\n export type AxisType = asciiImport.AxisType;\n export const Connection = asciiImport.Connection;\n export type Connection = asciiImport.Connection;\n export const Device = asciiImport.Device;\n export type Device = asciiImport.Device;\n export const DeviceIO = asciiImport.DeviceIO;\n export type DeviceIO = asciiImport.DeviceIO;\n export const DeviceIOInfo = asciiImport.DeviceIOInfo;\n export type DeviceIOInfo = asciiImport.DeviceIOInfo;\n export const DeviceIdentity = asciiImport.DeviceIdentity;\n export type DeviceIdentity = asciiImport.DeviceIdentity;\n export const DeviceSettings = asciiImport.DeviceSettings;\n export type DeviceSettings = asciiImport.DeviceSettings;\n export const GetSetting = asciiImport.GetSetting;\n export type GetSetting = asciiImport.GetSetting;\n export const GetAxisSetting = asciiImport.GetAxisSetting;\n export type GetAxisSetting = asciiImport.GetAxisSetting;\n export const GetSettingResult = asciiImport.GetSettingResult;\n export type GetSettingResult = asciiImport.GetSettingResult;\n export const GetAxisSettingResult = asciiImport.GetAxisSettingResult;\n export type GetAxisSettingResult = asciiImport.GetAxisSettingResult;\n export const IoPortType = asciiImport.IoPortType;\n export type IoPortType = asciiImport.IoPortType;\n export const Lockstep = asciiImport.Lockstep;\n export type Lockstep = asciiImport.Lockstep;\n export const LockstepAxes = asciiImport.LockstepAxes;\n export type LockstepAxes = asciiImport.LockstepAxes;\n export const Oscilloscope = asciiImport.Oscilloscope;\n export type Oscilloscope = asciiImport.Oscilloscope;\n export const OscilloscopeData = asciiImport.OscilloscopeData;\n export type OscilloscopeData = asciiImport.OscilloscopeData;\n export const OscilloscopeDataSource = asciiImport.OscilloscopeDataSource;\n export type OscilloscopeDataSource = asciiImport.OscilloscopeDataSource;\n export const OscilloscopeCaptureProperties = asciiImport.OscilloscopeCaptureProperties;\n export type OscilloscopeCaptureProperties = asciiImport.OscilloscopeCaptureProperties;\n export const MessageType = asciiImport.MessageType;\n export type MessageType = asciiImport.MessageType;\n export const Response = asciiImport.Response;\n export type Response = asciiImport.Response;\n export const SettingConstants = asciiImport.SettingConstants;\n export type SettingConstants = asciiImport.SettingConstants;\n export const UnknownResponseEvent = asciiImport.UnknownResponseEvent;\n export type UnknownResponseEvent = asciiImport.UnknownResponseEvent;\n export const Warnings = asciiImport.Warnings;\n export type Warnings = asciiImport.Warnings;\n export const WarningFlags = asciiImport.WarningFlags;\n export type WarningFlags = asciiImport.WarningFlags;\n export const Stream = asciiImport.Stream;\n export type Stream = asciiImport.Stream;\n export const StreamBuffer = asciiImport.StreamBuffer;\n export type StreamBuffer = asciiImport.StreamBuffer;\n export const StreamMode = asciiImport.StreamMode;\n export type StreamMode = asciiImport.StreamMode;\n export const StreamAxisType = asciiImport.StreamAxisType;\n export type StreamAxisType = asciiImport.StreamAxisType;\n export const StreamAxisDefinition = asciiImport.StreamAxisDefinition;\n export type StreamAxisDefinition = asciiImport.StreamAxisDefinition;\n export const Transport = asciiImport.Transport;\n export type Transport = asciiImport.Transport;\n export const ServoTuner = asciiImport.ServoTuner;\n export type ServoTuner = asciiImport.ServoTuner;\n export const ServoTuningParamset = asciiImport.ServoTuningParamset;\n export type ServoTuningParamset = asciiImport.ServoTuningParamset;\n export const ParamsetInfo = asciiImport.ParamsetInfo;\n export type ParamsetInfo = asciiImport.ParamsetInfo;\n export const PidTuning = asciiImport.PidTuning;\n export type PidTuning = asciiImport.PidTuning;\n export const ServoTuningParam = asciiImport.ServoTuningParam;\n export type ServoTuningParam = asciiImport.ServoTuningParam;\n export const SimpleTuningParamDefinition = asciiImport.SimpleTuningParamDefinition;\n export type SimpleTuningParamDefinition = asciiImport.SimpleTuningParamDefinition;\n export const AxisStorage = asciiImport.AxisStorage;\n export type AxisStorage = asciiImport.AxisStorage;\n export const DeviceStorage = asciiImport.DeviceStorage;\n export type DeviceStorage = asciiImport.DeviceStorage;\n export const ConversionFactor = asciiImport.ConversionFactor;\n export type ConversionFactor = asciiImport.ConversionFactor;\n export const CanSetStateAxisResponse = asciiImport.CanSetStateAxisResponse;\n export type CanSetStateAxisResponse = asciiImport.CanSetStateAxisResponse;\n export const CanSetStateDeviceResponse = asciiImport.CanSetStateDeviceResponse;\n export type CanSetStateDeviceResponse = asciiImport.CanSetStateDeviceResponse;\n export const Pvt = asciiImport.Pvt;\n export type Pvt = asciiImport.Pvt;\n export const PvtSequence = asciiImport.PvtSequence;\n export type PvtSequence = asciiImport.PvtSequence;\n export const PvtBuffer = asciiImport.PvtBuffer;\n export type PvtBuffer = asciiImport.PvtBuffer;\n export const PvtMode = asciiImport.PvtMode;\n export type PvtMode = asciiImport.PvtMode;\n export const PvtAxisDefinition = asciiImport.PvtAxisDefinition;\n export type PvtAxisDefinition = asciiImport.PvtAxisDefinition;\n export const PvtAxisType = asciiImport.PvtAxisType;\n export type PvtAxisType = asciiImport.PvtAxisType;\n export const AxisGroup = asciiImport.AxisGroup;\n export type AxisGroup = asciiImport.AxisGroup;\n export const Trigger = asciiImport.Trigger;\n export type Trigger = asciiImport.Trigger;\n export const Triggers = asciiImport.Triggers;\n export type Triggers = asciiImport.Triggers;\n export const TriggerState = asciiImport.TriggerState;\n export type TriggerState = asciiImport.TriggerState;\n export const TriggerEnabledState = asciiImport.TriggerEnabledState;\n export type TriggerEnabledState = asciiImport.TriggerEnabledState;\n export const TriggerAction = asciiImport.TriggerAction;\n export type TriggerAction = asciiImport.TriggerAction;\n export const TriggerCondition = asciiImport.TriggerCondition;\n export type TriggerCondition = asciiImport.TriggerCondition;\n export const TriggerOperation = asciiImport.TriggerOperation;\n export type TriggerOperation = asciiImport.TriggerOperation;\n export const Streams = asciiImport.Streams;\n export type Streams = asciiImport.Streams;\n export const DigitalOutputAction = asciiImport.DigitalOutputAction;\n export type DigitalOutputAction = asciiImport.DigitalOutputAction;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ascii_ns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,CAAC,iBAAiB,CAAC;IAElD,iBAAW,GAAG,WAAW,CAAC,WAAW,CAAC;IAEtC,eAAS,GAAG,WAAW,CAAC,SAAS,CAAC;IAElC,aAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IAE9B,cAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC;IAEhC,kBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IAExC,yBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC;IAEtD,mBAAa,GAAG,WAAW,CAAC,aAAa,CAAC;IAE1C,sBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;IAEhD,sBAAgB,GAAG,WAAW,CAAC,gBAAgB,CAAC;IAEhD,aAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IAE9B,yBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC;AAErE,CAAC,EA/HgB,KAAK,GAAL,aAAK,KAAL,aAAK,QA+HrB","sourcesContent":["import * as asciiImport from './ascii';\n\nexport namespace ascii {\n export const AlertEvent = asciiImport.AlertEvent;\n export type AlertEvent = asciiImport.AlertEvent;\n export const AllAxes = asciiImport.AllAxes;\n export type AllAxes = asciiImport.AllAxes;\n export const Axis = asciiImport.Axis;\n export type Axis = asciiImport.Axis;\n export const AxisIdentity = asciiImport.AxisIdentity;\n export type AxisIdentity = asciiImport.AxisIdentity;\n export const AxisSettings = asciiImport.AxisSettings;\n export type AxisSettings = asciiImport.AxisSettings;\n export const AxisType = asciiImport.AxisType;\n export type AxisType = asciiImport.AxisType;\n export const Connection = asciiImport.Connection;\n export type Connection = asciiImport.Connection;\n export const Device = asciiImport.Device;\n export type Device = asciiImport.Device;\n export const DeviceIO = asciiImport.DeviceIO;\n export type DeviceIO = asciiImport.DeviceIO;\n export const DeviceIOInfo = asciiImport.DeviceIOInfo;\n export type DeviceIOInfo = asciiImport.DeviceIOInfo;\n export const DeviceIdentity = asciiImport.DeviceIdentity;\n export type DeviceIdentity = asciiImport.DeviceIdentity;\n export const DeviceSettings = asciiImport.DeviceSettings;\n export type DeviceSettings = asciiImport.DeviceSettings;\n export const GetSetting = asciiImport.GetSetting;\n export type GetSetting = asciiImport.GetSetting;\n export const GetAxisSetting = asciiImport.GetAxisSetting;\n export type GetAxisSetting = asciiImport.GetAxisSetting;\n export const GetSettingResult = asciiImport.GetSettingResult;\n export type GetSettingResult = asciiImport.GetSettingResult;\n export const GetAxisSettingResult = asciiImport.GetAxisSettingResult;\n export type GetAxisSettingResult = asciiImport.GetAxisSettingResult;\n export const IoPortType = asciiImport.IoPortType;\n export type IoPortType = asciiImport.IoPortType;\n export const Lockstep = asciiImport.Lockstep;\n export type Lockstep = asciiImport.Lockstep;\n export const LockstepAxes = asciiImport.LockstepAxes;\n export type LockstepAxes = asciiImport.LockstepAxes;\n export const Oscilloscope = asciiImport.Oscilloscope;\n export type Oscilloscope = asciiImport.Oscilloscope;\n export const OscilloscopeData = asciiImport.OscilloscopeData;\n export type OscilloscopeData = asciiImport.OscilloscopeData;\n export const OscilloscopeDataSource = asciiImport.OscilloscopeDataSource;\n export type OscilloscopeDataSource = asciiImport.OscilloscopeDataSource;\n export const OscilloscopeCaptureProperties = asciiImport.OscilloscopeCaptureProperties;\n export type OscilloscopeCaptureProperties = asciiImport.OscilloscopeCaptureProperties;\n export const MessageType = asciiImport.MessageType;\n export type MessageType = asciiImport.MessageType;\n export const Response = asciiImport.Response;\n export type Response = asciiImport.Response;\n export const SettingConstants = asciiImport.SettingConstants;\n export type SettingConstants = asciiImport.SettingConstants;\n export const UnknownResponseEvent = asciiImport.UnknownResponseEvent;\n export type UnknownResponseEvent = asciiImport.UnknownResponseEvent;\n export const Warnings = asciiImport.Warnings;\n export type Warnings = asciiImport.Warnings;\n export const WarningFlags = asciiImport.WarningFlags;\n export type WarningFlags = asciiImport.WarningFlags;\n export const Stream = asciiImport.Stream;\n export type Stream = asciiImport.Stream;\n export const StreamBuffer = asciiImport.StreamBuffer;\n export type StreamBuffer = asciiImport.StreamBuffer;\n export const StreamMode = asciiImport.StreamMode;\n export type StreamMode = asciiImport.StreamMode;\n export const StreamAxisType = asciiImport.StreamAxisType;\n export type StreamAxisType = asciiImport.StreamAxisType;\n export const StreamAxisDefinition = asciiImport.StreamAxisDefinition;\n export type StreamAxisDefinition = asciiImport.StreamAxisDefinition;\n export const Transport = asciiImport.Transport;\n export type Transport = asciiImport.Transport;\n export const ServoTuner = asciiImport.ServoTuner;\n export type ServoTuner = asciiImport.ServoTuner;\n export const ServoTuningParamset = asciiImport.ServoTuningParamset;\n export type ServoTuningParamset = asciiImport.ServoTuningParamset;\n export const ParamsetInfo = asciiImport.ParamsetInfo;\n export type ParamsetInfo = asciiImport.ParamsetInfo;\n export const PidTuning = asciiImport.PidTuning;\n export type PidTuning = asciiImport.PidTuning;\n export const ServoTuningParam = asciiImport.ServoTuningParam;\n export type ServoTuningParam = asciiImport.ServoTuningParam;\n export const SimpleTuningParamDefinition = asciiImport.SimpleTuningParamDefinition;\n export type SimpleTuningParamDefinition = asciiImport.SimpleTuningParamDefinition;\n export const SimpleTuning = asciiImport.SimpleTuning;\n export type SimpleTuning = asciiImport.SimpleTuning;\n export const AxisStorage = asciiImport.AxisStorage;\n export type AxisStorage = asciiImport.AxisStorage;\n export const DeviceStorage = asciiImport.DeviceStorage;\n export type DeviceStorage = asciiImport.DeviceStorage;\n export const ConversionFactor = asciiImport.ConversionFactor;\n export type ConversionFactor = asciiImport.ConversionFactor;\n export const CanSetStateAxisResponse = asciiImport.CanSetStateAxisResponse;\n export type CanSetStateAxisResponse = asciiImport.CanSetStateAxisResponse;\n export const CanSetStateDeviceResponse = asciiImport.CanSetStateDeviceResponse;\n export type CanSetStateDeviceResponse = asciiImport.CanSetStateDeviceResponse;\n export const Pvt = asciiImport.Pvt;\n export type Pvt = asciiImport.Pvt;\n export const PvtSequence = asciiImport.PvtSequence;\n export type PvtSequence = asciiImport.PvtSequence;\n export const PvtBuffer = asciiImport.PvtBuffer;\n export type PvtBuffer = asciiImport.PvtBuffer;\n export const PvtMode = asciiImport.PvtMode;\n export type PvtMode = asciiImport.PvtMode;\n export const PvtAxisDefinition = asciiImport.PvtAxisDefinition;\n export type PvtAxisDefinition = asciiImport.PvtAxisDefinition;\n export const PvtAxisType = asciiImport.PvtAxisType;\n export type PvtAxisType = asciiImport.PvtAxisType;\n export const AxisGroup = asciiImport.AxisGroup;\n export type AxisGroup = asciiImport.AxisGroup;\n export const Trigger = asciiImport.Trigger;\n export type Trigger = asciiImport.Trigger;\n export const Triggers = asciiImport.Triggers;\n export type Triggers = asciiImport.Triggers;\n export const TriggerState = asciiImport.TriggerState;\n export type TriggerState = asciiImport.TriggerState;\n export const TriggerEnabledState = asciiImport.TriggerEnabledState;\n export type TriggerEnabledState = asciiImport.TriggerEnabledState;\n export const TriggerAction = asciiImport.TriggerAction;\n export type TriggerAction = asciiImport.TriggerAction;\n export const TriggerCondition = asciiImport.TriggerCondition;\n export type TriggerCondition = asciiImport.TriggerCondition;\n export const TriggerOperation = asciiImport.TriggerOperation;\n export type TriggerOperation = asciiImport.TriggerOperation;\n export const Streams = asciiImport.Streams;\n export type Streams = asciiImport.Streams;\n export const DigitalOutputAction = asciiImport.DigitalOutputAction;\n export type DigitalOutputAction = asciiImport.DigitalOutputAction;\n}\n"]}
|
|
@@ -6390,6 +6390,44 @@ export namespace SetSimpleTuning {
|
|
|
6390
6390
|
}
|
|
6391
6391
|
}
|
|
6392
6392
|
|
|
6393
|
+
export class SimpleTuning extends jspb.Message {
|
|
6394
|
+
getIsUsed(): boolean;
|
|
6395
|
+
setIsUsed(value: boolean): void;
|
|
6396
|
+
|
|
6397
|
+
getCarriageMass(): number;
|
|
6398
|
+
setCarriageMass(value: number): void;
|
|
6399
|
+
|
|
6400
|
+
getHasCarriageMass(): boolean;
|
|
6401
|
+
setHasCarriageMass(value: boolean): void;
|
|
6402
|
+
|
|
6403
|
+
getLoadMass(): number;
|
|
6404
|
+
setLoadMass(value: number): void;
|
|
6405
|
+
|
|
6406
|
+
clearTuningParamsList(): void;
|
|
6407
|
+
getTuningParamsList(): Array<ServoTuningParam>;
|
|
6408
|
+
setTuningParamsList(value: Array<ServoTuningParam>): void;
|
|
6409
|
+
addTuningParams(value?: ServoTuningParam, index?: number): ServoTuningParam;
|
|
6410
|
+
|
|
6411
|
+
serializeBinary(): Uint8Array;
|
|
6412
|
+
toObject(includeInstance?: boolean): SimpleTuning.AsObject;
|
|
6413
|
+
static toObject(includeInstance: boolean, msg: SimpleTuning): SimpleTuning.AsObject;
|
|
6414
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
6415
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
6416
|
+
static serializeBinaryToWriter(message: SimpleTuning, writer: jspb.BinaryWriter): void;
|
|
6417
|
+
static deserializeBinary(bytes: Uint8Array): SimpleTuning;
|
|
6418
|
+
static deserializeBinaryFromReader(message: SimpleTuning, reader: jspb.BinaryReader): SimpleTuning;
|
|
6419
|
+
}
|
|
6420
|
+
|
|
6421
|
+
export namespace SimpleTuning {
|
|
6422
|
+
export type AsObject = {
|
|
6423
|
+
isUsed: boolean,
|
|
6424
|
+
carriageMass: number,
|
|
6425
|
+
hasCarriageMass: boolean,
|
|
6426
|
+
loadMass: number,
|
|
6427
|
+
tuningParamsList: Array<ServoTuningParam.AsObject>,
|
|
6428
|
+
}
|
|
6429
|
+
}
|
|
6430
|
+
|
|
6393
6431
|
export class SimpleTuningParamDefinition extends jspb.Message {
|
|
6394
6432
|
getName(): string;
|
|
6395
6433
|
setName(value: string): void;
|