@zaber/motion 9.2.1 → 9.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/binding/wasm/zaber-motion-core.wasm +0 -0
  2. package/dist/lib/ascii/accel_type.d.ts +17 -0
  3. package/dist/lib/ascii/accel_type.d.ts.map +1 -0
  4. package/dist/lib/ascii/accel_type.js +26 -0
  5. package/dist/lib/ascii/accel_type.js.map +1 -0
  6. package/dist/lib/ascii/axis.d.ts +8 -0
  7. package/dist/lib/ascii/axis.d.ts.map +1 -1
  8. package/dist/lib/ascii/axis.js +22 -0
  9. package/dist/lib/ascii/axis.js.map +1 -1
  10. package/dist/lib/ascii/axis_settings.d.ts +6 -0
  11. package/dist/lib/ascii/axis_settings.d.ts.map +1 -1
  12. package/dist/lib/ascii/axis_settings.js +19 -0
  13. package/dist/lib/ascii/axis_settings.js.map +1 -1
  14. package/dist/lib/ascii/device.d.ts +8 -0
  15. package/dist/lib/ascii/device.d.ts.map +1 -1
  16. package/dist/lib/ascii/device.js +21 -0
  17. package/dist/lib/ascii/device.js.map +1 -1
  18. package/dist/lib/ascii/device_settings.d.ts +6 -0
  19. package/dist/lib/ascii/device_settings.d.ts.map +1 -1
  20. package/dist/lib/ascii/device_settings.js +18 -0
  21. package/dist/lib/ascii/device_settings.js.map +1 -1
  22. package/dist/lib/ascii/index.d.ts +1 -0
  23. package/dist/lib/ascii/index.d.ts.map +1 -1
  24. package/dist/lib/ascii/index.js +1 -0
  25. package/dist/lib/ascii/index.js.map +1 -1
  26. package/dist/lib/ascii/lockstep.js +2 -2
  27. package/dist/lib/ascii/lockstep.js.map +1 -1
  28. package/dist/lib/gateway/constants.js +1 -1
  29. package/dist/lib/gateway/constants.js.map +1 -1
  30. package/dist/lib/index.d.ts +2 -0
  31. package/dist/lib/index.d.ts.map +1 -1
  32. package/dist/lib/index.js +3 -1
  33. package/dist/lib/index.js.map +1 -1
  34. package/dist/lib/measurement_or_value.d.ts +21 -0
  35. package/dist/lib/measurement_or_value.d.ts.map +1 -0
  36. package/dist/lib/measurement_or_value.js +67 -0
  37. package/dist/lib/measurement_or_value.js.map +1 -0
  38. package/dist/lib/movement/default_motion_units.d.ts +32 -0
  39. package/dist/lib/movement/default_motion_units.d.ts.map +1 -0
  40. package/dist/lib/movement/default_motion_units.js +47 -0
  41. package/dist/lib/movement/default_motion_units.js.map +1 -0
  42. package/dist/lib/movement/index.d.ts +3 -0
  43. package/dist/lib/movement/index.d.ts.map +1 -0
  44. package/dist/lib/movement/index.js +21 -0
  45. package/dist/lib/movement/index.js.map +1 -0
  46. package/dist/lib/movement/moveable.d.ts +418 -0
  47. package/dist/lib/movement/moveable.d.ts.map +1 -0
  48. package/dist/lib/movement/moveable.js +639 -0
  49. package/dist/lib/movement/moveable.js.map +1 -0
  50. package/dist/lib/requests/device_has_command_request.d.ts +17 -0
  51. package/dist/lib/requests/device_has_command_request.d.ts.map +1 -0
  52. package/dist/lib/requests/device_has_command_request.js +51 -0
  53. package/dist/lib/requests/device_has_command_request.js.map +1 -0
  54. package/dist/lib/requests/index.d.ts +12 -1
  55. package/dist/lib/requests/index.d.ts.map +1 -1
  56. package/dist/lib/requests/index.js +12 -1
  57. package/dist/lib/requests/index.js.map +1 -1
  58. package/dist/lib/requests/lockstep_move_request.d.ts +4 -0
  59. package/dist/lib/requests/lockstep_move_request.d.ts.map +1 -1
  60. package/dist/lib/requests/lockstep_move_request.js +14 -1
  61. package/dist/lib/requests/lockstep_move_request.js.map +1 -1
  62. package/dist/lib/requests/moveable_driver_enable_request.d.ts +14 -0
  63. package/dist/lib/requests/moveable_driver_enable_request.d.ts.map +1 -0
  64. package/dist/lib/requests/moveable_driver_enable_request.js +39 -0
  65. package/dist/lib/requests/moveable_driver_enable_request.js.map +1 -0
  66. package/dist/lib/requests/moveable_get_acceleration_request.d.ts +17 -0
  67. package/dist/lib/requests/moveable_get_acceleration_request.d.ts.map +1 -0
  68. package/dist/lib/requests/moveable_get_acceleration_request.js +44 -0
  69. package/dist/lib/requests/moveable_get_acceleration_request.js.map +1 -0
  70. package/dist/lib/requests/moveable_get_setting_request.d.ts +15 -0
  71. package/dist/lib/requests/moveable_get_setting_request.d.ts.map +1 -0
  72. package/dist/lib/requests/moveable_get_setting_request.js +39 -0
  73. package/dist/lib/requests/moveable_get_setting_request.js.map +1 -0
  74. package/dist/lib/requests/moveable_id_request.d.ts +13 -0
  75. package/dist/lib/requests/moveable_id_request.d.ts.map +1 -0
  76. package/dist/lib/requests/moveable_id_request.js +35 -0
  77. package/dist/lib/requests/moveable_id_request.js.map +1 -0
  78. package/dist/lib/requests/moveable_move_request.d.ts +21 -0
  79. package/dist/lib/requests/moveable_move_request.d.ts.map +1 -0
  80. package/dist/lib/requests/moveable_move_request.js +72 -0
  81. package/dist/lib/requests/moveable_move_request.js.map +1 -0
  82. package/dist/lib/requests/moveable_move_sin_request.d.ts +18 -0
  83. package/dist/lib/requests/moveable_move_sin_request.d.ts.map +1 -0
  84. package/dist/lib/requests/moveable_move_sin_request.js +61 -0
  85. package/dist/lib/requests/moveable_move_sin_request.js.map +1 -0
  86. package/dist/lib/requests/moveable_set_acceleration_request.d.ts +17 -0
  87. package/dist/lib/requests/moveable_set_acceleration_request.d.ts.map +1 -0
  88. package/dist/lib/requests/moveable_set_acceleration_request.js +52 -0
  89. package/dist/lib/requests/moveable_set_acceleration_request.js.map +1 -0
  90. package/dist/lib/requests/moveable_set_setting_request.d.ts +15 -0
  91. package/dist/lib/requests/moveable_set_setting_request.d.ts.map +1 -0
  92. package/dist/lib/requests/moveable_set_setting_request.js +46 -0
  93. package/dist/lib/requests/moveable_set_setting_request.js.map +1 -0
  94. package/dist/lib/requests/moveable_setup_request.d.ts +19 -0
  95. package/dist/lib/requests/moveable_setup_request.d.ts.map +1 -0
  96. package/dist/lib/requests/moveable_setup_request.js +53 -0
  97. package/dist/lib/requests/moveable_setup_request.js.map +1 -0
  98. package/dist/lib/requests/moveable_type.d.ts +14 -0
  99. package/dist/lib/requests/moveable_type.d.ts.map +1 -0
  100. package/dist/lib/requests/moveable_type.js +23 -0
  101. package/dist/lib/requests/moveable_type.js.map +1 -0
  102. package/dist/lib/requests/moveable_wait_until_idle_request.d.ts +14 -0
  103. package/dist/lib/requests/moveable_wait_until_idle_request.d.ts.map +1 -0
  104. package/dist/lib/requests/moveable_wait_until_idle_request.js +39 -0
  105. package/dist/lib/requests/moveable_wait_until_idle_request.js.map +1 -0
  106. package/package.json +6 -2
  107. package/dist/lib/requests/lockstep_disable_request.d.ts +0 -16
  108. package/dist/lib/requests/lockstep_disable_request.d.ts.map +0 -1
  109. package/dist/lib/requests/lockstep_disable_request.js +0 -47
  110. package/dist/lib/requests/lockstep_disable_request.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"device_settings.js","sourceRoot":"","sources":["../../../src/ascii/device_settings.ts"],"names":[],"mappings":";AAAA,wDAAwD;AACxD,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,oDAAsC;AACtC,sDAAwC;AACxC,8EAAyE;AACzE,oCAAiC;AAGjC,+EAAwE;AAKxE;;GAEG;AACH,MAAa,cAAc;IAGzB,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACd,OAAe,EACf,OAAc,aAAK,CAAC,MAAM;QAE1B,MAAM,OAAO,GAAuD;YAClE,GAAG,QAAQ,CAAC,uBAAuB,CAAC,OAAO;YAC3C,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW;YAChD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa;YAClC,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,IAAI;YACV,QAAQ;gBACN,OAAO,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACzD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ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AAQ,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,eAAe,CAC1B,GAAG,QAAsB;QAEzB,MAAM,OAAO,GAA4D;YACvE,GAAG,QAAQ,CAAC,4BAA4B,CAAC,OAAO;YAChD,WAAW,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW;YAChD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa;YAClC,QAAQ,EAAE,QAAQ;YAClB,QAAQ;gBACN,OAAO,QAAQ,CAAC,4BAA4B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,0BAA0B,EAC1B,OAAO,EACP,QAAQ,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACzC,OAAO,QAAQ,CAAC,OAAO,CAAC;IAC1B,CAAC;CACF;AA9lBD,wCA8lBC","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { UnitConversionDescriptor } from '../unit_conversion_descriptor';\nimport { Units } from '../units';\nimport { Device } from './device';\nimport { GetSetting } from './get_setting';\nimport { GetSettingsByTypeResult } from './get_settings_by_type_result';\nimport { GetSettingResult } from './get_setting_result';\nimport { GetSettingTypedResult } from './get_setting_typed_result';\nimport { TypedSetting } from './typed_setting';\n\n/**\n * Class providing access to various device settings and properties.\n */\nexport class DeviceSettings {\n private _device: Device;\n\n constructor(device: Device) {\n this._device = device;\n }\n\n /**\n * Returns any device setting or property.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Setting value.\n */\n public async get(\n setting: string,\n unit: Units = Units.NATIVE\n ): Promise<number> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns any device setting or property in its native type.\n * Note that specifying units will cause settings that are otherwise integers to be returned as floats.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting to convert result to.\n * @returns Setting value.\n */\n public async getTyped(\n setting: string,\n unit: Units = Units.NATIVE\n ): Promise<TypedSetting> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.TypedSettingResponse>(\n 'device/get_setting_typed',\n request,\n requests.TypedSettingResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any device setting.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n */\n public async set(\n setting: string,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.DeviceSetSettingRequest & gateway.Message = {\n ...requests.DeviceSetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceSetSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting', request);\n }\n\n /**\n * Returns any device setting or property as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getString(\n setting: string\n ): Promise<string> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringResponse>(\n 'device/get_setting_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any device setting as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setString(\n setting: string,\n value: string\n ): Promise<void> {\n const request: requests.DeviceSetSettingStrRequest & gateway.Message = {\n ...requests.DeviceSetSettingStrRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingStrRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_str', request);\n }\n\n /**\n * Returns any device setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getInt(\n setting: string\n ): Promise<bigint> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.Int64Response>(\n 'device/get_setting_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any device setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setInt(\n setting: string,\n value: bigint\n ): Promise<void> {\n const request: requests.DeviceSetSettingIntRequest & gateway.Message = {\n ...requests.DeviceSetSettingIntRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingIntRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_int', request);\n }\n\n /**\n * Returns any device setting or property as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getBool(\n setting: string\n ): Promise<boolean> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/get_setting_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any device setting as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setBool(\n setting: string,\n value: boolean\n ): Promise<void> {\n const request: requests.DeviceSetSettingBoolRequest & gateway.Message = {\n ...requests.DeviceSetSettingBoolRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingBoolRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_bool', request);\n }\n\n /**\n * Convert arbitrary setting value to Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in units specified by following argument.\n * @param unit Units of the value.\n * @param [round=false] If true, round the result to the device's native decimal places.\n * @returns Setting value.\n */\n public convertToNativeUnits(\n setting: string,\n value: number,\n unit: Units,\n round: boolean = false\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n value: value,\n unit: unit,\n round: round,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Convert arbitrary setting value from Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in Zaber native units.\n * @param unit Units to convert value to.\n * @returns Setting value.\n */\n public convertFromNativeUnits(\n setting: string,\n value: number,\n unit: Units\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n fromNative: true,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting.\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Default setting value.\n */\n public getDefault(\n setting: string,\n unit: Units = Units.NATIVE\n ): number {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/get_setting_default',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a string.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultString(\n setting: string\n ): string {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/get_setting_default_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as an integer.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultInt(\n setting: string\n ): bigint {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.Int64Response>(\n 'device/get_setting_default_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a boolean.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultBool(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/get_setting_default_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Indicates if given setting can be converted from and to native units.\n * @param setting Name of the setting.\n * @returns True if unit conversion can be performed.\n */\n public canConvertNativeUnits(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/can_convert_setting',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Retrieves unit conversion descriptor for a setting, allowing unit conversion without a device.\n * The descriptor can be used with the ConvertTo/FromNativeUnits methods of the UnitTable class.\n * @param setting Name of the setting.\n * @returns The unit conversion descriptor for the setting.\n */\n public getUnitConversionDescriptor(\n setting: string\n ): UnitConversionDescriptor {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<UnitConversionDescriptor>(\n 'device/get_setting_unit_conversion',\n request,\n UnitConversionDescriptor.fromBinary);\n return response;\n }\n\n /**\n * Gets the value of an axis scope setting for each axis on the device.\n * Values may be NaN where the setting is not applicable.\n * @param setting Name of the setting.\n * @returns The setting values on each axis.\n */\n public async getFromAllAxes(\n setting: string\n ): Promise<number[]> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleArrayResponse>(\n 'device/get_setting_from_all_axes',\n request,\n requests.DoubleArrayResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Gets many setting values in as few device requests as possible.\n * @param settings The settings to read.\n * @returns The setting values read.\n */\n public async getMany(\n ...settings: GetSetting[]\n ): Promise<GetSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n settings: settings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetSettingResults>(\n 'device/get_many_settings',\n request,\n requests.GetSettingResults.fromBinary);\n return response.results;\n }\n\n /**\n * Returns many device settings or properties in their native types in as few requests as possible.\n * Note that specifying units will always return floating point values,\n * even for settings that are natively integers.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param settings The settings to read.\n * @returns The setting values read.\n */\n public async getManyTyped(\n ...settings: GetSetting[]\n ): Promise<GetSettingTypedResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n settings: settings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetSettingsTypedResponse>(\n 'device/get_many_settings_typed',\n request,\n requests.GetSettingsTypedResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Gets many settings in as few requests as possible, parsing each as the caller-specified type.\n * Unlike GetManyTyped, the type is determined by the caller, not the device database.\n * If a value cannot be parsed as the requested type, an error is thrown.\n * @param [options.floatSettings=[]] Settings to read as float values. Supports unit conversion.\n * @param [options.intSettings=[]] Settings to read as integer values. Unit conversion is not supported.\n * @param [options.boolSettings=[]] Settings to read as boolean values.\n * @param [options.stringSettings=[]] Settings to read as string values.\n * @returns The setting values grouped by type.\n */\n public async getManyByType(\n options: DeviceSettings.GetManyByTypeOptions = {}\n ): Promise<GetSettingsByTypeResult> {\n const {\n floatSettings = [],\n intSettings = [],\n boolSettings = [],\n stringSettings = [],\n } = options;\n const request: requests.DeviceGetManyByTypeRequest & gateway.Message = {\n ...requests.DeviceGetManyByTypeRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n floatSettings: floatSettings,\n intSettings: intSettings,\n boolSettings: boolSettings,\n stringSettings: stringSettings,\n toBinary() {\n return requests.DeviceGetManyByTypeRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<GetSettingsByTypeResult>(\n 'device/get_many_settings_by_type',\n request,\n GetSettingsByTypeResult.fromBinary);\n return response;\n }\n\n /**\n * Gets many setting values in the same tick, ensuring their values are synchronized.\n * Requires at least Firmware 7.35.\n * @param settings The settings to read.\n * @returns The setting values read.\n */\n public async getSynchronized(\n ...settings: GetSetting[]\n ): Promise<GetSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n settings: settings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetSettingResults>(\n 'device/get_sync_settings',\n request,\n requests.GetSettingResults.fromBinary);\n return response.results;\n }\n}\n\nnamespace DeviceSettings {\n export interface GetManyByTypeOptions {\n /**\n * Settings to read as float values. Supports unit conversion.\n */\n floatSettings?: GetSetting[];\n /**\n * Settings to read as integer values. Unit conversion is not supported.\n */\n intSettings?: GetSetting[];\n /**\n * Settings to read as boolean values.\n */\n boolSettings?: GetSetting[];\n /**\n * Settings to read as string values.\n */\n stringSettings?: GetSetting[];\n }\n}\n"]}
