@zaber/motion 2.12.0 → 2.13.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.
Files changed (92) hide show
  1. package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
  2. package/dist/lib/ascii/all_axes.js +13 -9
  3. package/dist/lib/ascii/all_axes.js.map +1 -1
  4. package/dist/lib/ascii/axis.d.ts +33 -6
  5. package/dist/lib/ascii/axis.js +74 -25
  6. package/dist/lib/ascii/axis.js.map +1 -1
  7. package/dist/lib/ascii/axis_settings.d.ts +19 -0
  8. package/dist/lib/ascii/axis_settings.js +53 -5
  9. package/dist/lib/ascii/axis_settings.js.map +1 -1
  10. package/dist/lib/ascii/connection.js +16 -12
  11. package/dist/lib/ascii/connection.js.map +1 -1
  12. package/dist/lib/ascii/device.js +18 -14
  13. package/dist/lib/ascii/device.js.map +1 -1
  14. package/dist/lib/ascii/device_io.js +10 -6
  15. package/dist/lib/ascii/device_io.js.map +1 -1
  16. package/dist/lib/ascii/device_settings.d.ts +19 -0
  17. package/dist/lib/ascii/device_settings.js +50 -5
  18. package/dist/lib/ascii/device_settings.js.map +1 -1
  19. package/dist/lib/ascii/lockstep.d.ts +33 -6
  20. package/dist/lib/ascii/lockstep.js +66 -17
  21. package/dist/lib/ascii/lockstep.js.map +1 -1
  22. package/dist/lib/ascii/oscilloscope.js +10 -6
  23. package/dist/lib/ascii/oscilloscope.js.map +1 -1
  24. package/dist/lib/ascii/oscilloscope_data.d.ts +1 -7
  25. package/dist/lib/ascii/oscilloscope_data.js +12 -25
  26. package/dist/lib/ascii/oscilloscope_data.js.map +1 -1
  27. package/dist/lib/ascii/servo_tuner.d.ts +11 -0
  28. package/dist/lib/ascii/servo_tuner.js +31 -5
  29. package/dist/lib/ascii/servo_tuner.js.map +1 -1
  30. package/dist/lib/ascii/servo_tuning_param.js +5 -1
  31. package/dist/lib/ascii/servo_tuning_param.js.map +1 -1
  32. package/dist/lib/ascii/setting_constants.d.ts +124 -0
  33. package/dist/lib/ascii/setting_constants.js +124 -0
  34. package/dist/lib/ascii/setting_constants.js.map +1 -1
  35. package/dist/lib/ascii/storage.js +15 -11
  36. package/dist/lib/ascii/storage.js.map +1 -1
  37. package/dist/lib/ascii/stream.d.ts +5 -5
  38. package/dist/lib/ascii/stream.js +24 -20
  39. package/dist/lib/ascii/stream.js.map +1 -1
  40. package/dist/lib/ascii/stream_axis_definition.js +5 -1
  41. package/dist/lib/ascii/stream_axis_definition.js.map +1 -1
  42. package/dist/lib/ascii/stream_buffer.js +5 -1
  43. package/dist/lib/ascii/stream_buffer.js.map +1 -1
  44. package/dist/lib/ascii/transport.js +7 -3
  45. package/dist/lib/ascii/transport.js.map +1 -1
  46. package/dist/lib/ascii/warnings.js +5 -1
  47. package/dist/lib/ascii/warnings.js.map +1 -1
  48. package/dist/lib/ascii_ns.js +5 -1
  49. package/dist/lib/ascii_ns.js.map +1 -1
  50. package/dist/lib/binary/connection.js +12 -8
  51. package/dist/lib/binary/connection.js.map +1 -1
  52. package/dist/lib/binary/device.js +35 -31
  53. package/dist/lib/binary/device.js.map +1 -1
  54. package/dist/lib/binary/device_settings.js +6 -2
  55. package/dist/lib/binary/device_settings.js.map +1 -1
  56. package/dist/lib/binary_ns.js +5 -1
  57. package/dist/lib/binary_ns.js.map +1 -1
  58. package/dist/lib/gateway/convert_exceptions.js +5 -1
  59. package/dist/lib/gateway/convert_exceptions.js.map +1 -1
  60. package/dist/lib/gateway/index.js +5 -1
  61. package/dist/lib/gateway/index.js.map +1 -1
  62. package/dist/lib/gcode/axis_definition.js +5 -1
  63. package/dist/lib/gcode/axis_definition.js.map +1 -1
  64. package/dist/lib/gcode/axis_mapping.js +5 -1
  65. package/dist/lib/gcode/axis_mapping.js.map +1 -1
  66. package/dist/lib/gcode/axis_transformation.js +5 -1
  67. package/dist/lib/gcode/axis_transformation.js.map +1 -1
  68. package/dist/lib/gcode/device_definition.js +5 -1
  69. package/dist/lib/gcode/device_definition.js.map +1 -1
  70. package/dist/lib/gcode/offline_translator.js +8 -4
  71. package/dist/lib/gcode/offline_translator.js.map +1 -1
  72. package/dist/lib/gcode/translator.js +8 -4
  73. package/dist/lib/gcode/translator.js.map +1 -1
  74. package/dist/lib/gcode/translator_config.js +5 -1
  75. package/dist/lib/gcode/translator_config.js.map +1 -1
  76. package/dist/lib/gcode_ns.js +5 -1
  77. package/dist/lib/gcode_ns.js.map +1 -1
  78. package/dist/lib/index.js +5 -1
  79. package/dist/lib/index.js.map +1 -1
  80. package/dist/lib/library.js +5 -1
  81. package/dist/lib/library.js.map +1 -1
  82. package/dist/lib/measurement.js +5 -1
  83. package/dist/lib/measurement.js.map +1 -1
  84. package/dist/lib/protobufs/main_pb.d.ts +160 -1640
  85. package/dist/lib/protobufs/main_pb.js +9752 -20982
  86. package/dist/lib/protobufs/main_pb.js.map +1 -1
  87. package/dist/lib/tools.js +6 -2
  88. package/dist/lib/tools.js.map +1 -1
  89. package/dist/lib/units.d.ts +63 -1
  90. package/dist/lib/units.js +70 -1
  91. package/dist/lib/units.js.map +1 -1
  92. package/package.json +2 -2
@@ -3,7 +3,11 @@
3
3
  // ============= DO NOT EDIT DIRECTLY ============= //
4
4
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
5
  if (k2 === undefined) k2 = k;