1
+ {"version":3,"file":"device_settings.js","sourceRoot":"","sources":["../../../src/ascii/device_settings.ts"],"names":[],"mappings":";AAAA,wDAAwD;AACxD,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,oDAAsC;AACtC,sDAAwC;AACxC,8EAAyE;AACzE,oCAAiC;AAGjC,+EAAwE;AAKxE;;GAEG;AACH,MAAa,cAAc;IAGzB,YAAY,MAAc;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,GAAG,CACd,OAAe,EACf,OAAc,aAAK,CAAC,MAAM;QAE1B,MAAM,OAAO,GAAuD;YAClE,GAAG,QAAQ,CAAC,uBAAuB,C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,MAAM,OAAO,CAAC,SAAS,CACtC,0BAA0B,EAC1B,OAAO,EACP,QAAQ,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;QACzC,OAAO,QAAQ,CAAC,OAAO,CAAC;IAC1B,CAAC;CACF;AAvnBD,wCAunBC","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { UnitConversionDescriptor } from '../unit_conversion_descriptor';\nimport { Units } from '../units';\nimport { Device } from './device';\nimport { GetSetting } from './get_setting';\nimport { GetSettingsByTypeResult } from './get_settings_by_type_result';\nimport { GetSettingResult } from './get_setting_result';\nimport { GetSettingTypedResult } from './get_setting_typed_result';\nimport { TypedSetting } from './typed_setting';\n\n/**\n * Class providing access to various device settings and properties.\n */\nexport class DeviceSettings {\n private _device: Device;\n\n constructor(device: Device) {\n this._device = device;\n }\n\n /**\n * Returns any device setting or property.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Setting value.\n */\n public async get(\n setting: string,\n unit: Units = Units.NATIVE\n ): Promise<number> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/get_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns any device setting or property in its native type.\n * Note that specifying units will cause settings that are otherwise integers to be returned as floats.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting to convert result to.\n * @returns Setting value.\n */\n public async getTyped(\n setting: string,\n unit: Units = Units.NATIVE\n ): Promise<TypedSetting> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.TypedSettingResponse>(\n 'device/get_setting_typed',\n request,\n requests.TypedSettingResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any device setting.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n */\n public async set(\n setting: string,\n value: number,\n unit: Units = Units.NATIVE\n ): Promise<void> {\n const request: requests.DeviceSetSettingRequest & gateway.Message = {\n ...requests.DeviceSetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceSetSettingRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting', request);\n }\n\n /**\n * Returns any device setting or property as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getString(\n setting: string\n ): Promise<string> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.StringResponse>(\n 'device/get_setting_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any device setting as a string.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setString(\n setting: string,\n value: string\n ): Promise<void> {\n const request: requests.DeviceSetSettingStrRequest & gateway.Message = {\n ...requests.DeviceSetSettingStrRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingStrRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_str', request);\n }\n\n /**\n * Returns any device setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getInt(\n setting: string\n ): Promise<bigint> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.Int64Response>(\n 'device/get_setting_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any device setting or property as an integer.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setInt(\n setting: string,\n value: bigint\n ): Promise<void> {\n const request: requests.DeviceSetSettingIntRequest & gateway.Message = {\n ...requests.DeviceSetSettingIntRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingIntRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_int', request);\n }\n\n /**\n * Returns any device setting or property as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @returns Setting value.\n */\n public async getBool(\n setting: string\n ): Promise<boolean> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/get_setting_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets any device setting as a boolean.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param setting Name of the setting.\n * @param value Value of the setting.\n */\n public async setBool(\n setting: string,\n value: boolean\n ): Promise<void> {\n const request: requests.DeviceSetSettingBoolRequest & gateway.Message = {\n ...requests.DeviceSetSettingBoolRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n value: value,\n toBinary() {\n return requests.DeviceSetSettingBoolRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/set_setting_bool', request);\n }\n\n /**\n * Convert arbitrary setting value to Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in units specified by following argument.\n * @param unit Units of the value.\n * @param [round=false] If true, round the result to the device's native decimal places.\n * @returns Setting value.\n */\n public convertToNativeUnits(\n setting: string,\n value: number,\n unit: Units,\n round: boolean = false\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n value: value,\n unit: unit,\n round: round,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Convert arbitrary setting value from Zaber native units.\n * @param setting Name of the setting.\n * @param value Value of the setting in Zaber native units.\n * @param unit Units to convert value to.\n * @returns Setting value.\n */\n public convertFromNativeUnits(\n setting: string,\n value: number,\n unit: Units\n ): number {\n const request: requests.DeviceConvertSettingRequest & gateway.Message = {\n ...requests.DeviceConvertSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n fromNative: true,\n setting: setting,\n value: value,\n unit: unit,\n toBinary() {\n return requests.DeviceConvertSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/convert_setting',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting.\n * @param setting Name of the setting.\n * @param [unit=Units.NATIVE] Units of setting.\n * @returns Default setting value.\n */\n public getDefault(\n setting: string,\n unit: Units = Units.NATIVE\n ): number {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n unit: unit,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.DoubleResponse>(\n 'device/get_setting_default',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a string.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultString(\n setting: string\n ): string {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/get_setting_default_str',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as an integer.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultInt(\n setting: string\n ): bigint {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.Int64Response>(\n 'device/get_setting_default_int',\n request,\n requests.Int64Response.fromBinary);\n return response.value;\n }\n\n /**\n * Returns the default value of a setting as a boolean.\n * @param setting Name of the setting.\n * @returns Default setting value.\n */\n public getDefaultBool(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/get_setting_default_bool',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Indicates if given setting can be converted from and to native units.\n * @param setting Name of the setting.\n * @returns True if unit conversion can be performed.\n */\n public canConvertNativeUnits(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/can_convert_setting',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Indicates whether the specified setting exists on this device.\n * @param setting Name of the setting.\n * @returns True if the setting exists on this device.\n */\n public hasSetting(\n setting: string\n ): boolean {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.BoolResponse>(\n 'device/has_setting',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Retrieves unit conversion descriptor for a setting, allowing unit conversion without a device.\n * The descriptor can be used with the ConvertTo/FromNativeUnits methods of the UnitTable class.\n * @param setting Name of the setting.\n * @returns The unit conversion descriptor for the setting.\n */\n public getUnitConversionDescriptor(\n setting: string\n ): UnitConversionDescriptor {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<UnitConversionDescriptor>(\n 'device/get_setting_unit_conversion',\n request,\n UnitConversionDescriptor.fromBinary);\n return response;\n }\n\n /**\n * Gets the value of an axis scope setting for each axis on the device.\n * Values may be NaN where the setting is not applicable.\n * @param setting Name of the setting.\n * @returns The setting values on each axis.\n */\n public async getFromAllAxes(\n setting: string\n ): Promise<number[]> {\n const request: requests.DeviceGetSettingRequest & gateway.Message = {\n ...requests.DeviceGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n setting: setting,\n toBinary() {\n return requests.DeviceGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleArrayResponse>(\n 'device/get_setting_from_all_axes',\n request,\n requests.DoubleArrayResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Gets many setting values in as few device requests as possible.\n * @param settings The settings to read.\n * @returns The setting values read.\n */\n public async getMany(\n ...settings: GetSetting[]\n ): Promise<GetSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n settings: settings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetSettingResults>(\n 'device/get_many_settings',\n request,\n requests.GetSettingResults.fromBinary);\n return response.results;\n }\n\n /**\n * Returns many device settings or properties in their native types in as few requests as possible.\n * Note that specifying units will always return floating point values,\n * even for settings that are natively integers.\n * For more information refer to the [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_settings).\n * @param settings The settings to read.\n * @returns The setting values read.\n */\n public async getManyTyped(\n ...settings: GetSetting[]\n ): Promise<GetSettingTypedResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n settings: settings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetSettingsTypedResponse>(\n 'device/get_many_settings_typed',\n request,\n requests.GetSettingsTypedResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Gets many settings in as few requests as possible, parsing each as the caller-specified type.\n * Unlike GetManyTyped, the type is determined by the caller, not the device database.\n * If a value cannot be parsed as the requested type, an error is thrown.\n * @param [options.floatSettings=[]] Settings to read as float values. Supports unit conversion.\n * @param [options.intSettings=[]] Settings to read as integer values. Unit conversion is not supported.\n * @param [options.boolSettings=[]] Settings to read as boolean values.\n * @param [options.stringSettings=[]] Settings to read as string values.\n * @returns The setting values grouped by type.\n */\n public async getManyByType(\n options: DeviceSettings.GetManyByTypeOptions = {}\n ): Promise<GetSettingsByTypeResult> {\n const {\n floatSettings = [],\n intSettings = [],\n boolSettings = [],\n stringSettings = [],\n } = options;\n const request: requests.DeviceGetManyByTypeRequest & gateway.Message = {\n ...requests.DeviceGetManyByTypeRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n floatSettings: floatSettings,\n intSettings: intSettings,\n boolSettings: boolSettings,\n stringSettings: stringSettings,\n toBinary() {\n return requests.DeviceGetManyByTypeRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<GetSettingsByTypeResult>(\n 'device/get_many_settings_by_type',\n request,\n GetSettingsByTypeResult.fromBinary);\n return response;\n }\n\n /**\n * Gets many setting values in the same tick, ensuring their values are synchronized.\n * Requires at least Firmware 7.35.\n * @param settings The settings to read.\n * @returns The setting values read.\n */\n public async getSynchronized(\n ...settings: GetSetting[]\n ): Promise<GetSettingResult[]> {\n const request: requests.DeviceMultiGetSettingRequest & gateway.Message = {\n ...requests.DeviceMultiGetSettingRequest.DEFAULT,\n interfaceId: this._device.connection.interfaceId,\n device: this._device.deviceAddress,\n settings: settings,\n toBinary() {\n return requests.DeviceMultiGetSettingRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.GetSettingResults>(\n 'device/get_sync_settings',\n request,\n requests.GetSettingResults.fromBinary);\n return response.results;\n }\n}\n\nnamespace DeviceSettings {\n export interface GetManyByTypeOptions {\n /**\n * Settings to read as float values. Supports unit conversion.\n */\n floatSettings?: GetSetting[];\n /**\n * Settings to read as integer values. Unit conversion is not supported.\n */\n intSettings?: GetSetting[];\n /**\n * Settings to read as boolean values.\n */\n boolSettings?: GetSetting[];\n /**\n * Settings to read as string values.\n */\n stringSettings?: GetSetting[];\n }\n}\n"]}
@@ -1,3 +1,4 @@
1
+ export * from './accel_type';
1
2
  export * from './alert_event';
2
3
  export * from './all_axes';
3
4
  export * from './axis';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ascii/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,mBA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C,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kCAAkC,CAAC;AACjD,cAAc,UAAU,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //
18
18
  // ============== DO NOT EDIT DIRECTLY ============== //
19
+ __exportStar(require("./accel_type"), exports);
19
20
  __exportStar(require("./alert_event"), exports);
20
21
  __exportStar(require("./all_axes"), exports);
21
22
  __exportStar(require("./axis"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ascii/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAwD;A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,mDAAiC;AACjC,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,kDAAgC;AAChC,6CAA2B;AAC3B,kDAAgC;AAChC,2DAAyC;AACzC,kDAAgC;AAChC,6CAA2B","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\nexport * from './alert_event';\nexport * from './all_axes';\nexport * from './axis';\nexport * from './axis_group';\nexport * from './axis_identity';\nexport * from './axis_settings';\nexport * from './axis_storage';\nexport * from './axis_type';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_device_response';\nexport * from './connection';\nexport * from './conversion_factor';\nexport * from './device';\nexport * from './device_identity';\nexport * from './device_io';\nexport * from './device_io_info';\nexport * from './device_settings';\nexport * from './device_storage';\nexport * from './digital_output_action';\nexport * from './get_axis_setting';\nexport * from './get_axis_setting_result';\nexport * from './get_axis_setting_typed_result';\nexport * from './get_setting';\nexport * from './get_setting_bool_result';\nexport * from './get_setting_int_result';\nexport * from './get_setting_result';\nexport * from './get_setting_string_result';\nexport * from './get_setting_typed_result';\nexport * from './get_settings_by_type_result';\nexport * from './io_port_label';\nexport * from './io_port_type';\nexport * from './lockstep';\nexport * from './measurement_sequence';\nexport * from './message_type';\nexport * from './mock_device';\nexport * from './mock_peripheral';\nexport * from './oscilloscope';\nexport * from './oscilloscope_capture_properties';\nexport * from './oscilloscope_data';\nexport * from './oscilloscope_data_source';\nexport * from './paramset_info';\nexport * from './pid_tuning';\nexport * from './pvt';\nexport * from './pvt_axis_definition';\nexport * from './pvt_axis_type';\nexport * from './pvt_buffer';\nexport * from './pvt_buffer_axis_units';\nexport * from './pvt_call_action';\nexport * from './pvt_cancel_all_outputs_schedule_action';\nexport * from './pvt_cancel_output_schedule_action';\nexport * from './pvt_csv_data';\nexport * from './pvt_io';\nexport * from './pvt_mode';\nexport * from './pvt_partial_csv_data';\nexport * from './pvt_partial_point';\nexport * from './pvt_partial_sequence_item';\nexport * from './pvt_point';\nexport * from './pvt_sequence';\nexport * from './pvt_sequence_item';\nexport * from './pvt_set_all_analog_outputs_action';\nexport * from './pvt_set_all_digital_outputs_action';\nexport * from './pvt_set_analog_output_action';\nexport * from './pvt_set_digital_output_action';\nexport * from './response';\nexport * from './servo_tuner';\nexport * from './servo_tuning_param';\nexport * from './servo_tuning_paramset';\nexport * from './set_state_axis_response';\nexport * from './set_state_device_response';\nexport * from './setting_constants';\nexport * from './simple_tuning';\nexport * from './simple_tuning_param_definition';\nexport * from './stream';\nexport * from './stream_axis_definition';\nexport * from './stream_axis_type';\nexport * from './stream_buffer';\nexport * from './stream_io';\nexport * from './stream_mode';\nexport * from './streams';\nexport * from './transport';\nexport * from './trigger';\nexport * from './trigger_action';\nexport * from './trigger_condition';\nexport * from './trigger_enabled_state';\nexport * from './trigger_operation';\nexport * from './trigger_state';\nexport * from './triggers';\nexport * from './typed_setting';\nexport * from './unknown_response_event';\nexport * from './warning_flags';\nexport * from './warnings';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ascii/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAwD;AACxD,wDAAwD;AACxD,+CAA6B;AAC7B,gDAA8B;AAC9B,6CAA2B;AAC3B,yCAAuB;AACvB,+CAA6B;AAC7B,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,8CAA4B;AAC5B,gEAA8C;AAC9C,kEAAgD;AAChD,+CAA6B;AAC7B,sDAAoC;AACpC,2CAAyB;AACzB,oDAAkC;AAClC,8CAA4B;AAC5B,mDAAiC;AACjC,oDAAkC;AAClC,mDAAiC;AACjC,0DAAwC;AACxC,qDAAmC;AACnC,4DAA0C;AAC1C,kEAAgD;AAChD,gDAA8B;AAC9B,4DAA0C;AAC1C,2DAAyC;AACzC,uDAAqC;AACrC,8DAA4C;AAC5C,6DAA2C;AAC3C,gEAA8C;AAC9C,kDAAgC;AAChC,iDAA+B;AAC/B,6CAA2B;AAC3B,yDAAuC;AACvC,iDAA+B;AAC/B,gDAA8B;AAC9B,oDAAkC;AAClC,iDAA+B;AAC/B,oEAAkD;AAClD,sDAAoC;AACpC,6DAA2C;AAC3C,kDAAgC;AAChC,+CAA6B;AAC7B,wCAAsB;AACtB,wDAAsC;AACtC,kDAAgC;AAChC,+CAA6B;AAC7B,0DAAwC;AACxC,oDAAkC;AAClC,2EAAyD;AACzD,sEAAoD;AACpD,iDAA+B;AAC/B,2CAAyB;AACzB,6CAA2B;AAC3B,yDAAuC;AACvC,sDAAoC;AACpC,8DAA4C;AAC5C,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,sEAAoD;AACpD,uEAAqD;AACrD,iEAA+C;AAC/C,kEAAgD;AAChD,6CAA2B;AAC3B,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,4DAA0C;AAC1C,8DAA4C;AAC5C,sDAAoC;AACpC,kDAAgC;AAChC,mEAAiD;AACjD,2CAAyB;AACzB,2DAAyC;AACzC,qDAAmC;AACnC,kDAAgC;AAChC,8CAA4B;AAC5B,gDAA8B;AAC9B,4CAA0B;AAC1B,8CAA4B;AAC5B,4CAA0B;AAC1B,mDAAiC;AACjC,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,kDAAgC;AAChC,6CAA2B;AAC3B,kDAAgC;AAChC,2DAAyC;AACzC,kDAAgC;AAChC,6CAA2B","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\nexport * from './accel_type';\nexport * from './alert_event';\nexport * from './all_axes';\nexport * from './axis';\nexport * from './axis_group';\nexport * from './axis_identity';\nexport * from './axis_settings';\nexport * from './axis_storage';\nexport * from './axis_type';\nexport * from './can_set_state_axis_response';\nexport * from './can_set_state_device_response';\nexport * from './connection';\nexport * from './conversion_factor';\nexport * from './device';\nexport * from './device_identity';\nexport * from './device_io';\nexport * from './device_io_info';\nexport * from './device_settings';\nexport * from './device_storage';\nexport * from './digital_output_action';\nexport * from './get_axis_setting';\nexport * from './get_axis_setting_result';\nexport * from './get_axis_setting_typed_result';\nexport * from './get_setting';\nexport * from './get_setting_bool_result';\nexport * from './get_setting_int_result';\nexport * from './get_setting_result';\nexport * from './get_setting_string_result';\nexport * from './get_setting_typed_result';\nexport * from './get_settings_by_type_result';\nexport * from './io_port_label';\nexport * from './io_port_type';\nexport * from './lockstep';\nexport * from './measurement_sequence';\nexport * from './message_type';\nexport * from './mock_device';\nexport * from './mock_peripheral';\nexport * from './oscilloscope';\nexport * from './oscilloscope_capture_properties';\nexport * from './oscilloscope_data';\nexport * from './oscilloscope_data_source';\nexport * from './paramset_info';\nexport * from './pid_tuning';\nexport * from './pvt';\nexport * from './pvt_axis_definition';\nexport * from './pvt_axis_type';\nexport * from './pvt_buffer';\nexport * from './pvt_buffer_axis_units';\nexport * from './pvt_call_action';\nexport * from './pvt_cancel_all_outputs_schedule_action';\nexport * from './pvt_cancel_output_schedule_action';\nexport * from './pvt_csv_data';\nexport * from './pvt_io';\nexport * from './pvt_mode';\nexport * from './pvt_partial_csv_data';\nexport * from './pvt_partial_point';\nexport * from './pvt_partial_sequence_item';\nexport * from './pvt_point';\nexport * from './pvt_sequence';\nexport * from './pvt_sequence_item';\nexport * from './pvt_set_all_analog_outputs_action';\nexport * from './pvt_set_all_digital_outputs_action';\nexport * from './pvt_set_analog_output_action';\nexport * from './pvt_set_digital_output_action';\nexport * from './response';\nexport * from './servo_tuner';\nexport * from './servo_tuning_param';\nexport * from './servo_tuning_paramset';\nexport * from './set_state_axis_response';\nexport * from './set_state_device_response';\nexport * from './setting_constants';\nexport * from './simple_tuning';\nexport * from './simple_tuning_param_definition';\nexport * from './stream';\nexport * from './stream_axis_definition';\nexport * from './stream_axis_type';\nexport * from './stream_buffer';\nexport * from './stream_io';\nexport * from './stream_mode';\nexport * from './streams';\nexport * from './transport';\nexport * from './trigger';\nexport * from './trigger_action';\nexport * from './trigger_condition';\nexport * from './trigger_enabled_state';\nexport * from './trigger_operation';\nexport * from './trigger_state';\nexport * from './triggers';\nexport * from './typed_setting';\nexport * from './unknown_response_event';\nexport * from './warning_flags';\nexport * from './warnings';\n"]}
@@ -73,12 +73,12 @@ class Lockstep {
73
73
  */
74
74
  async disable() {
75
75
  const request = {
76
- ...requests.LockstepDisableRequest.DEFAULT,
76
+ ...requests.LockstepEmptyRequest.DEFAULT,
77
77
  interfaceId: this.device.connection.interfaceId,
78
78
  device: this.device.deviceAddress,
79
79
  lockstepGroupId: this.lockstepGroupId,
80
80
  toBinary() {
81
- return requests.LockstepDisableRequest.toBinary(this);
81
+ return requests.LockstepEmptyRequest.toBinary(this);
82
82
  },
83
83
  };
84
84
  await gateway.callAsync('device/lockstep_disable', request);
@@ -1 +1 @@
1
- {"version":3,"file":"lockstep.js","sourceRoot":"","sources":["../../../src/ascii/lockstep.ts"],"names":[],"mappings":";AAAA,wDAAwD;AACxD,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,oDAAsC;AACtC,sDAAwC;AACxC,oCAA4H;AAG5H;;;;GAIG;AACH,MAAa,QAAQ;IACnB;;OAEG;IACH,IAAW,MAAM;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD;;OAEG;IACH,IAAW,eAAe;QACxB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAGD,YAAY,MAAc,EAAE,eAAuB;QACjD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;IAC1C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAM,CACjB,GAAG,IAAc;QAEjB,MAAM,OAAO,GAAqD;YAChE,GAAG,QAAQ,CAAC,qBAAqB,CAAC,OAAO;YACzC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,eAAe,EAAE,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AAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,QAAQ;gBACN,OAAO,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,2BAA2B,EAC3B,OAAO,EACP,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QACpC,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;CACF;AArqBD,4BAqqBC","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Angle, Length, Native, AngularVelocity, Velocity, Acceleration, AngularAcceleration, Units, Time } from '../units';\nimport { Device } from './device';\n\n/**\n * Represents a lockstep group with this ID on a device.\n * A lockstep group is a movement synchronized pair of axes on a device.\n * Requires at least Firmware 6.15 or 7.11.\n */\nexport class Lockstep {\n /**\n * Device that controls this lockstep group.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The number that identifies the lockstep group on the device.\n */\n public get lockstepGroupId(): number {\n return this._lockstepGroupId;\n }\n private _lockstepGroupId: number;\n\n constructor(device: Device, lockstepGroupId: number) {\n this._device = device;\n this._lockstepGroupId = lockstepGroupId;\n }\n\n /**\n * Activate the lockstep group on the axes specified.\n * @param axes The numbers of axes in the lockstep group.\n */\n public async enable(\n ...axes: number[]\n ): Promise<void> {\n const request: requests.LockstepEnableRequest & gateway.Message = {\n ...requests.LockstepEnableRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n axes: axes,\n toBinary() {\n return requests.LockstepEnableRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_enable', request);\n }\n\n /**\n * Disable the lockstep group.\n */\n public async disable(): Promise<void> {\n const request: requests.LockstepDisableRequest & gateway.Message = {\n ...requests.LockstepDisableRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepDisableRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_disable', request);\n }\n\n /**\n * Stops ongoing lockstep group movement. Decelerates until zero speed.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async stop(\n options: Lockstep.StopOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.LockstepStopRequest & gateway.Message = {\n ...requests.LockstepStopRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.LockstepStopRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_stop', request);\n }\n\n /**\n * Retracts the axes of the lockstep group until a home associated with an individual axis is detected.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async home(\n options: Lockstep.HomeOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.LockstepHomeRequest & gateway.Message = {\n ...requests.LockstepHomeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.LockstepHomeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_home', request);\n }\n\n /**\n * Move the first axis of the lockstep group to an absolute position.\n * The other axes in the lockstep group maintain their offsets throughout movement.\n * @param position Absolute position.\n * @param [unit=Units.NATIVE] Units of position.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveAbsolute(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n options: Lockstep.MoveAbsoluteOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.LockstepMoveRequest & gateway.Message = {\n ...requests.LockstepMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n type: requests.AxisMoveType.ABS,\n arg: position,\n unit: unit,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.LockstepMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move', request);\n }\n\n /**\n * Move the first axis of the lockstep group to a position relative to its current position.\n * The other axes in the lockstep group maintain their offsets throughout movement.\n * @param position Relative position.\n * @param [unit=Units.NATIVE] Units of position.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveRelative(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n options: Lockstep.MoveRelativeOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.LockstepMoveRequest & gateway.Message = {\n ...requests.LockstepMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n type: requests.AxisMoveType.REL,\n arg: position,\n unit: unit,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.LockstepMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move', request);\n }\n\n /**\n * Moves the first axis of the lockstep group at the specified speed.\n * The other axes in the lockstep group maintain their offsets throughout movement.\n * @param velocity Movement velocity.\n * @param [unit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveVelocity(\n velocity: number,\n unit: Velocity | AngularVelocity | Native = Units.NATIVE,\n options: Lockstep.MoveVelocityOptions = {}\n ): Promise<void> {\n const {\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.LockstepMoveRequest & gateway.Message = {\n ...requests.LockstepMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n type: requests.AxisMoveType.VEL,\n arg: velocity,\n unit: unit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.LockstepMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move', request);\n }\n\n /**\n * Moves the first axis of the lockstep group in a sinusoidal trajectory.\n * The other axes in the lockstep group maintain their offsets throughout movement.\n * @param amplitude Amplitude of the sinusoidal motion (half of the motion's peak-to-peak range).\n * @param amplitudeUnits Units of position.\n * @param period Period of the sinusoidal motion in milliseconds.\n * @param periodUnits Units of time.\n * @param [options.count=0] Number of sinusoidal cycles to complete.\n * Must be a multiple of 0.5\n * If count is not specified or set to 0, the axis will move indefinitely.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async moveSin(\n amplitude: number,\n amplitudeUnits: Length | Angle | Native,\n period: number,\n periodUnits: Time | Native,\n options: Lockstep.MoveSinOptions = {}\n ): Promise<void> {\n const {\n count = 0,\n waitUntilIdle = true,\n } = options;\n const request: requests.LockstepMoveSinRequest & gateway.Message = {\n ...requests.LockstepMoveSinRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n amplitude: amplitude,\n amplitudeUnits: amplitudeUnits,\n period: period,\n periodUnits: periodUnits,\n count: count,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.LockstepMoveSinRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move_sin', request);\n }\n\n /**\n * Stops the lockstep group at the end of the sinusoidal trajectory for the first axis.\n * If the sinusoidal motion was started with an integer-plus-half cycle count,\n * the motion ends at the half-way point of the sinusoidal trajectory.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished.\n */\n public async moveSinStop(\n options: Lockstep.MoveSinStopOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.LockstepStopRequest & gateway.Message = {\n ...requests.LockstepStopRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.LockstepStopRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move_sin_stop', request);\n }\n\n /**\n * Moves the axes to the maximum valid position.\n * The axes in the lockstep group maintain their offsets throughout movement.\n * Respects lim.max for all axes in the group.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveMax(\n options: Lockstep.MoveMaxOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.LockstepMoveRequest & gateway.Message = {\n ...requests.LockstepMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n type: requests.AxisMoveType.MAX,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.LockstepMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move', request);\n }\n\n /**\n * Moves the axes to the minimum valid position.\n * The axes in the lockstep group maintain their offsets throughout movement.\n * Respects lim.min for all axes in the group.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveMin(\n options: Lockstep.MoveMinOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.LockstepMoveRequest & gateway.Message = {\n ...requests.LockstepMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n type: requests.AxisMoveType.MIN,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.LockstepMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move', request);\n }\n\n /**\n * Waits until the lockstep group stops moving.\n * @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n options: Lockstep.WaitUntilIdleOptions = {}\n ): Promise<void> {\n const {\n throwErrorOnFault = true,\n } = options;\n const request: requests.LockstepWaitUntilIdleRequest & gateway.Message = {\n ...requests.LockstepWaitUntilIdleRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n throwErrorOnFault: throwErrorOnFault,\n toBinary() {\n return requests.LockstepWaitUntilIdleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_wait_until_idle', request);\n }\n\n /**\n * Returns bool indicating whether the lockstep group is executing a motion command.\n * @returns True if the axes are currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/lockstep_is_busy',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Gets the axis numbers of the lockstep group.\n * @returns Axis numbers in order specified when enabling lockstep.\n */\n public async getAxisNumbers(): Promise<number[]> {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.LockstepGetAxisNumbersResponse>(\n 'device/lockstep_get_axis_numbers',\n request,\n requests.LockstepGetAxisNumbersResponse.fromBinary);\n return response.axes;\n }\n\n /**\n * Gets the initial offsets of secondary axes of an enabled lockstep group.\n * @param [unit=Units.NATIVE] Units of position.\n * Uses primary axis unit conversion.\n * @returns Initial offset for each axis of the lockstep group.\n */\n public async getOffsets(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number[]> {\n const request: requests.LockstepGetRequest & gateway.Message = {\n ...requests.LockstepGetRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n unit: unit,\n toBinary() {\n return requests.LockstepGetRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleArrayResponse>(\n 'device/lockstep_get_offsets',\n request,\n requests.DoubleArrayResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Gets the twists of secondary axes of an enabled lockstep group.\n * @param [unit=Units.NATIVE] Units of position.\n * Uses primary axis unit conversion.\n * @returns Difference between the initial offset and the actual offset for each axis of the lockstep group.\n */\n public async getTwists(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number[]> {\n const request: requests.LockstepGetRequest & gateway.Message = {\n ...requests.LockstepGetRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n unit: unit,\n toBinary() {\n return requests.LockstepGetRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleArrayResponse>(\n 'device/lockstep_get_twists',\n request,\n requests.DoubleArrayResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Returns current position of the primary axis.\n * @param [unit=Units.NATIVE] Units of the position.\n * @returns Primary axis position.\n */\n public async getPosition(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number> {\n const request: requests.LockstepGetRequest & gateway.Message = {\n ...requests.LockstepGetRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n unit: unit,\n toBinary() {\n return requests.LockstepGetRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/lockstep_get_pos',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets lockstep twist tolerance.\n * Twist tolerances that do not match the system configuration can reduce performance or damage the system.\n * @param tolerance Twist tolerance.\n * @param [unit=Units.NATIVE] Units of the tolerance.\n * Uses primary axis unit conversion when setting to all axes,\n * otherwise uses specified secondary axis unit conversion.\n * @param [options.axisIndex=0] Optional index of a secondary axis to set the tolerance for.\n * If left empty or set to 0, the tolerance is set to all the secondary axes.\n */\n public async setTolerance(\n tolerance: number,\n unit: Length | Angle | Native = Units.NATIVE,\n options: Lockstep.SetToleranceOptions = {}\n ): Promise<void> {\n const {\n axisIndex = 0,\n } = options;\n const request: requests.LockstepSetRequest & gateway.Message = {\n ...requests.LockstepSetRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n value: tolerance,\n unit: unit,\n axisIndex: axisIndex,\n toBinary() {\n return requests.LockstepSetRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_set_tolerance', request);\n }\n\n /**\n * Checks if the lockstep group is currently enabled on the device.\n * @returns True if a lockstep group with this ID is enabled on the device.\n */\n public async isEnabled(): Promise<boolean> {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/lockstep_is_enabled',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string which represents the enabled lockstep group.\n * @returns String which represents the enabled lockstep group.\n */\n public toString(): string {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/lockstep_to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Parks lockstep group 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: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_park', request);\n }\n\n /**\n * Unparks lockstep group. Lockstep group will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_unpark', request);\n }\n\n /**\n * Returns bool indicating whether the axis is parked or not.\n * @returns True if lockstep group is parked.\n */\n public async isParked(): Promise<boolean> {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/lockstep_is_parked',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n}\n\nnamespace Lockstep {\n export interface StopOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface HomeOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveAbsoluteOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveRelativeOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveVelocityOptions {\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveSinOptions {\n /**\n * Number of sinusoidal cycles to complete.\n * Must be a multiple of 0.5\n * If count is not specified or set to 0, the axis will move indefinitely.\n */\n count?: number;\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveSinStopOptions {\n /**\n * Determines whether function should return after the movement is finished.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveMaxOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveMinOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface WaitUntilIdleOptions {\n /**\n * Determines whether to throw error when fault is observed.\n */\n throwErrorOnFault?: boolean;\n }\n export interface SetToleranceOptions {\n /**\n * Optional index of a secondary axis to set the tolerance for.\n * If left empty or set to 0, the tolerance is set to all the secondary axes.\n */\n axisIndex?: number;\n }\n}\n"]}
1
+ {"version":3,"file":"lockstep.js","sourceRoot":"","sources":["../../../src/ascii/lockstep.ts"],"names":[],"mappings":";AAAA,wDAAwD;AACxD,w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B,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,MAAM;QACjB,MAAM,OAAO,GAAoD;YAC/D,GAAG,QAAQ,CAAC,oBAAoB,CAAC,OAAO;YACxC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,QAAQ;gBACN,OAAO,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC;SACF,CAAC;QAEF,MAAM,OAAO,CAAC,SAAS,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,QAAQ;QACnB,MAAM,OAAO,GAAoD;YAC/D,GAAG,QAAQ,CAAC,oBAAoB,CAAC,OAAO;YACxC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW;YAC/C,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa;YACjC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,QAAQ;gBACN,OAAO,QAAQ,CAAC,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC;SACF,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,2BAA2B,EAC3B,OAAO,EACP,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QACpC,OAAO,QAAQ,CAAC,KAAK,CAAC;IACxB,CAAC;CACF;AArqBD,4BAqqBC","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\n\nimport * as gateway from '../gateway';\nimport * as requests from '../requests';\nimport { Angle, Length, Native, AngularVelocity, Velocity, Acceleration, AngularAcceleration, Units, Time } from '../units';\nimport { Device } from './device';\n\n/**\n * Represents a lockstep group with this ID on a device.\n * A lockstep group is a movement synchronized pair of axes on a device.\n * Requires at least Firmware 6.15 or 7.11.\n */\nexport class Lockstep {\n /**\n * Device that controls this lockstep group.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * The number that identifies the lockstep group on the device.\n */\n public get lockstepGroupId(): number {\n return this._lockstepGroupId;\n }\n private _lockstepGroupId: number;\n\n constructor(device: Device, lockstepGroupId: number) {\n this._device = device;\n this._lockstepGroupId = lockstepGroupId;\n }\n\n /**\n * Activate the lockstep group on the axes specified.\n * @param axes The numbers of axes in the lockstep group.\n */\n public async enable(\n ...axes: number[]\n ): Promise<void> {\n const request: requests.LockstepEnableRequest & gateway.Message = {\n ...requests.LockstepEnableRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n axes: axes,\n toBinary() {\n return requests.LockstepEnableRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_enable', request);\n }\n\n /**\n * Disable the lockstep group.\n */\n public async disable(): Promise<void> {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_disable', request);\n }\n\n /**\n * Stops ongoing lockstep group movement. Decelerates until zero speed.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async stop(\n options: Lockstep.StopOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.LockstepStopRequest & gateway.Message = {\n ...requests.LockstepStopRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.LockstepStopRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_stop', request);\n }\n\n /**\n * Retracts the axes of the lockstep group until a home associated with an individual axis is detected.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async home(\n options: Lockstep.HomeOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.LockstepHomeRequest & gateway.Message = {\n ...requests.LockstepHomeRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.LockstepHomeRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_home', request);\n }\n\n /**\n * Move the first axis of the lockstep group to an absolute position.\n * The other axes in the lockstep group maintain their offsets throughout movement.\n * @param position Absolute position.\n * @param [unit=Units.NATIVE] Units of position.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveAbsolute(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n options: Lockstep.MoveAbsoluteOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.LockstepMoveRequest & gateway.Message = {\n ...requests.LockstepMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n type: requests.AxisMoveType.ABS,\n arg: position,\n unit: unit,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.LockstepMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move', request);\n }\n\n /**\n * Move the first axis of the lockstep group to a position relative to its current position.\n * The other axes in the lockstep group maintain their offsets throughout movement.\n * @param position Relative position.\n * @param [unit=Units.NATIVE] Units of position.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveRelative(\n position: number,\n unit: Length | Angle | Native = Units.NATIVE,\n options: Lockstep.MoveRelativeOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.LockstepMoveRequest & gateway.Message = {\n ...requests.LockstepMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n type: requests.AxisMoveType.REL,\n arg: position,\n unit: unit,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.LockstepMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move', request);\n }\n\n /**\n * Moves the first axis of the lockstep group at the specified speed.\n * The other axes in the lockstep group maintain their offsets throughout movement.\n * @param velocity Movement velocity.\n * @param [unit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveVelocity(\n velocity: number,\n unit: Velocity | AngularVelocity | Native = Units.NATIVE,\n options: Lockstep.MoveVelocityOptions = {}\n ): Promise<void> {\n const {\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.LockstepMoveRequest & gateway.Message = {\n ...requests.LockstepMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n type: requests.AxisMoveType.VEL,\n arg: velocity,\n unit: unit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.LockstepMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move', request);\n }\n\n /**\n * Moves the first axis of the lockstep group in a sinusoidal trajectory.\n * The other axes in the lockstep group maintain their offsets throughout movement.\n * @param amplitude Amplitude of the sinusoidal motion (half of the motion's peak-to-peak range).\n * @param amplitudeUnits Units of position.\n * @param period Period of the sinusoidal motion in milliseconds.\n * @param periodUnits Units of time.\n * @param [options.count=0] Number of sinusoidal cycles to complete.\n * Must be a multiple of 0.5\n * If count is not specified or set to 0, the axis will move indefinitely.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n */\n public async moveSin(\n amplitude: number,\n amplitudeUnits: Length | Angle | Native,\n period: number,\n periodUnits: Time | Native,\n options: Lockstep.MoveSinOptions = {}\n ): Promise<void> {\n const {\n count = 0,\n waitUntilIdle = true,\n } = options;\n const request: requests.LockstepMoveSinRequest & gateway.Message = {\n ...requests.LockstepMoveSinRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n amplitude: amplitude,\n amplitudeUnits: amplitudeUnits,\n period: period,\n periodUnits: periodUnits,\n count: count,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.LockstepMoveSinRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move_sin', request);\n }\n\n /**\n * Stops the lockstep group at the end of the sinusoidal trajectory for the first axis.\n * If the sinusoidal motion was started with an integer-plus-half cycle count,\n * the motion ends at the half-way point of the sinusoidal trajectory.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished.\n */\n public async moveSinStop(\n options: Lockstep.MoveSinStopOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n } = options;\n const request: requests.LockstepStopRequest & gateway.Message = {\n ...requests.LockstepStopRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n waitUntilIdle: waitUntilIdle,\n toBinary() {\n return requests.LockstepStopRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move_sin_stop', request);\n }\n\n /**\n * Moves the axes to the maximum valid position.\n * The axes in the lockstep group maintain their offsets throughout movement.\n * Respects lim.max for all axes in the group.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveMax(\n options: Lockstep.MoveMaxOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.LockstepMoveRequest & gateway.Message = {\n ...requests.LockstepMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n type: requests.AxisMoveType.MAX,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.LockstepMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move', request);\n }\n\n /**\n * Moves the axes to the minimum valid position.\n * The axes in the lockstep group maintain their offsets throughout movement.\n * Respects lim.min for all axes in the group.\n * @param [options.waitUntilIdle=true] Determines whether function should return after the movement is finished or just started.\n * @param [options.velocity=0] Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.velocityUnit=Units.NATIVE] Units of velocity.\n * @param [options.acceleration=0] Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n * @param [options.accelerationUnit=Units.NATIVE] Units of acceleration.\n */\n public async moveMin(\n options: Lockstep.MoveMinOptions = {}\n ): Promise<void> {\n const {\n waitUntilIdle = true,\n velocity = 0,\n velocityUnit = Units.NATIVE,\n acceleration = 0,\n accelerationUnit = Units.NATIVE,\n } = options;\n const request: requests.LockstepMoveRequest & gateway.Message = {\n ...requests.LockstepMoveRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n type: requests.AxisMoveType.MIN,\n waitUntilIdle: waitUntilIdle,\n velocity: velocity,\n velocityUnit: velocityUnit,\n acceleration: acceleration,\n accelerationUnit: accelerationUnit,\n toBinary() {\n return requests.LockstepMoveRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_move', request);\n }\n\n /**\n * Waits until the lockstep group stops moving.\n * @param [options.throwErrorOnFault=true] Determines whether to throw error when fault is observed.\n */\n public async waitUntilIdle(\n options: Lockstep.WaitUntilIdleOptions = {}\n ): Promise<void> {\n const {\n throwErrorOnFault = true,\n } = options;\n const request: requests.LockstepWaitUntilIdleRequest & gateway.Message = {\n ...requests.LockstepWaitUntilIdleRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n throwErrorOnFault: throwErrorOnFault,\n toBinary() {\n return requests.LockstepWaitUntilIdleRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_wait_until_idle', request);\n }\n\n /**\n * Returns bool indicating whether the lockstep group is executing a motion command.\n * @returns True if the axes are currently executing a motion command.\n */\n public async isBusy(): Promise<boolean> {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/lockstep_is_busy',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Gets the axis numbers of the lockstep group.\n * @returns Axis numbers in order specified when enabling lockstep.\n */\n public async getAxisNumbers(): Promise<number[]> {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.LockstepGetAxisNumbersResponse>(\n 'device/lockstep_get_axis_numbers',\n request,\n requests.LockstepGetAxisNumbersResponse.fromBinary);\n return response.axes;\n }\n\n /**\n * Gets the initial offsets of secondary axes of an enabled lockstep group.\n * @param [unit=Units.NATIVE] Units of position.\n * Uses primary axis unit conversion.\n * @returns Initial offset for each axis of the lockstep group.\n */\n public async getOffsets(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number[]> {\n const request: requests.LockstepGetRequest & gateway.Message = {\n ...requests.LockstepGetRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n unit: unit,\n toBinary() {\n return requests.LockstepGetRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleArrayResponse>(\n 'device/lockstep_get_offsets',\n request,\n requests.DoubleArrayResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Gets the twists of secondary axes of an enabled lockstep group.\n * @param [unit=Units.NATIVE] Units of position.\n * Uses primary axis unit conversion.\n * @returns Difference between the initial offset and the actual offset for each axis of the lockstep group.\n */\n public async getTwists(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number[]> {\n const request: requests.LockstepGetRequest & gateway.Message = {\n ...requests.LockstepGetRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n unit: unit,\n toBinary() {\n return requests.LockstepGetRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleArrayResponse>(\n 'device/lockstep_get_twists',\n request,\n requests.DoubleArrayResponse.fromBinary);\n return response.values;\n }\n\n /**\n * Returns current position of the primary axis.\n * @param [unit=Units.NATIVE] Units of the position.\n * @returns Primary axis position.\n */\n public async getPosition(\n unit: Length | Angle | Native = Units.NATIVE\n ): Promise<number> {\n const request: requests.LockstepGetRequest & gateway.Message = {\n ...requests.LockstepGetRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n unit: unit,\n toBinary() {\n return requests.LockstepGetRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.DoubleResponse>(\n 'device/lockstep_get_pos',\n request,\n requests.DoubleResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Sets lockstep twist tolerance.\n * Twist tolerances that do not match the system configuration can reduce performance or damage the system.\n * @param tolerance Twist tolerance.\n * @param [unit=Units.NATIVE] Units of the tolerance.\n * Uses primary axis unit conversion when setting to all axes,\n * otherwise uses specified secondary axis unit conversion.\n * @param [options.axisIndex=0] Optional index of a secondary axis to set the tolerance for.\n * If left empty or set to 0, the tolerance is set to all the secondary axes.\n */\n public async setTolerance(\n tolerance: number,\n unit: Length | Angle | Native = Units.NATIVE,\n options: Lockstep.SetToleranceOptions = {}\n ): Promise<void> {\n const {\n axisIndex = 0,\n } = options;\n const request: requests.LockstepSetRequest & gateway.Message = {\n ...requests.LockstepSetRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n value: tolerance,\n unit: unit,\n axisIndex: axisIndex,\n toBinary() {\n return requests.LockstepSetRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_set_tolerance', request);\n }\n\n /**\n * Checks if the lockstep group is currently enabled on the device.\n * @returns True if a lockstep group with this ID is enabled on the device.\n */\n public async isEnabled(): Promise<boolean> {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/lockstep_is_enabled',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Returns a string which represents the enabled lockstep group.\n * @returns String which represents the enabled lockstep group.\n */\n public toString(): string {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n const response = gateway.callSync<requests.StringResponse>(\n 'device/lockstep_to_string',\n request,\n requests.StringResponse.fromBinary);\n return response.value;\n }\n\n /**\n * Parks lockstep group 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: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_park', request);\n }\n\n /**\n * Unparks lockstep group. Lockstep group will now be able to move.\n */\n public async unpark(): Promise<void> {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n await gateway.callAsync('device/lockstep_unpark', request);\n }\n\n /**\n * Returns bool indicating whether the axis is parked or not.\n * @returns True if lockstep group is parked.\n */\n public async isParked(): Promise<boolean> {\n const request: requests.LockstepEmptyRequest & gateway.Message = {\n ...requests.LockstepEmptyRequest.DEFAULT,\n interfaceId: this.device.connection.interfaceId,\n device: this.device.deviceAddress,\n lockstepGroupId: this.lockstepGroupId,\n toBinary() {\n return requests.LockstepEmptyRequest.toBinary(this);\n },\n };\n\n const response = await gateway.callAsync<requests.BoolResponse>(\n 'device/lockstep_is_parked',\n request,\n requests.BoolResponse.fromBinary);\n return response.value;\n }\n}\n\nnamespace Lockstep {\n export interface StopOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface HomeOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveAbsoluteOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveRelativeOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveVelocityOptions {\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveSinOptions {\n /**\n * Number of sinusoidal cycles to complete.\n * Must be a multiple of 0.5\n * If count is not specified or set to 0, the axis will move indefinitely.\n */\n count?: number;\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveSinStopOptions {\n /**\n * Determines whether function should return after the movement is finished.\n */\n waitUntilIdle?: boolean;\n }\n export interface MoveMaxOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface MoveMinOptions {\n /**\n * Determines whether function should return after the movement is finished or just started.\n */\n waitUntilIdle?: boolean;\n /**\n * Movement velocity.\n * Default value of 0 indicates that the maxspeed setting is used instead.\n * Requires at least Firmware 7.25.\n */\n velocity?: number;\n /**\n * Units of velocity.\n */\n velocityUnit?: Velocity | AngularVelocity | Native;\n /**\n * Movement acceleration.\n * Default value of 0 indicates that the accel setting is used instead.\n * Requires at least Firmware 7.25.\n */\n acceleration?: number;\n /**\n * Units of acceleration.\n */\n accelerationUnit?: Acceleration | AngularAcceleration | Native;\n }\n export interface WaitUntilIdleOptions {\n /**\n * Determines whether to throw error when fault is observed.\n */\n throwErrorOnFault?: boolean;\n }\n export interface SetToleranceOptions {\n /**\n * Optional index of a secondary axis to set the tolerance for.\n * If left empty or set to 0, the tolerance is set to all the secondary axes.\n */\n axisIndex?: number;\n }\n}\n"]}
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Constants = void 0;
4
4
  // The version string is updated automatically with `npx gulp set_version`. Do not edit manually.
5
5
  exports.Constants = {
6
- version: '9.2.1',
6
+ version: '9.3.1',
7
7
  };
8
8
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/gateway/constants.ts"],"names":[],"mappings":";;;AAAA,iGAAiG;AACpF,QAAA,SAAS,GAAG;IACvB,OAAO,EAAE,OAAO;CACjB,CAAC","sourcesContent":["// The version string is updated automatically with `npx gulp set_version`. Do not edit manually.\nexport const Constants = {\n version: '9.2.1',\n};\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/gateway/constants.ts"],"names":[],"mappings":";;;AAAA,iGAAiG;AACpF,QAAA,SAAS,GAAG;IACvB,OAAO,EAAE,OAAO;CACjB,CAAC","sourcesContent":["// The version string is updated automatically with `npx gulp set_version`. Do not edit manually.\nexport const Constants = {\n version: '9.3.1',\n};\n"]}
@@ -2,6 +2,7 @@ export * as ascii from './ascii';
2
2
  export * as binary from './binary';
3
3
  export * as gcode from './gcode';
4
4
  export * as microscopy from './microscopy';
5
+ export * as movement from './movement';
5
6
  export * as product from './product';
6
7
  export * from './axis_address';
7
8
  export * from './channel_address';
@@ -15,6 +16,7 @@ export * from './firmware_version';
15
16
  export * from './library';
16
17
  export * from './log_output_mode';
17
18
  export * from './measurement';
19
+ export * from './measurement_or_value';
18
20
  export * from './named_parameter';
19
21
  export * from './rotation_direction';
20
22
  export * from './tools';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC"}
package/dist/lib/index.js CHANGED
@@ -26,13 +26,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.product = exports.microscopy = exports.gcode = exports.binary = exports.ascii = void 0;
29
+ exports.product = exports.movement = exports.microscopy = exports.gcode = exports.binary = exports.ascii = void 0;
30
30
  // ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //
31
31
  // ============== DO NOT EDIT DIRECTLY ============== //
32
32
  exports.ascii = __importStar(require("./ascii"));
33
33
  exports.binary = __importStar(require("./binary"));
34
34
  exports.gcode = __importStar(require("./gcode"));
35
35
  exports.microscopy = __importStar(require("./microscopy"));
36
+ exports.movement = __importStar(require("./movement"));
36
37
  exports.product = __importStar(require("./product"));
37
38
  __exportStar(require("./axis_address"), exports);
38
39
  __exportStar(require("./channel_address"), exports);
@@ -46,6 +47,7 @@ __exportStar(require("./firmware_version"), exports);
46
47
  __exportStar(require("./library"), exports);
47
48
  __exportStar(require("./log_output_mode"), exports);
48
49
  __exportStar(require("./measurement"), exports);
50
+ __exportStar(require("./measurement_or_value"), exports);
49
51
  __exportStar(require("./named_parameter"), exports);
50
52
  __exportStar(require("./rotation_direction"), exports);
51
53
  __exportStar(require("./tools"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAwD;AACxD,wDAAwD;AACxD,iDAAiC;AACjC,mDAAmC;AACnC,iDAAiC;AACjC,2DAA2C;AAC3C,qDAAqC;AACrC,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,0DAAwC;AACxC,4DAA0C;AAC1C,qDAAmC;AACnC,+CAA6B;AAC7B,qDAAmC;AACnC,4CAA0B;AAC1B,oDAAkC;AAClC,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,0CAAwB;AACxB,+DAA6C;AAC7C,+CAA6B;AAC7B,0CAAwB;AACxB,qDAAmC","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\nexport * as ascii from './ascii';\nexport * as binary from './binary';\nexport * as gcode from './gcode';\nexport * as microscopy from './microscopy';\nexport * as product from './product';\nexport * from './axis_address';\nexport * from './channel_address';\nexport * from './cyclic_direction';\nexport * from './device_db_source';\nexport * from './device_db_source_type';\nexport * from './device_discovery_result';\nexport * from './device_port_type';\nexport * from './exceptions';\nexport * from './firmware_version';\nexport * from './library';\nexport * from './log_output_mode';\nexport * from './measurement';\nexport * from './named_parameter';\nexport * from './rotation_direction';\nexport * from './tools';\nexport * from './unit_conversion_descriptor';\nexport * from './unit_table';\nexport * from './units';\nexport * from './variant_test_api';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAwD;AACxD,wDAAwD;AACxD,iDAAiC;AACjC,mDAAmC;AACnC,iDAAiC;AACjC,2DAA2C;AAC3C,uDAAuC;AACvC,qDAAqC;AACrC,iDAA+B;AAC/B,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,0DAAwC;AACxC,4DAA0C;AAC1C,qDAAmC;AACnC,+CAA6B;AAC7B,qDAAmC;AACnC,4CAA0B;AAC1B,oDAAkC;AAClC,gDAA8B;AAC9B,yDAAuC;AACvC,oDAAkC;AAClC,uDAAqC;AACrC,0CAAwB;AACxB,+DAA6C;AAC7C,+CAA6B;AAC7B,0CAAwB;AACxB,qDAAmC","sourcesContent":["// ===== THIS FILE IS GENERATED FROM A TEMPLATE ===== //\n// ============== DO NOT EDIT DIRECTLY ============== //\nexport * as ascii from './ascii';\nexport * as binary from './binary';\nexport * as gcode from './gcode';\nexport * as microscopy from './microscopy';\nexport * as movement from './movement';\nexport * as product from './product';\nexport * from './axis_address';\nexport * from './channel_address';\nexport * from './cyclic_direction';\nexport * from './device_db_source';\nexport * from './device_db_source_type';\nexport * from './device_discovery_result';\nexport * from './device_port_type';\nexport * from './exceptions';\nexport * from './firmware_version';\nexport * from './library';\nexport * from './log_output_mode';\nexport * from './measurement';\nexport * from './measurement_or_value';\nexport * from './named_parameter';\nexport * from './rotation_direction';\nexport * from './tools';\nexport * from './unit_conversion_descriptor';\nexport * from './unit_table';\nexport * from './units';\nexport * from './variant_test_api';\n"]}
@@ -0,0 +1,21 @@
1
+ import { BSON } from 'bson';
2
+ import { Measurement } from './measurement';
3
+ /**
4
+ * A numerical value, or a Measurement.
5
+ */
6
+ export type MeasurementOrValue = number | Measurement;
7
+ /**
8
+ * Constants for the possible return values of MeasurementOrValue.typeName().
9
+ */
10
+ export type MeasurementOrValueTypeTags = 'double' | 'Measurement';
11
+ export declare const MeasurementOrValue: {
12
+ sanitize: (value: MeasurementOrValue) => MeasurementOrValue;
13
+ convert: (value: BSON.Document) => MeasurementOrValue;
14
+ convertBack: (value: MeasurementOrValue) => BSON.Document;
15
+ /**
16
+ * Attempts to determine which member type is present in a variable.
17
+ */
18
+ typeName: (value: MeasurementOrValue) => MeasurementOrValueTypeTags;
19
+ isA: (value: any) => value is MeasurementOrValue;
20
+ };
21
+ //# sourceMappingURL=measurement_or_value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measurement_or_value.d.ts","sourceRoot":"","sources":["../../src/measurement_or_value.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC5B,MAAM,GAAG,WAAW,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,QAAQ,GAAG,aAAa,CAAC;AAElE,eAAO,MAAM,kBAAkB;sBACX,kBAAkB,KAAG,kBAAkB;qBAkBxC,KAAK,QAAQ,KAAG,kBAAkB;yBAa9B,kBAAkB,KAAG,KAAK,QAAQ;IASvD;;OAEG;sBACe,kBAAkB,KAAG,0BAA0B;iBAYpD,GAAG;CAYjB,CAAC"}