6
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
7
11
  }) : (function(o, m, k, k2) {
8
12
  if (k2 === undefined) k2 = k;
9
13
  o[k2] = m[k];
@@ -77,7 +81,7 @@ class AllAxes {
77
81
  * It can later be powered on, unparked, and moved without first having to home it.
78
82
  */
79
83
  async park() {
80
- const request = new gateway.DeviceParkRequest();
84
+ const request = new gateway.AxisEmptyRequest();
81
85
  request.setInterfaceId(this.device.connection.interfaceId);
82
86
  request.setDevice(this.device.deviceAddress);
83
87
  request.setAxis(0);
@@ -87,7 +91,7 @@ class AllAxes {
87
91
  * Unparks the device. The device will now be able to move.
88
92
  */
89
93
  async unpark() {
90
- const request = new gateway.DeviceParkRequest();
94
+ const request = new gateway.AxisEmptyRequest();
91
95
  request.setInterfaceId(this.device.connection.interfaceId);
92
96
  request.setDevice(this.device.deviceAddress);
93
97
  request.setAxis(0);
@@ -98,24 +102,24 @@ class AllAxes {
98
102
  * @return True if any axis is currently executing a motion command.
99
103
  */
100
104
  async isBusy() {
101
- const request = new gateway.DeviceIsBusyRequest();
105
+ const request = new gateway.AxisEmptyRequest();
102
106
  request.setInterfaceId(this.device.connection.interfaceId);
103
107
  request.setDevice(this.device.deviceAddress);
104
108
  request.setAxis(0);
105
- const response = await gateway.callAsync('device/is_busy', request, gateway.DeviceIsBusyResponse);
106
- return response.getIsBusy();
109
+ const response = await gateway.callAsync('device/is_busy', request, gateway.BoolResponse);
110
+ return response.getValue();
107
111
  }
108
112
  /**
109
113
  * Returns a string that represents the axes.
110
114
  * @return A string that represents the axes.
111
115
  */
112
116
  toString() {
113
- const request = new gateway.ToStringRequest();
117
+ const request = new gateway.AxisEmptyRequest();
114
118
  request.setInterfaceId(this.device.connection.interfaceId);
115
119
  request.setDevice(this.device.deviceAddress);
116
120
  request.setAxis(0);
117
- const response = gateway.callSync('device/all_axes_to_string', request, gateway.ToStringResponse);
118
- return response.getToStr();
121
+ const response = gateway.callSync('device/all_axes_to_string', request, gateway.StringResponse);
122
+ return response.getValue();
119
123
  }
120
124
  }
121
125
  exports.AllAxes = AllAxes;
@@ -1 +1 @@
1
- {"version":3,"file":"all_axes.js","sourceRoot":"","sources":["../../../src/ascii/all_axes.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AAEtC;;GAEG;AACH,MAAa,OAAO;IASlB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AAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAEnB,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,gBAAgB,EAChB,OAAO,EACP,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAChC,OAAO,QAAQ,CAAC,SAAS,EAAE,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACI,QAAQ;QACb,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;QAC9C,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAEnB,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,2BAA2B,EAC3B,OAAO,EACP,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAC5B,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;CACF;AAvHD,0BAuHC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport * as gateway from '../gateway';\n\n/**\n * Represents all axes of motion associated with a device.\n */\nexport class AllAxes {\n /**\n * Device that controls this axis.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n constructor(device: Device) {\n this._device = device;\n }\n\n /**\n * Homes all axes. Axes return to their homing positions.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async home(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceHomeRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/home', request);\n }\n\n /**\n * Stops ongoing axes movement. Decelerates until zero speed.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async stop(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceStopRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/stop', request);\n }\n\n /**\n * Waits until all axes of device stop moving.\n * @param throwErrorOnFault Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n throwErrorOnFault: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceWaitUntilIdleRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n request.setThrowErrorOnFault(throwErrorOnFault);\n\n await gateway.callAsync('device/wait_until_idle', request);\n }\n\n /**\n * Parks the device in anticipation of turning the power off.\n * It can later be powered on, unparked, and moved without first having to home it.\n */\n public async park(): Promise<void> {\n const request = new gateway.DeviceParkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n await gateway.callAsync('device/park', request);\n }\n\n /**\n * Unparks the device. The device will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request = new gateway.DeviceParkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n await gateway.callAsync('device/unpark', request);\n }\n\n /**\n * Returns bool indicating whether any axis is executing a motion command.\n * @return True if any axis is currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request = new gateway.DeviceIsBusyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n const response = await gateway.callAsync<gateway.DeviceIsBusyResponse>(\n 'device/is_busy',\n request,\n gateway.DeviceIsBusyResponse);\n return response.getIsBusy();\n }\n\n /**\n * Returns a string that represents the axes.\n * @return A string that represents the axes.\n */\n public toString(): string {\n const request = new gateway.ToStringRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n const response = gateway.callSync<gateway.ToStringResponse>(\n 'device/all_axes_to_string',\n request,\n gateway.ToStringResponse);\n return response.getToStr();\n }\n}\n"]}
1
+ {"version":3,"file":"all_axes.js","sourceRoot":"","sources":["../../../src/ascii/all_axes.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AAEtC;;GAEG;AACH,MAAa,OAAO;IASlB,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAVD;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAOD;;;OAGG;IACI,KAAK,CAAC,IAAI,CACf,gBAAyB,IAAI;QAE7B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAC3D,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAC7C,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACnB,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAExC,MAAM,OAAO,CAAC,SAAS,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,IAAI,CACf,gBAAyB,IAAI;QAE7B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;QAChD,OAAO,CAAC,cAAc,CAAC,IAAI,CA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CAAC;CACF;AAvHD,0BAuHC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport * as gateway from '../gateway';\n\n/**\n * Represents all axes of motion associated with a device.\n */\nexport class AllAxes {\n /**\n * Device that controls this axis.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n constructor(device: Device) {\n this._device = device;\n }\n\n /**\n * Homes all axes. Axes return to their homing positions.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async home(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceHomeRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/home', request);\n }\n\n /**\n * Stops ongoing axes movement. Decelerates until zero speed.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async stop(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceStopRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/stop', request);\n }\n\n /**\n * Waits until all axes of device stop moving.\n * @param throwErrorOnFault Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n throwErrorOnFault: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceWaitUntilIdleRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n request.setThrowErrorOnFault(throwErrorOnFault);\n\n await gateway.callAsync('device/wait_until_idle', request);\n }\n\n /**\n * Parks the device in anticipation of turning the power off.\n * It can later be powered on, unparked, and moved without first having to home it.\n */\n public async park(): Promise<void> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n await gateway.callAsync('device/park', request);\n }\n\n /**\n * Unparks the device. The device will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n await gateway.callAsync('device/unpark', request);\n }\n\n /**\n * Returns bool indicating whether any axis is executing a motion command.\n * @return True if any axis is currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n const response = await gateway.callAsync<gateway.BoolResponse>(\n 'device/is_busy',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n\n /**\n * Returns a string that represents the axes.\n * @return A string that represents the axes.\n */\n public toString(): string {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(0);\n\n const response = gateway.callSync<gateway.StringResponse>(\n 'device/all_axes_to_string',\n request,\n gateway.StringResponse);\n return response.getValue();\n }\n}\n"]}
@@ -3,7 +3,7 @@ import { AxisIdentity } from './axis_identity';
3
3
  import { AxisType } from './axis_type';
4
4
  import { Warnings } from './warnings';
5
5
  import { AxisSettings } from './axis_settings';
6
- import { Angle, Length, Native, AngularVelocity, Velocity } from '../units';
6
+ import { Angle, Length, Native, AngularVelocity, Velocity, Acceleration, AngularAcceleration } from '../units';
7
7
  import { Response } from './response';
8
8
  import { Measurement } from '../measurement';
9
9
  import { AxisStorage } from './storage';
@@ -97,31 +97,58 @@ export declare class Axis {
97
97
  * @param position Absolute position.
98
98
  * @param unit Units of position.
99
99
  * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
100
+ * @param velocity Movement velocity.
101
+ * Default value of 0 indicates that the maxspeed setting is used instead.
102
+ * @param velocityUnit Units of velocity.
103
+ * @param acceleration Movement acceleration.
104
+ * Default value of 0 indicates that the accel setting is used instead.
105
+ * @param accelerationUnit Units of acceleration.
100
106
  */
101
- moveAbsolute(position: number, unit?: Length | Angle | Native, waitUntilIdle?: boolean): Promise<void>;
107
+ moveAbsolute(position: number, unit?: Length | Angle | Native, waitUntilIdle?: boolean, velocity?: number, velocityUnit?: Velocity | AngularVelocity | Native, acceleration?: number, accelerationUnit?: Acceleration | AngularAcceleration | Native): Promise<void>;
102
108
  /**
103
109
  * Moves the axis to the maximum position as specified by limit.max.
104
110
  * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
111
+ * @param velocity Movement velocity.
112
+ * Default value of 0 indicates that the maxspeed setting is used instead.
113
+ * @param velocityUnit Units of velocity.
114
+ * @param acceleration Movement acceleration.
115
+ * Default value of 0 indicates that the accel setting is used instead.
116
+ * @param accelerationUnit Units of acceleration.
105
117
  */
106
- moveMax(waitUntilIdle?: boolean): Promise<void>;
118
+ moveMax(waitUntilIdle?: boolean, velocity?: number, velocityUnit?: Velocity | AngularVelocity | Native, acceleration?: number, accelerationUnit?: Acceleration | AngularAcceleration | Native): Promise<void>;
107
119
  /**
108
120
  * Moves the axis to the minimum position as specified by limit.min.
109
121
  * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
122
+ * @param velocity Movement velocity.
123
+ * Default value of 0 indicates that the maxspeed setting is used instead.
124
+ * @param velocityUnit Units of velocity.
125
+ * @param acceleration Movement acceleration.
126
+ * Default value of 0 indicates that the accel setting is used instead.
127
+ * @param accelerationUnit Units of acceleration.
110
128
  */
111
- moveMin(waitUntilIdle?: boolean): Promise<void>;
129
+ moveMin(waitUntilIdle?: boolean, velocity?: number, velocityUnit?: Velocity | AngularVelocity | Native, acceleration?: number, accelerationUnit?: Acceleration | AngularAcceleration | Native): Promise<void>;
112
130
  /**
113
131
  * Move axis to position relative to current position.
114
132
  * @param position Relative position.
115
133
  * @param unit Units of position.
116
134
  * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
135
+ * @param velocity Movement velocity.
136
+ * Default value of 0 indicates that the maxspeed setting is used instead.
137
+ * @param velocityUnit Units of velocity.
138
+ * @param acceleration Movement acceleration.
139
+ * Default value of 0 indicates that the accel setting is used instead.
140
+ * @param accelerationUnit Units of acceleration.
117
141
  */
118
- moveRelative(position: number, unit?: Length | Angle | Native, waitUntilIdle?: boolean): Promise<void>;
142
+ moveRelative(position: number, unit?: Length | Angle | Native, waitUntilIdle?: boolean, velocity?: number, velocityUnit?: Velocity | AngularVelocity | Native, acceleration?: number, accelerationUnit?: Acceleration | AngularAcceleration | Native): Promise<void>;
119
143
  /**
120
144
  * Begins to move axis at specified speed.
121
145
  * @param velocity Movement velocity.
122
146
  * @param unit Units of velocity.
147
+ * @param acceleration Movement acceleration.
148
+ * Default value of 0 indicates that the accel setting is used instead.
149
+ * @param accelerationUnit Units of acceleration.
123
150
  */
124
- moveVelocity(velocity: number, unit?: Velocity | AngularVelocity | Native): Promise<void>;
151
+ moveVelocity(velocity: number, unit?: Velocity | AngularVelocity | Native, acceleration?: number, accelerationUnit?: Acceleration | AngularAcceleration | Native): Promise<void>;
125
152
  /**
126
153
  * Returns current axis position.
127
154
  * @param unit Units of position.
@@ -3,7 +3,11 @@
3
3
  // ============= DO NOT EDIT DIRECTLY ============= //
4
4
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
5
  if (k2 === undefined) k2 = k;
6
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
7
11
  }) : (function(o, m, k, k2) {
8
12
  if (k2 === undefined) k2 = k;
9
13
  o[k2] = m[k];
@@ -131,7 +135,7 @@ class Axis {
131
135
  * It can later be powered on, unparked, and moved without first having to home it.
132
136
  */
133
137
  async park() {
134
- const request = new gateway.DeviceParkRequest();
138
+ const request = new gateway.AxisEmptyRequest();
135
139
  request.setInterfaceId(this.device.connection.interfaceId);
136
140
  request.setDevice(this.device.deviceAddress);
137
141
  request.setAxis(this.axisNumber);
@@ -141,7 +145,7 @@ class Axis {
141
145
  * Unparks axis. Axis will now be able to move.
142
146
  */
143
147
  async unpark() {
144
- const request = new gateway.DeviceParkRequest();
148
+ const request = new gateway.AxisEmptyRequest();
145
149
  request.setInterfaceId(this.device.connection.interfaceId);
146
150
  request.setDevice(this.device.deviceAddress);
147
151
  request.setAxis(this.axisNumber);
@@ -152,12 +156,12 @@ class Axis {
152
156
  * @return True if the axis is currently parked. False otherwise.
153
157
  */
154
158
  async isParked() {
155
- const request = new gateway.DeviceParkRequest();
159
+ const request = new gateway.AxisEmptyRequest();
156
160
  request.setInterfaceId(this.device.connection.interfaceId);
157
161
  request.setDevice(this.device.deviceAddress);
158
162
  request.setAxis(this.axisNumber);
159
- const response = await gateway.callAsync('device/is_parked', request, gateway.DeviceIsParkedResponse);
160
- return response.getIsParked();
163
+ const response = await gateway.callAsync('device/is_parked', request, gateway.BoolResponse);
164
+ return response.getValue();
161
165
  }
162
166
  /**
163
167
  * Waits until axis stops moving.
@@ -176,20 +180,26 @@ class Axis {
176
180
  * @return True if the axis is currently executing a motion command.
177
181
  */
178
182
  async isBusy() {
179
- const request = new gateway.DeviceIsBusyRequest();
183
+ const request = new gateway.AxisEmptyRequest();
180
184
  request.setInterfaceId(this.device.connection.interfaceId);
181
185
  request.setDevice(this.device.deviceAddress);
182
186
  request.setAxis(this.axisNumber);
183
- const response = await gateway.callAsync('device/is_busy', request, gateway.DeviceIsBusyResponse);
184
- return response.getIsBusy();
187
+ const response = await gateway.callAsync('device/is_busy', request, gateway.BoolResponse);
188
+ return response.getValue();
185
189
  }
186
190
  /**
187
191
  * Move axis to absolute position.
188
192
  * @param position Absolute position.
189
193
  * @param unit Units of position.
190
194
  * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
195
+ * @param velocity Movement velocity.
196
+ * Default value of 0 indicates that the maxspeed setting is used instead.
197
+ * @param velocityUnit Units of velocity.
198
+ * @param acceleration Movement acceleration.
199
+ * Default value of 0 indicates that the accel setting is used instead.
200
+ * @param accelerationUnit Units of acceleration.
191
201
  */
192
- async moveAbsolute(position, unit = units_1.Units.NATIVE, waitUntilIdle = true) {
202
+ async moveAbsolute(position, unit = units_1.Units.NATIVE, waitUntilIdle = true, velocity = 0, velocityUnit = units_1.Units.NATIVE, acceleration = 0, accelerationUnit = units_1.Units.NATIVE) {
193
203
  const request = new gateway.DeviceMoveRequest();
194
204
  request.setInterfaceId(this.device.connection.interfaceId);
195
205
  request.setDevice(this.device.deviceAddress);
@@ -198,32 +208,56 @@ class Axis {
198
208
  request.setArg(position);
199
209
  request.setUnit(unit);
200
210
  request.setWaitUntilIdle(waitUntilIdle);
211
+ request.setVelocity(velocity);
212
+ request.setVelocityUnit(velocityUnit);
213
+ request.setAcceleration(acceleration);
214
+ request.setAccelerationUnit(accelerationUnit);
201
215
  await gateway.callAsync('device/move', request);
202
216
  }
203
217
  /**
204
218
  * Moves the axis to the maximum position as specified by limit.max.
205
219
  * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
220
+ * @param velocity Movement velocity.
221
+ * Default value of 0 indicates that the maxspeed setting is used instead.
222
+ * @param velocityUnit Units of velocity.
223
+ * @param acceleration Movement acceleration.
224
+ * Default value of 0 indicates that the accel setting is used instead.
225
+ * @param accelerationUnit Units of acceleration.
206
226
  */
207
- async moveMax(waitUntilIdle = true) {
227
+ async moveMax(waitUntilIdle = true, velocity = 0, velocityUnit = units_1.Units.NATIVE, acceleration = 0, accelerationUnit = units_1.Units.NATIVE) {
208
228
  const request = new gateway.DeviceMoveRequest();
209
229
  request.setInterfaceId(this.device.connection.interfaceId);
210
230
  request.setDevice(this.device.deviceAddress);
211
231
  request.setAxis(this.axisNumber);
212
232
  request.setType(gateway.DeviceMoveRequest.MoveType.MAX);
213
233
  request.setWaitUntilIdle(waitUntilIdle);
234
+ request.setVelocity(velocity);
235
+ request.setVelocityUnit(velocityUnit);
236
+ request.setAcceleration(acceleration);
237
+ request.setAccelerationUnit(accelerationUnit);
214
238
  await gateway.callAsync('device/move', request);
215
239
  }
216
240
  /**
217
241
  * Moves the axis to the minimum position as specified by limit.min.
218
242
  * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
243
+ * @param velocity Movement velocity.
244
+ * Default value of 0 indicates that the maxspeed setting is used instead.
245
+ * @param velocityUnit Units of velocity.
246
+ * @param acceleration Movement acceleration.
247
+ * Default value of 0 indicates that the accel setting is used instead.
248
+ * @param accelerationUnit Units of acceleration.
219
249
  */
220
- async moveMin(waitUntilIdle = true) {
250
+ async moveMin(waitUntilIdle = true, velocity = 0, velocityUnit = units_1.Units.NATIVE, acceleration = 0, accelerationUnit = units_1.Units.NATIVE) {
221
251
  const request = new gateway.DeviceMoveRequest();
222
252
  request.setInterfaceId(this.device.connection.interfaceId);
223
253
  request.setDevice(this.device.deviceAddress);
224
254
  request.setAxis(this.axisNumber);
225
255
  request.setType(gateway.DeviceMoveRequest.MoveType.MIN);
226
256
  request.setWaitUntilIdle(waitUntilIdle);
257
+ request.setVelocity(velocity);
258
+ request.setVelocityUnit(velocityUnit);
259
+ request.setAcceleration(acceleration);
260
+ request.setAccelerationUnit(accelerationUnit);
227
261
  await gateway.callAsync('device/move', request);
228
262
  }
229
263
  /**
@@ -231,8 +265,14 @@ class Axis {
231
265
  * @param position Relative position.
232
266
  * @param unit Units of position.
233
267
  * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.
268
+ * @param velocity Movement velocity.
269
+ * Default value of 0 indicates that the maxspeed setting is used instead.
270
+ * @param velocityUnit Units of velocity.
271
+ * @param acceleration Movement acceleration.
272
+ * Default value of 0 indicates that the accel setting is used instead.
273
+ * @param accelerationUnit Units of acceleration.
234
274
  */
235
- async moveRelative(position, unit = units_1.Units.NATIVE, waitUntilIdle = true) {
275
+ async moveRelative(position, unit = units_1.Units.NATIVE, waitUntilIdle = true, velocity = 0, velocityUnit = units_1.Units.NATIVE, acceleration = 0, accelerationUnit = units_1.Units.NATIVE) {
236
276
  const request = new gateway.DeviceMoveRequest();
237
277
  request.setInterfaceId(this.device.connection.interfaceId);
238
278
  request.setDevice(this.device.deviceAddress);
@@ -241,14 +281,21 @@ class Axis {
241
281
  request.setArg(position);
242
282
  request.setUnit(unit);
243
283
  request.setWaitUntilIdle(waitUntilIdle);
284
+ request.setVelocity(velocity);
285
+ request.setVelocityUnit(velocityUnit);
286
+ request.setAcceleration(acceleration);
287
+ request.setAccelerationUnit(accelerationUnit);
244
288
  await gateway.callAsync('device/move', request);
245
289
  }
246
290
  /**
247
291
  * Begins to move axis at specified speed.
248
292
  * @param velocity Movement velocity.
249
293
  * @param unit Units of velocity.
294
+ * @param acceleration Movement acceleration.
295
+ * Default value of 0 indicates that the accel setting is used instead.
296
+ * @param accelerationUnit Units of acceleration.
250
297
  */
251
- async moveVelocity(velocity, unit = units_1.Units.NATIVE) {
298
+ async moveVelocity(velocity, unit = units_1.Units.NATIVE, acceleration = 0, accelerationUnit = units_1.Units.NATIVE) {
252
299
  const request = new gateway.DeviceMoveRequest();
253
300
  request.setInterfaceId(this.device.connection.interfaceId);
254
301
  request.setDevice(this.device.deviceAddress);
@@ -256,6 +303,8 @@ class Axis {
256
303
  request.setType(gateway.DeviceMoveRequest.MoveType.VEL);
257
304
  request.setArg(velocity);
258
305
  request.setUnit(unit);
306
+ request.setAcceleration(acceleration);
307
+ request.setAccelerationUnit(accelerationUnit);
259
308
  await gateway.callAsync('device/move', request);
260
309
  }
261
310
  /**
@@ -270,7 +319,7 @@ class Axis {
270
319
  request.setAxis(this.axisNumber);
271
320
  request.setSetting('pos');
272
321
  request.setUnit(unit);
273
- const response = await gateway.callAsync('device/get_setting', request, gateway.DeviceGetSettingResponse);
322
+ const response = await gateway.callAsync('device/get_setting', request, gateway.DoubleResponse);
274
323
  return response.getValue();
275
324
  }
276
325
  /**
@@ -343,32 +392,32 @@ class Axis {
343
392
  request.setAxis(this.axisNumber);
344
393
  request.setCommandTemplate(commandTemplate);
345
394
  request.setParametersList(parameters.map(measurement_1.Measurement.toProtobuf));
346
- const response = gateway.callSync('device/prepare_command', request, gateway.PrepareCommandResponse);
347
- return response.getCommand();
395
+ const response = gateway.callSync('device/prepare_command', request, gateway.StringResponse);
396
+ return response.getValue();
348
397
  }
349
398
  /**
350
399
  * Returns a string that represents the axis.
351
400
  * @return A string that represents the axis.
352
401
  */
353
402
  toString() {
354
- const request = new gateway.ToStringRequest();
403
+ const request = new gateway.AxisEmptyRequest();
355
404
  request.setInterfaceId(this.device.connection.interfaceId);
356
405
  request.setDevice(this.device.deviceAddress);
357
406
  request.setAxis(this.axisNumber);
358
- const response = gateway.callSync('device/axis_to_string', request, gateway.ToStringResponse);
359
- return response.getToStr();
407
+ const response = gateway.callSync('device/axis_to_string', request, gateway.StringResponse);
408
+ return response.getValue();
360
409
  }
361
410
  /**
362
411
  * Returns a serialization of the current axis state that can be saved and reapplied.
363
412
  * @return A serialization of the current state of the axis.
364
413
  */
365
414
  async getState() {
366
- const request = new gateway.GetStateRequest();
415
+ const request = new gateway.AxisEmptyRequest();
367
416
  request.setInterfaceId(this.device.connection.interfaceId);
368
417
  request.setDevice(this.device.deviceAddress);
369
418
  request.setAxis(this.axisNumber);
370
- const response = await gateway.callAsync('device/get_state', request, gateway.GetStateResponse);
371
- return response.getState();
419
+ const response = await gateway.callAsync('device/get_state', request, gateway.StringResponse);
420
+ return response.getValue();
372
421
  }
373
422
  /**
374
423
  * Applies a saved state to an axis.
@@ -395,7 +444,7 @@ class Axis {
395
444
  request.setDevice(this.device.deviceAddress);
396
445
  request.setAxis(this.axisNumber);
397
446
  request.setState(state);
398
- const response = await gateway.callAsync('device/can_set_state', request, gateway.CanSetStateAxisResponse);
447
+ const response = await gateway.callAsync('device/can_set_axis_state', request, gateway.CanSetStateAxisResponse);
399
448
  return response.getError();
400
449
  }
401
450
  /**
@@ -403,7 +452,7 @@ class Axis {
403
452
  * @return Axis identity.
404
453
  */
405
454
  _retrieveIdentity() {
406
- const request = new gateway.DeviceGetAxisIdentityRequest();
455
+ const request = new gateway.AxisEmptyRequest();
407
456
  request.setInterfaceId(this.device.connection.interfaceId);
408
457
  request.setDevice(this.device.deviceAddress);
409
458
  request.setAxis(this.axisNumber);
@@ -1 +1 @@
1
- {"version":3,"file":"axis.js","sourceRoot":"","sources":["../../../src/ascii/axis.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;AAGtD,mDAA+C;AAE/C,yCAAsC;AACtC,mDAA+C;AAC/C,oCAAmF;AACnF,yCAAsC;AACtC,gDAA6C;AAC7C,oDAAsC;AACtC,uCAAwC;AAExC;;GAEG;AACH,MAAa,IAAI;IA6Ef,YAAY,MAAc,EAAE,UAAkB;QAC5C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,qBAAW,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACpD,CAAC;IAlFD;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;;OAGG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAGD;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI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AC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEjC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,0BAA0B,EAC1B,OAAO,EACP,OAAO,CAAC,6BAA6B,CAAC,CAAC;QACzC,OAAO,4BAAY,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,EAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AA1fD,oBA0fC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport { AxisIdentity } from './axis_identity';\nimport { AxisType } from './axis_type';\nimport { Warnings } from './warnings';\nimport { AxisSettings } from './axis_settings';\nimport { Angle, Length, Native, AngularVelocity, Velocity, Units } from '../units';\nimport { Response } from './response';\nimport { Measurement } from '../measurement';\nimport * as gateway from '../gateway';\nimport { AxisStorage } from './storage';\n\n/**\n * Represents an axis of motion associated with a device.\n */\nexport class Axis {\n /**\n * Device that controls this axis.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The axis number identifies the axis on the device.\n * The first axis has the number one.\n */\n public get axisNumber(): number {\n return this._axisNumber;\n }\n private _axisNumber: number;\n\n /**\n * Settings and properties of this axis.\n */\n public get settings(): AxisSettings {\n return this._settings;\n }\n private _settings: AxisSettings;\n\n /**\n * Key-value storage of this axis.\n */\n public get storage(): AxisStorage {\n return this._storage;\n }\n private _storage: AxisStorage;\n\n /**\n * Warnings and faults of this axis.\n */\n public get warnings(): Warnings {\n return this._warnings;\n }\n private _warnings: Warnings;\n\n /**\n * Identity of the axis.\n */\n public get identity(): AxisIdentity {\n return this._retrieveIdentity();\n }\n\n /**\n * Unique ID of the peripheral hardware.\n */\n public get peripheralId(): number {\n return this.identity.peripheralId;\n }\n\n /**\n * Name of the peripheral.\n */\n public get peripheralName(): string {\n return this.identity.peripheralName;\n }\n\n /**\n * Indicates whether the axis is a peripheral or part of an integrated device.\n */\n public get isPeripheral(): boolean {\n return this.identity.isPeripheral;\n }\n\n /**\n * Determines the type of an axis and units it accepts.\n */\n public get axisType(): AxisType {\n return this.identity.axisType;\n }\n\n constructor(device: Device, axisNumber: number) {\n this._device = device;\n this._axisNumber = axisNumber;\n this._settings = new AxisSettings(this);\n this._storage = new AxisStorage(this);\n this._warnings = new Warnings(device, axisNumber);\n }\n\n /**\n * Homes axis. Axis returns to its homing position.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async home(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceHomeRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/home', request);\n }\n\n /**\n * Stops ongoing axis movement. Decelerates until zero speed.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async stop(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceStopRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/stop', request);\n }\n\n /**\n * Parks the axis in anticipation of turning the power off.\n * It can later be powered on, unparked, and moved without first having to home it.\n */\n public async park(): Promise<void> {\n const request = new gateway.DeviceParkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n await gateway.callAsync('device/park', request);\n }\n\n /**\n * Unparks axis. Axis will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request = new gateway.DeviceParkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n await gateway.callAsync('device/unpark', request);\n }\n\n /**\n * Returns bool indicating whether the axis is parked or not.\n * @return True if the axis is currently parked. False otherwise.\n */\n public async isParked(): Promise<boolean> {\n const request = new gateway.DeviceParkRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = await gateway.callAsync<gateway.DeviceIsParkedResponse>(\n 'device/is_parked',\n request,\n gateway.DeviceIsParkedResponse);\n return response.getIsParked();\n }\n\n /**\n * Waits until axis stops moving.\n * @param throwErrorOnFault Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n throwErrorOnFault: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceWaitUntilIdleRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setThrowErrorOnFault(throwErrorOnFault);\n\n await gateway.callAsync('device/wait_until_idle', request);\n }\n\n /**\n * Returns bool indicating whether the axis is executing a motion command.\n * @return True if the axis is currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request = new gateway.DeviceIsBusyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = await gateway.callAsync<gateway.DeviceIsBusyResponse>(\n 'device/is_busy',\n request,\n gateway.DeviceIsBusyResponse);\n return response.getIsBusy();\n }\n\n /**\n * Move axis to absolute position.\n * @param position Absolute position.\n * @param unit Units of position.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async moveAbsolute(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.ABS);\n request.setArg(position);\n request.setUnit(unit);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Moves the axis to the maximum position as specified by limit.max.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async moveMax(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.MAX);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Moves the axis to the minimum position as specified by limit.min.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async moveMin(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.MIN);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Move axis to position relative to current position.\n * @param position Relative position.\n * @param unit Units of position.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async moveRelative(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.REL);\n request.setArg(position);\n request.setUnit(unit);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Begins to move axis at specified speed.\n * @param velocity Movement velocity.\n * @param unit Units of velocity.\n */\n public async moveVelocity(\n velocity: number,\n unit: Velocity | AngularVelocity | Native = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.VEL);\n request.setArg(velocity);\n request.setUnit(unit);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Returns current axis position.\n * @param unit Units of position.\n * @return Axis position.\n */\n public async getPosition(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number> {\n const request = new gateway.DeviceGetSettingRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setSetting('pos');\n request.setUnit(unit);\n\n const response = await gateway.callAsync<gateway.DeviceGetSettingResponse>(\n 'device/get_setting',\n request,\n gateway.DeviceGetSettingResponse);\n return response.getValue();\n }\n\n /**\n * Sends a generic ASCII command to this axis.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param checkErrors Controls whether to throw an exception when the device rejects the command.\n * @param timeout The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @return A response to the command.\n */\n public async genericCommand(\n command: string,\n checkErrors: boolean = true,\n timeout: number = 0\n ): Promise<Response> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommand(command);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponse>(\n 'interface/generic_command',\n request,\n gateway.GenericCommandResponse);\n return Response.fromProtobuf(response.toObject());\n }\n\n /**\n * Sends a generic ASCII command to this axis and expect multiple responses.\n * Responses are returned in order of arrival.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param checkErrors Controls whether to throw an exception when a device rejects the command.\n * @param timeout The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @return All responses to the command.\n */\n public async genericCommandMultiResponse(\n command: string,\n checkErrors: boolean = true,\n timeout: number = 0\n ): Promise<Response[]> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommand(command);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponseCollection>(\n 'interface/generic_command_multi_response',\n request,\n gateway.GenericCommandResponseCollection);\n return response.toObject().responsesList.map(resp => Response.fromProtobuf(resp));\n }\n\n /**\n * Sends a generic ASCII command to this axis without expecting a response and without adding a message ID\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n */\n public async genericCommandNoResponse(\n command: string\n ): Promise<void> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommand(command);\n\n await gateway.callAsync('interface/generic_command_no_response', request);\n }\n\n /**\n * Formats parameters into a command and performs unit conversions.\n * Parameters in the command template are denoted by a question mark.\n * Command returned is only valid for this axis and this device.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param commandTemplate Template of a command to prepare. Parameters are denoted by question marks.\n * @param parameters Variable number of command parameters.\n * @return Command with converted parameters.\n */\n public prepareCommand(\n commandTemplate: string,\n ...parameters: Measurement[]\n ): string {\n const request = new gateway.PrepareCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommandTemplate(commandTemplate);\n request.setParametersList(parameters.map(Measurement.toProtobuf));\n\n const response = gateway.callSync<gateway.PrepareCommandResponse>(\n 'device/prepare_command',\n request,\n gateway.PrepareCommandResponse);\n return response.getCommand();\n }\n\n /**\n * Returns a string that represents the axis.\n * @return A string that represents the axis.\n */\n public toString(): string {\n const request = new gateway.ToStringRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = gateway.callSync<gateway.ToStringResponse>(\n 'device/axis_to_string',\n request,\n gateway.ToStringResponse);\n return response.getToStr();\n }\n\n /**\n * Returns a serialization of the current axis state that can be saved and reapplied.\n * @return A serialization of the current state of the axis.\n */\n public async getState(): Promise<string> {\n const request = new gateway.GetStateRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = await gateway.callAsync<gateway.GetStateResponse>(\n 'device/get_state',\n request,\n gateway.GetStateResponse);\n return response.getState();\n }\n\n /**\n * Applies a saved state to an axis.\n * @param state The state object to apply to this axis.\n */\n public async setState(\n state: string\n ): Promise<void> {\n const request = new gateway.SetStateRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setState(state);\n\n await gateway.callAsync('device/set_state', request);\n }\n\n /**\n * Checks if a state can be applied to this axis.\n * This only covers exceptions that can be determined statically such as mismatches of ID or version,\n * the process of applying the state can still fail when running.\n * @param state The state object to check against.\n * @return An explanation of why this state cannot be set to this axis.\n */\n public async canSetState(\n state: string\n ): Promise<string> {\n const request = new gateway.CanSetStateRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setState(state);\n\n const response = await gateway.callAsync<gateway.CanSetStateAxisResponse>(\n 'device/can_set_state',\n request,\n gateway.CanSetStateAxisResponse);\n return response.getError();\n }\n\n /**\n * Returns identity.\n * @return Axis identity.\n */\n private _retrieveIdentity(): AxisIdentity {\n const request = new gateway.DeviceGetAxisIdentityRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = gateway.callSync<gateway.DeviceGetAxisIdentityResponse>(\n 'device/get_axis_identity',\n request,\n gateway.DeviceGetAxisIdentityResponse);\n return AxisIdentity.fromProtobuf(response.getIdentity()!.toObject());\n }\n}\n"]}
1
+ {"version":3,"file":"axis.js","sourceRoot":"","sources":["../../../src/ascii/axis.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtD,mDAA+C;AAE/C,yCAAsC;AACtC,mDAA+C;AAC/C,oCAAsH;AACtH,yCAAsC;AACtC,gDAA6C;AAC7C,oDAAsC;AACtC,uCAAwC;AAExC;;GAEG;AACH,MAAa,IAAI;IA6Ef,YAAY,MAAc,EAAE,UAAkB;QAC5C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,IAAI,qBAAW,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACpD,CAAC;IAlFD;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;;OAGG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAGD;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAW,YAAY;QACrB,OA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O,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEjC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,0BAA0B,EAC1B,OAAO,EACP,OAAO,CAAC,6BAA6B,CAAC,CAAC;QACzC,OAAO,4BAAY,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,EAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAzjBD,oBAyjBC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Device } from './device';\nimport { AxisIdentity } from './axis_identity';\nimport { AxisType } from './axis_type';\nimport { Warnings } from './warnings';\nimport { AxisSettings } from './axis_settings';\nimport { Angle, Length, Native, AngularVelocity, Velocity, Acceleration, AngularAcceleration, Units } from '../units';\nimport { Response } from './response';\nimport { Measurement } from '../measurement';\nimport * as gateway from '../gateway';\nimport { AxisStorage } from './storage';\n\n/**\n * Represents an axis of motion associated with a device.\n */\nexport class Axis {\n /**\n * Device that controls this axis.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The axis number identifies the axis on the device.\n * The first axis has the number one.\n */\n public get axisNumber(): number {\n return this._axisNumber;\n }\n private _axisNumber: number;\n\n /**\n * Settings and properties of this axis.\n */\n public get settings(): AxisSettings {\n return this._settings;\n }\n private _settings: AxisSettings;\n\n /**\n * Key-value storage of this axis.\n */\n public get storage(): AxisStorage {\n return this._storage;\n }\n private _storage: AxisStorage;\n\n /**\n * Warnings and faults of this axis.\n */\n public get warnings(): Warnings {\n return this._warnings;\n }\n private _warnings: Warnings;\n\n /**\n * Identity of the axis.\n */\n public get identity(): AxisIdentity {\n return this._retrieveIdentity();\n }\n\n /**\n * Unique ID of the peripheral hardware.\n */\n public get peripheralId(): number {\n return this.identity.peripheralId;\n }\n\n /**\n * Name of the peripheral.\n */\n public get peripheralName(): string {\n return this.identity.peripheralName;\n }\n\n /**\n * Indicates whether the axis is a peripheral or part of an integrated device.\n */\n public get isPeripheral(): boolean {\n return this.identity.isPeripheral;\n }\n\n /**\n * Determines the type of an axis and units it accepts.\n */\n public get axisType(): AxisType {\n return this.identity.axisType;\n }\n\n constructor(device: Device, axisNumber: number) {\n this._device = device;\n this._axisNumber = axisNumber;\n this._settings = new AxisSettings(this);\n this._storage = new AxisStorage(this);\n this._warnings = new Warnings(device, axisNumber);\n }\n\n /**\n * Homes axis. Axis returns to its homing position.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async home(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceHomeRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/home', request);\n }\n\n /**\n * Stops ongoing axis movement. Decelerates until zero speed.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n */\n public async stop(\n waitUntilIdle: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceStopRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setWaitUntilIdle(waitUntilIdle);\n\n await gateway.callAsync('device/stop', request);\n }\n\n /**\n * Parks the axis in anticipation of turning the power off.\n * It can later be powered on, unparked, and moved without first having to home it.\n */\n public async park(): Promise<void> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n await gateway.callAsync('device/park', request);\n }\n\n /**\n * Unparks axis. Axis will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n await gateway.callAsync('device/unpark', request);\n }\n\n /**\n * Returns bool indicating whether the axis is parked or not.\n * @return True if the axis is currently parked. False otherwise.\n */\n public async isParked(): Promise<boolean> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = await gateway.callAsync<gateway.BoolResponse>(\n 'device/is_parked',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n\n /**\n * Waits until axis stops moving.\n * @param throwErrorOnFault Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n throwErrorOnFault: boolean = true\n ): Promise<void> {\n const request = new gateway.DeviceWaitUntilIdleRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setThrowErrorOnFault(throwErrorOnFault);\n\n await gateway.callAsync('device/wait_until_idle', request);\n }\n\n /**\n * Returns bool indicating whether the axis is executing a motion command.\n * @return True if the axis is currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = await gateway.callAsync<gateway.BoolResponse>(\n 'device/is_busy',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n\n /**\n * Move axis to absolute position.\n * @param position Absolute position.\n * @param unit Units of position.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n * @param velocity Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * @param velocityUnit Units of velocity.\n * @param acceleration Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * @param accelerationUnit Units of acceleration.\n */\n public async moveAbsolute(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n waitUntilIdle: boolean = true,\n velocity: number = 0,\n velocityUnit: Velocity | AngularVelocity | Native = Units.NATIVE,\n acceleration: number = 0,\n accelerationUnit: Acceleration | AngularAcceleration | Native = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.ABS);\n request.setArg(position);\n request.setUnit(unit);\n request.setWaitUntilIdle(waitUntilIdle);\n request.setVelocity(velocity);\n request.setVelocityUnit(velocityUnit);\n request.setAcceleration(acceleration);\n request.setAccelerationUnit(accelerationUnit);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Moves the axis to the maximum position as specified by limit.max.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n * @param velocity Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * @param velocityUnit Units of velocity.\n * @param acceleration Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * @param accelerationUnit Units of acceleration.\n */\n public async moveMax(\n waitUntilIdle: boolean = true,\n velocity: number = 0,\n velocityUnit: Velocity | AngularVelocity | Native = Units.NATIVE,\n acceleration: number = 0,\n accelerationUnit: Acceleration | AngularAcceleration | Native = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.MAX);\n request.setWaitUntilIdle(waitUntilIdle);\n request.setVelocity(velocity);\n request.setVelocityUnit(velocityUnit);\n request.setAcceleration(acceleration);\n request.setAccelerationUnit(accelerationUnit);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Moves the axis to the minimum position as specified by limit.min.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n * @param velocity Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * @param velocityUnit Units of velocity.\n * @param acceleration Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * @param accelerationUnit Units of acceleration.\n */\n public async moveMin(\n waitUntilIdle: boolean = true,\n velocity: number = 0,\n velocityUnit: Velocity | AngularVelocity | Native = Units.NATIVE,\n acceleration: number = 0,\n accelerationUnit: Acceleration | AngularAcceleration | Native = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.MIN);\n request.setWaitUntilIdle(waitUntilIdle);\n request.setVelocity(velocity);\n request.setVelocityUnit(velocityUnit);\n request.setAcceleration(acceleration);\n request.setAccelerationUnit(accelerationUnit);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Move axis to position relative to current position.\n * @param position Relative position.\n * @param unit Units of position.\n * @param waitUntilIdle Determines whether function should return after the movement is finished or just started.\n * @param velocity Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * @param velocityUnit Units of velocity.\n * @param acceleration Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * @param accelerationUnit Units of acceleration.\n */\n public async moveRelative(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n waitUntilIdle: boolean = true,\n velocity: number = 0,\n velocityUnit: Velocity | AngularVelocity | Native = Units.NATIVE,\n acceleration: number = 0,\n accelerationUnit: Acceleration | AngularAcceleration | Native = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.REL);\n request.setArg(position);\n request.setUnit(unit);\n request.setWaitUntilIdle(waitUntilIdle);\n request.setVelocity(velocity);\n request.setVelocityUnit(velocityUnit);\n request.setAcceleration(acceleration);\n request.setAccelerationUnit(accelerationUnit);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Begins to move axis at specified speed.\n * @param velocity Movement velocity.\n * @param unit Units of velocity.\n * @param acceleration Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * @param accelerationUnit Units of acceleration.\n */\n public async moveVelocity(\n velocity: number,\n unit: Velocity | AngularVelocity | Native = Units.NATIVE,\n acceleration: number = 0,\n accelerationUnit: Acceleration | AngularAcceleration | Native = Units.NATIVE\n ): Promise<void> {\n const request = new gateway.DeviceMoveRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setType(gateway.DeviceMoveRequest.MoveType.VEL);\n request.setArg(velocity);\n request.setUnit(unit);\n request.setAcceleration(acceleration);\n request.setAccelerationUnit(accelerationUnit);\n\n await gateway.callAsync('device/move', request);\n }\n\n /**\n * Returns current axis position.\n * @param unit Units of position.\n * @return Axis position.\n */\n public async getPosition(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number> {\n const request = new gateway.DeviceGetSettingRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setSetting('pos');\n request.setUnit(unit);\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'device/get_setting',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Sends a generic ASCII command to this axis.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param checkErrors Controls whether to throw an exception when the device rejects the command.\n * @param timeout The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @return A response to the command.\n */\n public async genericCommand(\n command: string,\n checkErrors: boolean = true,\n timeout: number = 0\n ): Promise<Response> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommand(command);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponse>(\n 'interface/generic_command',\n request,\n gateway.GenericCommandResponse);\n return Response.fromProtobuf(response.toObject());\n }\n\n /**\n * Sends a generic ASCII command to this axis and expect multiple responses.\n * Responses are returned in order of arrival.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param checkErrors Controls whether to throw an exception when a device rejects the command.\n * @param timeout The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @return All responses to the command.\n */\n public async genericCommandMultiResponse(\n command: string,\n checkErrors: boolean = true,\n timeout: number = 0\n ): Promise<Response[]> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommand(command);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponseCollection>(\n 'interface/generic_command_multi_response',\n request,\n gateway.GenericCommandResponseCollection);\n return response.toObject().responsesList.map(resp => Response.fromProtobuf(resp));\n }\n\n /**\n * Sends a generic ASCII command to this axis without expecting a response and without adding a message ID\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n */\n public async genericCommandNoResponse(\n command: string\n ): Promise<void> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommand(command);\n\n await gateway.callAsync('interface/generic_command_no_response', request);\n }\n\n /**\n * Formats parameters into a command and performs unit conversions.\n * Parameters in the command template are denoted by a question mark.\n * Command returned is only valid for this axis and this device.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param commandTemplate Template of a command to prepare. Parameters are denoted by question marks.\n * @param parameters Variable number of command parameters.\n * @return Command with converted parameters.\n */\n public prepareCommand(\n commandTemplate: string,\n ...parameters: Measurement[]\n ): string {\n const request = new gateway.PrepareCommandRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setCommandTemplate(commandTemplate);\n request.setParametersList(parameters.map(Measurement.toProtobuf));\n\n const response = gateway.callSync<gateway.StringResponse>(\n 'device/prepare_command',\n request,\n gateway.StringResponse);\n return response.getValue();\n }\n\n /**\n * Returns a string that represents the axis.\n * @return A string that represents the axis.\n */\n public toString(): string {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = gateway.callSync<gateway.StringResponse>(\n 'device/axis_to_string',\n request,\n gateway.StringResponse);\n return response.getValue();\n }\n\n /**\n * Returns a serialization of the current axis state that can be saved and reapplied.\n * @return A serialization of the current state of the axis.\n */\n public async getState(): Promise<string> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = await gateway.callAsync<gateway.StringResponse>(\n 'device/get_state',\n request,\n gateway.StringResponse);\n return response.getValue();\n }\n\n /**\n * Applies a saved state to an axis.\n * @param state The state object to apply to this axis.\n */\n public async setState(\n state: string\n ): Promise<void> {\n const request = new gateway.SetStateRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setState(state);\n\n await gateway.callAsync('device/set_state', request);\n }\n\n /**\n * Checks if a state can be applied to this axis.\n * This only covers exceptions that can be determined statically such as mismatches of ID or version,\n * the process of applying the state can still fail when running.\n * @param state The state object to check against.\n * @return An explanation of why this state cannot be set to this axis.\n */\n public async canSetState(\n state: string\n ): Promise<string> {\n const request = new gateway.CanSetStateRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n request.setState(state);\n\n const response = await gateway.callAsync<gateway.CanSetStateAxisResponse>(\n 'device/can_set_axis_state',\n request,\n gateway.CanSetStateAxisResponse);\n return response.getError();\n }\n\n /**\n * Returns identity.\n * @return Axis identity.\n */\n private _retrieveIdentity(): AxisIdentity {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n request.setAxis(this.axisNumber);\n\n const response = gateway.callSync<gateway.DeviceGetAxisIdentityResponse>(\n 'device/get_axis_identity',\n request,\n gateway.DeviceGetAxisIdentityResponse);\n return AxisIdentity.fromProtobuf(response.getIdentity()!.toObject());\n }\n}\n"]}
@@ -52,4 +52,23 @@ export declare class AxisSettings {
52
52
  * @return Setting value.
53
53
  */
54
54
  convertFromNativeUnits(setting: string, value: number, unit: Units): number;
55
+ /**
56
+ * Returns the default value of a setting.
57
+ * @param setting Name of the setting.
58
+ * @param unit Units of setting.
59
+ * @return Default setting value.
60
+ */
61
+ getDefault(setting: string, unit?: Units): number;
62
+ /**
63
+ * Returns the default value of a setting as a string.
64
+ * @param setting Name of the setting.
65
+ * @return Default setting value.
66
+ */
67
+ getDefaultString(setting: string): string;
68
+ /**
69
+ * Indicates if given setting can be converted from and to native units.
70
+ * @param setting Name of the setting.
71
+ * @return True if unit conversion can be performed.
72
+ */
73
+ canConvertNativeUnits(setting: string): boolean;
55
74
  }