@zaber/motion 4.3.0 → 4.5.0

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 (61) hide show
  1. package/dist/binding/wasm/zaber-motion-lib.wasm +0 -0
  2. package/dist/lib/ascii/axis.d.ts +31 -0
  3. package/dist/lib/ascii/axis.js +52 -0
  4. package/dist/lib/ascii/axis.js.map +1 -1
  5. package/dist/lib/ascii/axis_type.d.ts +3 -1
  6. package/dist/lib/ascii/axis_type.js +2 -0
  7. package/dist/lib/ascii/axis_type.js.map +1 -1
  8. package/dist/lib/ascii/index.d.ts +0 -5
  9. package/dist/lib/ascii/index.js +1 -12
  10. package/dist/lib/ascii/index.js.map +1 -1
  11. package/dist/lib/ascii/oscilloscope.d.ts +15 -1
  12. package/dist/lib/ascii/oscilloscope.js +34 -6
  13. package/dist/lib/ascii/oscilloscope.js.map +1 -1
  14. package/dist/lib/ascii/oscilloscope_data.d.ts +13 -1
  15. package/dist/lib/ascii/oscilloscope_data.js +24 -0
  16. package/dist/lib/ascii/oscilloscope_data.js.map +1 -1
  17. package/dist/lib/ascii/setting_constants.d.ts +0 -20
  18. package/dist/lib/ascii/setting_constants.js +0 -20
  19. package/dist/lib/ascii/setting_constants.js.map +1 -1
  20. package/dist/lib/ascii_ns.d.ts +0 -5
  21. package/dist/lib/ascii_ns.js +0 -5
  22. package/dist/lib/ascii_ns.js.map +1 -1
  23. package/dist/lib/index.d.ts +2 -0
  24. package/dist/lib/index.js +4 -1
  25. package/dist/lib/index.js.map +1 -1
  26. package/dist/lib/product/index.d.ts +5 -0
  27. package/dist/lib/product/index.js +14 -0
  28. package/dist/lib/product/index.js.map +1 -0
  29. package/dist/lib/{ascii → product}/process.d.ts +4 -4
  30. package/dist/lib/{ascii → product}/process.js +5 -5
  31. package/dist/lib/product/process.js.map +1 -0
  32. package/dist/lib/{ascii → product}/process_controller.d.ts +2 -2
  33. package/dist/lib/product/process_controller.js.map +1 -0
  34. package/dist/lib/product/process_controller_mode.js.map +1 -0
  35. package/dist/lib/product/process_controller_source.js.map +1 -0
  36. package/dist/lib/product/process_controller_source_sensor.js.map +1 -0
  37. package/dist/lib/product_ns.d.ts +13 -0
  38. package/dist/lib/product_ns.js +36 -0
  39. package/dist/lib/product_ns.js.map +1 -0
  40. package/dist/lib/protobufs/main_pb.d.ts +118 -11
  41. package/dist/lib/protobufs/main_pb.js +853 -60
  42. package/dist/lib/protobufs/main_pb.js.map +1 -1
  43. package/dist/lib/unit_table.d.ts +16 -0
  44. package/dist/lib/unit_table.js +56 -0
  45. package/dist/lib/unit_table.js.map +1 -0
  46. package/dist/lib/units.d.ts +27 -1
  47. package/dist/lib/units.js +29 -1
  48. package/dist/lib/units.js.map +1 -1
  49. package/package.json +11 -1
  50. package/dist/lib/ascii/process.js.map +0 -1
  51. package/dist/lib/ascii/process_controller.js.map +0 -1
  52. package/dist/lib/ascii/process_controller_mode.js.map +0 -1
  53. package/dist/lib/ascii/process_controller_source.js.map +0 -1
  54. package/dist/lib/ascii/process_controller_source_sensor.js.map +0 -1
  55. /package/dist/lib/{ascii → product}/process_controller.js +0 -0
  56. /package/dist/lib/{ascii → product}/process_controller_mode.d.ts +0 -0
  57. /package/dist/lib/{ascii → product}/process_controller_mode.js +0 -0
  58. /package/dist/lib/{ascii → product}/process_controller_source.d.ts +0 -0
  59. /package/dist/lib/{ascii → product}/process_controller_source.js +0 -0
  60. /package/dist/lib/{ascii → product}/process_controller_source_sensor.d.ts +0 -0
  61. /package/dist/lib/{ascii → product}/process_controller_source_sensor.js +0 -0
@@ -0,0 +1,16 @@
1
+ import { Units } from './units';
2
+ export declare class UnitTable {
3
+ /**
4
+ * Gets the standard symbol associated with a given unit.
5
+ * @param unit Unit of measure.
6
+ * @returns Symbols corresponding to the given unit. Throws NoValueForKey if no symbol is defined.
7
+ */
8
+ static getSymbol(unit: Units): string;
9
+ /**
10
+ * Gets the unit enum value associated with a standard symbol.
11
+ * Note not all units can be retrieved this way.
12
+ * @param symbol Symbol to look up.
13
+ * @returns The unit enum value with the given symbols. Throws NoValueForKey if the symbol is not supported for lookup.
14
+ */
15
+ static getUnit(symbol: string): Units;
16
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ // ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //
3
+ // ============= DO NOT EDIT DIRECTLY ============= //
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.UnitTable = void 0;
29
+ const gateway = __importStar(require("./gateway"));
30
+ class UnitTable {
31
+ /**
32
+ * Gets the standard symbol associated with a given unit.
33
+ * @param unit Unit of measure.
34
+ * @returns Symbols corresponding to the given unit. Throws NoValueForKey if no symbol is defined.
35
+ */
36
+ static getSymbol(unit) {
37
+ const request = new gateway.UnitGetSymbolRequest();
38
+ request.setUnit(unit);
39
+ const response = gateway.callSync('units/get_symbol', request, gateway.UnitGetSymbolResponse);
40
+ return response.getSymbol();
41
+ }
42
+ /**
43
+ * Gets the unit enum value associated with a standard symbol.
44
+ * Note not all units can be retrieved this way.
45
+ * @param symbol Symbol to look up.
46
+ * @returns The unit enum value with the given symbols. Throws NoValueForKey if the symbol is not supported for lookup.
47
+ */
48
+ static getUnit(symbol) {
49
+ const request = new gateway.UnitGetEnumRequest();
50
+ request.setSymbol(symbol);
51
+ const response = gateway.callSync('units/get_enum', request, gateway.UnitGetEnumResponse);
52
+ return response.getUnit();
53
+ }
54
+ }
55
+ exports.UnitTable = UnitTable;
56
+ //# sourceMappingURL=unit_table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unit_table.js","sourceRoot":"","sources":["../../src/unit_table.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,mDAAqC;AAGrC,MAAa,SAAS;IACpB;;;;OAIG;IACI,MAAM,CAAC,SAAS,CACrB,IAAW;QAEX,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;QACnD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEtB,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,kBAAkB,EAClB,OAAO,EACP,OAAO,CAAC,qBAAqB,CAAC,CAAC;QACjC,OAAO,QAAQ,CAAC,SAAS,EAAE,CAAC;IAC9B,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,OAAO,CACnB,MAAc;QAEd,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;QACjD,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAE1B,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAC/B,gBAAgB,EAChB,OAAO,EACP,OAAO,CAAC,mBAAmB,CAAC,CAAC;QAC/B,OAAO,QAAQ,CAAC,OAAO,EAAW,CAAC;IACrC,CAAC;CACF;AArCD,8BAqCC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from './gateway';\nimport { Units } from './units';\n\nexport class UnitTable {\n /**\n * Gets the standard symbol associated with a given unit.\n * @param unit Unit of measure.\n * @returns Symbols corresponding to the given unit. Throws NoValueForKey if no symbol is defined.\n */\n public static getSymbol(\n unit: Units\n ): string {\n const request = new gateway.UnitGetSymbolRequest();\n request.setUnit(unit);\n\n const response = gateway.callSync<gateway.UnitGetSymbolResponse>(\n 'units/get_symbol',\n request,\n gateway.UnitGetSymbolResponse);\n return response.getSymbol();\n }\n\n /**\n * Gets the unit enum value associated with a standard symbol.\n * Note not all units can be retrieved this way.\n * @param symbol Symbol to look up.\n * @returns The unit enum value with the given symbols. Throws NoValueForKey if the symbol is not supported for lookup.\n */\n public static getUnit(\n symbol: string\n ): Units {\n const request = new gateway.UnitGetEnumRequest();\n request.setSymbol(symbol);\n\n const response = gateway.callSync<gateway.UnitGetEnumResponse>(\n 'units/get_enum',\n request,\n gateway.UnitGetEnumResponse);\n return response.getUnit() as Units;\n }\n}\n"]}
@@ -216,4 +216,30 @@ export declare enum AbsoluteTemperature {
216
216
  DEGREES_RANKINE = "Absolute Temperature:degrees Rankine",
217
217
  '°R' = "Absolute Temperature:degrees Rankine"
218
218
  }
219
- export type Units = Native | Length | Velocity | Acceleration | Angle | AngularVelocity | AngularAcceleration | ACElectricCurrent | Percent | DCElectricCurrent | Force | Time | Torque | Inertia | RotationalInertia | ForceConstant | TorqueConstant | Voltage | CurrentControllerProportionalGain | CurrentControllerIntegralGain | CurrentControllerDerivativeGain | Resistance | Inductance | VoltageConstant | AbsoluteTemperature;
219
+ export declare enum RelativeTemperature {
220
+ DEGREES_CELSIUS = "Relative Temperature:degrees Celsius",
221
+ '°C' = "Relative Temperature:degrees Celsius",
222
+ KELVINS = "Relative Temperature:kelvins",
223
+ 'K' = "Relative Temperature:kelvins",
224
+ DEGREES_FAHRENHEIT = "Relative Temperature:degrees Fahrenheit",
225
+ '°F' = "Relative Temperature:degrees Fahrenheit",
226
+ DEGREES_RANKINE = "Relative Temperature:degrees Rankine",
227
+ '°R' = "Relative Temperature:degrees Rankine"
228
+ }
229
+ export declare enum Frequency {
230
+ GIGAHERTZ = "Frequency:gigahertz",
231
+ 'GHz' = "Frequency:gigahertz",
232
+ MEGAHERTZ = "Frequency:megahertz",
233
+ 'MHz' = "Frequency:megahertz",
234
+ KILOHERTZ = "Frequency:kilohertz",
235
+ 'kHz' = "Frequency:kilohertz",
236
+ HERTZ = "Frequency:hertz",
237
+ 'Hz' = "Frequency:hertz",
238
+ MILLIHERTZ = "Frequency:millihertz",
239
+ 'mHz' = "Frequency:millihertz",
240
+ MICROHERTZ = "Frequency:microhertz",
241
+ 'µHz' = "Frequency:microhertz",
242
+ NANOHERTZ = "Frequency:nanohertz",
243
+ 'nHz' = "Frequency:nanohertz"
244
+ }
245
+ export type Units = Native | Length | Velocity | Acceleration | Angle | AngularVelocity | AngularAcceleration | ACElectricCurrent | Percent | DCElectricCurrent | Force | Time | Torque | Inertia | RotationalInertia | ForceConstant | TorqueConstant | Voltage | CurrentControllerProportionalGain | CurrentControllerIntegralGain | CurrentControllerDerivativeGain | Resistance | Inductance | VoltageConstant | AbsoluteTemperature | RelativeTemperature | Frequency;
package/dist/lib/units.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AbsoluteTemperature = exports.VoltageConstant = exports.Inductance = exports.Resistance = exports.CurrentControllerDerivativeGain = exports.CurrentControllerIntegralGain = exports.CurrentControllerProportionalGain = exports.Voltage = exports.TorqueConstant = exports.ForceConstant = exports.RotationalInertia = exports.Inertia = exports.Torque = exports.Time = exports.Force = exports.DCElectricCurrent = exports.Percent = exports.ACElectricCurrent = exports.AngularAcceleration = exports.AngularVelocity = exports.Angle = exports.Acceleration = exports.Velocity = exports.Length = exports.Units = void 0;
3
+ exports.Frequency = exports.RelativeTemperature = exports.AbsoluteTemperature = exports.VoltageConstant = exports.Inductance = exports.Resistance = exports.CurrentControllerDerivativeGain = exports.CurrentControllerIntegralGain = exports.CurrentControllerProportionalGain = exports.Voltage = exports.TorqueConstant = exports.ForceConstant = exports.RotationalInertia = exports.Inertia = exports.Torque = exports.Time = exports.Force = exports.DCElectricCurrent = exports.Percent = exports.ACElectricCurrent = exports.AngularAcceleration = exports.AngularVelocity = exports.Angle = exports.Acceleration = exports.Velocity = exports.Length = exports.Units = void 0;
4
4
  // This file is generated from the Zaber device database. Do not manually edit this file.
5
5
  var Units;
6
6
  (function (Units) {
@@ -244,4 +244,32 @@ var AbsoluteTemperature;
244
244
  AbsoluteTemperature["DEGREES_RANKINE"] = "Absolute Temperature:degrees Rankine";
245
245
  AbsoluteTemperature["\u00B0R"] = "Absolute Temperature:degrees Rankine";
246
246
  })(AbsoluteTemperature = exports.AbsoluteTemperature || (exports.AbsoluteTemperature = {}));
247
+ var RelativeTemperature;
248
+ (function (RelativeTemperature) {
249
+ RelativeTemperature["DEGREES_CELSIUS"] = "Relative Temperature:degrees Celsius";
250
+ RelativeTemperature["\u00B0C"] = "Relative Temperature:degrees Celsius";
251
+ RelativeTemperature["KELVINS"] = "Relative Temperature:kelvins";
252
+ RelativeTemperature["K"] = "Relative Temperature:kelvins";
253
+ RelativeTemperature["DEGREES_FAHRENHEIT"] = "Relative Temperature:degrees Fahrenheit";
254
+ RelativeTemperature["\u00B0F"] = "Relative Temperature:degrees Fahrenheit";
255
+ RelativeTemperature["DEGREES_RANKINE"] = "Relative Temperature:degrees Rankine";
256
+ RelativeTemperature["\u00B0R"] = "Relative Temperature:degrees Rankine";
257
+ })(RelativeTemperature = exports.RelativeTemperature || (exports.RelativeTemperature = {}));
258
+ var Frequency;
259
+ (function (Frequency) {
260
+ Frequency["GIGAHERTZ"] = "Frequency:gigahertz";
261
+ Frequency["GHz"] = "Frequency:gigahertz";
262
+ Frequency["MEGAHERTZ"] = "Frequency:megahertz";
263
+ Frequency["MHz"] = "Frequency:megahertz";
264
+ Frequency["KILOHERTZ"] = "Frequency:kilohertz";
265
+ Frequency["kHz"] = "Frequency:kilohertz";
266
+ Frequency["HERTZ"] = "Frequency:hertz";
267
+ Frequency["Hz"] = "Frequency:hertz";
268
+ Frequency["MILLIHERTZ"] = "Frequency:millihertz";
269
+ Frequency["mHz"] = "Frequency:millihertz";
270
+ Frequency["MICROHERTZ"] = "Frequency:microhertz";
271
+ Frequency["\u00B5Hz"] = "Frequency:microhertz";
272
+ Frequency["NANOHERTZ"] = "Frequency:nanohertz";
273
+ Frequency["nHz"] = "Frequency:nanohertz";
274
+ })(Frequency = exports.Frequency || (exports.Frequency = {}));
247
275
  //# sourceMappingURL=units.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"units.js","sourceRoot":"","sources":["../../src/units.ts"],"names":[],"mappings":";;;AAAA,yFAAyF;AACzF,IAAiB,KAAK,CAErB;AAFD,WAAiB,KAAK;IACP,YAAM,GAAW,EAAE,CAAC;AACnC,CAAC,EAFgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAErB;AAID,IAAY,MAaX;AAbD,WAAY,MAAM;IAChB,kCAAwB,CAAA;IACxB,6BAAqB,CAAA;IACrB,4CAAkC,CAAA;IAClC,mCAA2B,CAAA;IAC3B,4CAAkC,CAAA;IAClC,mCAA2B,CAAA;IAC3B,4CAAkC,CAAA;IAClC,wCAA2B,CAAA;IAC3B,0CAAgC,CAAA;IAChC,kCAA0B,CAAA;IAC1B,kCAAwB,CAAA;IACxB,8BAAsB,CAAA;AACxB,CAAC,EAbW,MAAM,GAAN,cAAM,KAAN,cAAM,QAajB;AAED,IAAY,QAaX;AAbD,WAAY,QAAQ;IAClB,4DAAgD,CAAA;IAChD,8CAAoC,CAAA;IACpC,sEAA0D,CAAA;IAC1D,oDAA0C,CAAA;IAC1C,sEAA0D,CAAA;IAC1D,oDAA0C,CAAA;IAC1C,sEAA0D,CAAA;IAC1D,yDAA0C,CAAA;IAC1C,oEAAwD,CAAA;IACxD,mDAAyC,CAAA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EAAwD,CAAA;IACxD,uEAA6C,CAAA;IAC7C,+DAAwC,CAAA;IACxC,yDAAoC,CAAA;IACpC,qFAA8D,CAAA;IAC9D,0EAAgD,CAAA;IAChD,+EAAwD,CAAA;IACxD,uEAA6C,CAAA;AAC/C,CAAC,EATW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAS9B","sourcesContent":["// This file is generated from the Zaber device database. Do not manually edit this file.\nexport namespace Units {\n export const NATIVE: Native = '';\n}\n\nexport type Native = '';\n\nexport enum Length {\n METRES = 'Length:metres',\n 'm' = 'Length:metres',\n CENTIMETRES = 'Length:centimetres',\n 'cm' = 'Length:centimetres',\n MILLIMETRES = 'Length:millimetres',\n 'mm' = 'Length:millimetres',\n MICROMETRES = 'Length:micrometres',\n 'µm' = 'Length:micrometres',\n NANOMETRES = 'Length:nanometres',\n 'nm' = 'Length:nanometres',\n INCHES = 'Length:inches',\n 'in' = 'Length:inches',\n}\n\nexport enum Velocity {\n METRES_PER_SECOND = 'Velocity:metres per second',\n 'm/s' = 'Velocity:metres per second',\n CENTIMETRES_PER_SECOND = 'Velocity:centimetres per second',\n 'cm/s' = 'Velocity:centimetres per second',\n MILLIMETRES_PER_SECOND = 'Velocity:millimetres per second',\n 'mm/s' = 'Velocity:millimetres per second',\n MICROMETRES_PER_SECOND = 'Velocity:micrometres per second',\n 'µm/s' = 'Velocity:micrometres per second',\n NANOMETRES_PER_SECOND = 'Velocity:nanometres per second',\n 'nm/s' = 'Velocity:nanometres per second',\n INCHES_PER_SECOND = 'Velocity:inches per second',\n 'in/s' = 'Velocity:inches per second',\n}\n\nexport enum Acceleration {\n METRES_PER_SECOND_SQUARED = 'Acceleration:metres per second squared',\n 'm/s²' = 'Acceleration:metres per second squared',\n CENTIMETRES_PER_SECOND_SQUARED = 'Acceleration:centimetres per second squared',\n 'cm/s²' = 'Acceleration:centimetres per second squared',\n MILLIMETRES_PER_SECOND_SQUARED = 'Acceleration:millimetres per second squared',\n 'mm/s²' = 'Acceleration:millimetres per second squared',\n MICROMETRES_PER_SECOND_SQUARED = 'Acceleration:micrometres per second squared',\n 'µm/s²' = 'Acceleration:micrometres per second squared',\n NANOMETRES_PER_SECOND_SQUARED = 'Acceleration:nanometres per second squared',\n 'nm/s²' = 'Acceleration:nanometres per second squared',\n INCHES_PER_SECOND_SQUARED = 'Acceleration:inches per second squared',\n 'in/s²' = 'Acceleration:inches per second squared',\n}\n\nexport enum Angle {\n DEGREES = 'Angle:degrees',\n '°' = 'Angle:degrees',\n RADIANS = 'Angle:radians',\n 'rad' = 'Angle:radians',\n}\n\nexport enum AngularVelocity {\n DEGREES_PER_SECOND = 'Angular Velocity:degrees per second',\n '°/s' = 'Angular Velocity:degrees per second',\n RADIANS_PER_SECOND = 'Angular Velocity:radians per second',\n 'rad/s' = 'Angular Velocity:radians per second',\n}\n\nexport enum AngularAcceleration {\n DEGREES_PER_SECOND_SQUARED = 'Angular Acceleration:degrees per second squared',\n '°/s²' = 'Angular Acceleration:degrees per second squared',\n RADIANS_PER_SECOND_SQUARED = 'Angular Acceleration:radians per second squared',\n 'rad/s²' = 'Angular Acceleration:radians per second squared',\n}\n\nexport enum ACElectricCurrent {\n AMPERES_PEAK = 'AC Electric Current:amperes peak',\n 'A(peak)' = 'AC Electric Current:amperes peak',\n AMPERES_RMS = 'AC Electric Current:amperes RMS',\n 'A(RMS)' = 'AC Electric Current:amperes RMS',\n}\n\nexport enum Percent {\n PERCENT = 'Percent:percent',\n '%' = 'Percent:percent',\n}\n\nexport enum DCElectricCurrent {\n AMPERES = 'DC Electric Current:amperes',\n 'A' = 'DC Electric Current:amperes',\n}\n\nexport enum Force {\n NEWTONS = 'Force:newtons',\n 'N' = 'Force:newtons',\n MILLINEWTONS = 'Force:millinewtons',\n 'mN' = 'Force:millinewtons',\n POUNDS_FORCE = 'Force:pounds-force',\n 'lbf' = 'Force:pounds-force',\n KILONEWTONS = 'Force:kilonewtons',\n 'kN' = 'Force:kilonewtons',\n}\n\nexport enum Time {\n SECONDS = 'Time:seconds',\n 's' = 'Time:seconds',\n MILLISECONDS = 'Time:milliseconds',\n 'ms' = 'Time:milliseconds',\n MICROSECONDS = 'Time:microseconds',\n 'µs' = 'Time:microseconds',\n}\n\nexport enum Torque {\n NEWTON_METRES = 'Torque:newton metres',\n 'N⋅m' = 'Torque:newton metres',\n NEWTON_CENTIMETRES = 'Torque:newton centimetres',\n 'N⋅cm' = 'Torque:newton centimetres',\n POUND_FORCE_FEET = 'Torque:pound-force-feet',\n 'lbf⋅ft' = 'Torque:pound-force-feet',\n OUNCE_FORCE_INCHES = 'Torque:ounce-force-inches',\n 'ozf⋅in' = 'Torque:ounce-force-inches',\n}\n\nexport enum Inertia {\n GRAMS = 'Inertia:grams',\n 'g' = 'Inertia:grams',\n KILOGRAMS = 'Inertia:kilograms',\n 'kg' = 'Inertia:kilograms',\n MILLIGRAMS = 'Inertia:milligrams',\n 'mg' = 'Inertia:milligrams',\n POUNDS = 'Inertia:pounds',\n 'lb' = 'Inertia:pounds',\n OUNCES = 'Inertia:ounces',\n 'oz' = 'Inertia:ounces',\n}\n\nexport enum RotationalInertia {\n GRAM_SQUARE_METRE = 'Rotational Inertia:gram-square metre',\n 'g⋅m²' = 'Rotational Inertia:gram-square metre',\n KILOGRAM_SQUARE_METRE = 'Rotational Inertia:kilogram-square metre',\n 'kg⋅m²' = 'Rotational Inertia:kilogram-square metre',\n POUND_SQUARE_FEET = 'Rotational Inertia:pound-square-feet',\n 'lb⋅ft²' = 'Rotational Inertia:pound-square-feet',\n}\n\nexport enum ForceConstant {\n NEWTONS_PER_AMP = 'Force Constant:newtons per amp',\n 'N/A' = 'Force Constant:newtons per amp',\n MILLINEWTONS_PER_AMP = 'Force Constant:millinewtons per amp',\n 'mN/A' = 'Force Constant:millinewtons per amp',\n KILONEWTONS_PER_AMP = 'Force Constant:kilonewtons per amp',\n 'kN/A' = 'Force Constant:kilonewtons per amp',\n POUNDS_FORCE_PER_AMP = 'Force Constant:pounds-force per amp',\n 'lbf/A' = 'Force Constant:pounds-force per amp',\n}\n\nexport enum TorqueConstant {\n NEWTON_METRES_PER_AMP = 'Torque Constant:newton metres per amp',\n 'N⋅m/A' = 'Torque Constant:newton metres per amp',\n MILLINEWTON_METRES_PER_AMP = 'Torque Constant:millinewton metres per amp',\n 'mN⋅m/A' = 'Torque Constant:millinewton metres per amp',\n KILONEWTON_METRES_PER_AMP = 'Torque Constant:kilonewton metres per amp',\n 'kN⋅m/A' = 'Torque Constant:kilonewton metres per amp',\n POUND_FORCE_FEET_PER_AMP = 'Torque Constant:pound-force-feet per amp',\n 'lbf⋅ft/A' = 'Torque Constant:pound-force-feet per amp',\n}\n\nexport enum Voltage {\n VOLTS = 'Voltage:volts',\n 'V' = 'Voltage:volts',\n MILLIVOLTS = 'Voltage:millivolts',\n 'mV' = 'Voltage:millivolts',\n MICROVOLTS = 'Voltage:microvolts',\n 'µV' = 'Voltage:microvolts',\n}\n\nexport enum CurrentControllerProportionalGain {\n VOLTS_PER_AMP = 'Current Controller Proportional Gain:volts per amp',\n 'V/A' = 'Current Controller Proportional Gain:volts per amp',\n MILLIVOLTS_PER_AMP = 'Current Controller Proportional Gain:millivolts per amp',\n 'mV/A' = 'Current Controller Proportional Gain:millivolts per amp',\n MICROVOLTS_PER_AMP = 'Current Controller Proportional Gain:microvolts per amp',\n 'µV/A' = 'Current Controller Proportional Gain:microvolts per amp',\n}\n\nexport enum CurrentControllerIntegralGain {\n VOLTS_PER_AMP_PER_SECOND = 'Current Controller Integral Gain:volts per amp per second',\n 'V/(A⋅s)' = 'Current Controller Integral Gain:volts per amp per second',\n MILLIVOLTS_PER_AMP_PER_SECOND = 'Current Controller Integral Gain:millivolts per amp per second',\n 'mV/(A⋅s)' = 'Current Controller Integral Gain:millivolts per amp per second',\n MICROVOLTS_PER_AMP_PER_SECOND = 'Current Controller Integral Gain:microvolts per amp per second',\n 'µV/(A⋅s)' = 'Current Controller Integral Gain:microvolts per amp per second',\n}\n\nexport enum CurrentControllerDerivativeGain {\n VOLTS_SECOND_PER_AMP = 'Current Controller Derivative Gain:volts second per amp',\n 'V⋅s/A' = 'Current Controller Derivative Gain:volts second per amp',\n MILLIVOLTS_SECOND_PER_AMP = 'Current Controller Derivative Gain:millivolts second per amp',\n 'mV⋅s/A' = 'Current Controller Derivative Gain:millivolts second per amp',\n MICROVOLTS_SECOND_PER_AMP = 'Current Controller Derivative Gain:microvolts second per amp',\n 'µV⋅s/A' = 'Current Controller Derivative Gain:microvolts second per amp',\n}\n\nexport enum Resistance {\n KILOOHMS = 'Resistance:kiloohms',\n 'kΩ' = 'Resistance:kiloohms',\n OHMS = 'Resistance:ohms',\n 'Ω' = 'Resistance:ohms',\n MILLIOHMS = 'Resistance:milliohms',\n 'mΩ' = 'Resistance:milliohms',\n MICROOHMS = 'Resistance:microohms',\n 'µΩ' = 'Resistance:microohms',\n NANOOHMS = 'Resistance:nanoohms',\n 'nΩ' = 'Resistance:nanoohms',\n}\n\nexport enum Inductance {\n HENRIES = 'Inductance:henries',\n 'H' = 'Inductance:henries',\n MILLIHENRIES = 'Inductance:millihenries',\n 'mH' = 'Inductance:millihenries',\n MICROHENRIES = 'Inductance:microhenries',\n 'µH' = 'Inductance:microhenries',\n NANOHENRIES = 'Inductance:nanohenries',\n 'nH' = 'Inductance:nanohenries',\n}\n\nexport enum VoltageConstant {\n VOLT_SECONDS_PER_RADIAN = 'Voltage Constant:volt seconds per radian',\n 'V·s/rad' = 'Voltage Constant:volt seconds per radian',\n MILLIVOLT_SECONDS_PER_RADIAN = 'Voltage Constant:millivolt seconds per radian',\n 'mV·s/rad' = 'Voltage Constant:millivolt seconds per radian',\n MICROVOLT_SECONDS_PER_RADIAN = 'Voltage Constant:microvolt seconds per radian',\n 'µV·s/rad' = 'Voltage Constant:microvolt seconds per radian',\n}\n\nexport enum AbsoluteTemperature {\n DEGREES_CELSIUS = 'Absolute Temperature:degrees Celsius',\n '°C' = 'Absolute Temperature:degrees Celsius',\n KELVINS = 'Absolute Temperature:kelvins',\n 'K' = 'Absolute Temperature:kelvins',\n DEGREES_FAHRENHEIT = 'Absolute Temperature:degrees Fahrenheit',\n '°F' = 'Absolute Temperature:degrees Fahrenheit',\n DEGREES_RANKINE = 'Absolute Temperature:degrees Rankine',\n '°R' = 'Absolute Temperature:degrees Rankine',\n}\n\nexport type Units = Native | Length | Velocity | Acceleration | Angle | AngularVelocity | AngularAcceleration | ACElectricCurrent | Percent | DCElectricCurrent | Force | Time | Torque | Inertia | RotationalInertia | ForceConstant | TorqueConstant | Voltage | CurrentControllerProportionalGain | CurrentControllerIntegralGain | CurrentControllerDerivativeGain | Resistance | Inductance | VoltageConstant | AbsoluteTemperature;\n"]}
1
+ {"version":3,"file":"units.js","sourceRoot":"","sources":["../../src/units.ts"],"names":[],"mappings":";;;AAAA,yFAAyF;AACzF,IAAiB,KAAK,CAErB;AAFD,WAAiB,KAAK;IACP,YAAM,GAAW,EAAE,CAAC;AACnC,CAAC,EAFgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAErB;AAID,IAAY,MAaX;AAbD,WAAY,MAAM;IAChB,kCAAwB,CAAA;IACxB,6BAAqB,CAAA;IACrB,4CAAkC,CAAA;IAClC,mCAA2B,CAAA;IAC3B,4CAAkC,CAAA;IAClC,mCAA2B,CAAA;IAC3B,4CAAkC,CAAA;IAClC,wCAA2B,CAAA;IAC3B,0CAAgC,CAAA;IAChC,kCAA0B,CAAA;IAC1B,kCAAwB,CAAA;IACxB,8BAAsB,CAAA;AACxB,CAAC,EAbW,MAAM,GAAN,cAAM,KAAN,cAAM,QAajB;AAED,IAAY,QAaX;AAbD,WAAY,QAAQ;IAClB,4DAAgD,CAAA;IAChD,8CAAoC,CAAA;IACpC,sEAA0D,CAAA;IAC1D,oDAA0C,CAAA;IAC1C,sEAA0D,CAAA;IAC1D,oDAA0C,CAAA;IAC1C,sEAA0D,CAAA;IAC1D,yDAA0C,CAAA;IAC1C,oEAAwD,CAAA;IACxD,mDAAyC,CAAA;IACzC,4DAAgD,CAAA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EAA6C,CAAA;IAC7C,+DAAwC,CAAA;IACxC,yDAAoC,CAAA;IACpC,qFAA8D,CAAA;IAC9D,0EAAgD,CAAA;IAChD,+EAAwD,CAAA;IACxD,uEAA6C,CAAA;AAC/C,CAAC,EATW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAS9B;AAED,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,+EAAwD,CAAA;IACxD,uEAA6C,CAAA;IAC7C,+DAAwC,CAAA;IACxC,yDAAoC,CAAA;IACpC,qFAA8D,CAAA;IAC9D,0EAAgD,CAAA;IAChD,+EAAwD,CAAA;IACxD,uEAA6C,CAAA;AAC/C,CAAC,EATW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAS9B;AAED,IAAY,SAeX;AAfD,WAAY,SAAS;IACnB,8CAAiC,CAAA;IACjC,wCAA6B,CAAA;IAC7B,8CAAiC,CAAA;IACjC,wCAA6B,CAAA;IAC7B,8CAAiC,CAAA;IACjC,wCAA6B,CAAA;IAC7B,sCAAyB,CAAA;IACzB,mCAAwB,CAAA;IACxB,gDAAmC,CAAA;IACnC,yCAA8B,CAAA;IAC9B,gDAAmC,CAAA;IACnC,8CAA8B,CAAA;IAC9B,8CAAiC,CAAA;IACjC,wCAA6B,CAAA;AAC/B,CAAC,EAfW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAepB","sourcesContent":["// This file is generated from the Zaber device database. Do not manually edit this file.\nexport namespace Units {\n export const NATIVE: Native = '';\n}\n\nexport type Native = '';\n\nexport enum Length {\n METRES = 'Length:metres',\n 'm' = 'Length:metres',\n CENTIMETRES = 'Length:centimetres',\n 'cm' = 'Length:centimetres',\n MILLIMETRES = 'Length:millimetres',\n 'mm' = 'Length:millimetres',\n MICROMETRES = 'Length:micrometres',\n 'µm' = 'Length:micrometres',\n NANOMETRES = 'Length:nanometres',\n 'nm' = 'Length:nanometres',\n INCHES = 'Length:inches',\n 'in' = 'Length:inches',\n}\n\nexport enum Velocity {\n METRES_PER_SECOND = 'Velocity:metres per second',\n 'm/s' = 'Velocity:metres per second',\n CENTIMETRES_PER_SECOND = 'Velocity:centimetres per second',\n 'cm/s' = 'Velocity:centimetres per second',\n MILLIMETRES_PER_SECOND = 'Velocity:millimetres per second',\n 'mm/s' = 'Velocity:millimetres per second',\n MICROMETRES_PER_SECOND = 'Velocity:micrometres per second',\n 'µm/s' = 'Velocity:micrometres per second',\n NANOMETRES_PER_SECOND = 'Velocity:nanometres per second',\n 'nm/s' = 'Velocity:nanometres per second',\n INCHES_PER_SECOND = 'Velocity:inches per second',\n 'in/s' = 'Velocity:inches per second',\n}\n\nexport enum Acceleration {\n METRES_PER_SECOND_SQUARED = 'Acceleration:metres per second squared',\n 'm/s²' = 'Acceleration:metres per second squared',\n CENTIMETRES_PER_SECOND_SQUARED = 'Acceleration:centimetres per second squared',\n 'cm/s²' = 'Acceleration:centimetres per second squared',\n MILLIMETRES_PER_SECOND_SQUARED = 'Acceleration:millimetres per second squared',\n 'mm/s²' = 'Acceleration:millimetres per second squared',\n MICROMETRES_PER_SECOND_SQUARED = 'Acceleration:micrometres per second squared',\n 'µm/s²' = 'Acceleration:micrometres per second squared',\n NANOMETRES_PER_SECOND_SQUARED = 'Acceleration:nanometres per second squared',\n 'nm/s²' = 'Acceleration:nanometres per second squared',\n INCHES_PER_SECOND_SQUARED = 'Acceleration:inches per second squared',\n 'in/s²' = 'Acceleration:inches per second squared',\n}\n\nexport enum Angle {\n DEGREES = 'Angle:degrees',\n '°' = 'Angle:degrees',\n RADIANS = 'Angle:radians',\n 'rad' = 'Angle:radians',\n}\n\nexport enum AngularVelocity {\n DEGREES_PER_SECOND = 'Angular Velocity:degrees per second',\n '°/s' = 'Angular Velocity:degrees per second',\n RADIANS_PER_SECOND = 'Angular Velocity:radians per second',\n 'rad/s' = 'Angular Velocity:radians per second',\n}\n\nexport enum AngularAcceleration {\n DEGREES_PER_SECOND_SQUARED = 'Angular Acceleration:degrees per second squared',\n '°/s²' = 'Angular Acceleration:degrees per second squared',\n RADIANS_PER_SECOND_SQUARED = 'Angular Acceleration:radians per second squared',\n 'rad/s²' = 'Angular Acceleration:radians per second squared',\n}\n\nexport enum ACElectricCurrent {\n AMPERES_PEAK = 'AC Electric Current:amperes peak',\n 'A(peak)' = 'AC Electric Current:amperes peak',\n AMPERES_RMS = 'AC Electric Current:amperes RMS',\n 'A(RMS)' = 'AC Electric Current:amperes RMS',\n}\n\nexport enum Percent {\n PERCENT = 'Percent:percent',\n '%' = 'Percent:percent',\n}\n\nexport enum DCElectricCurrent {\n AMPERES = 'DC Electric Current:amperes',\n 'A' = 'DC Electric Current:amperes',\n}\n\nexport enum Force {\n NEWTONS = 'Force:newtons',\n 'N' = 'Force:newtons',\n MILLINEWTONS = 'Force:millinewtons',\n 'mN' = 'Force:millinewtons',\n POUNDS_FORCE = 'Force:pounds-force',\n 'lbf' = 'Force:pounds-force',\n KILONEWTONS = 'Force:kilonewtons',\n 'kN' = 'Force:kilonewtons',\n}\n\nexport enum Time {\n SECONDS = 'Time:seconds',\n 's' = 'Time:seconds',\n MILLISECONDS = 'Time:milliseconds',\n 'ms' = 'Time:milliseconds',\n MICROSECONDS = 'Time:microseconds',\n 'µs' = 'Time:microseconds',\n}\n\nexport enum Torque {\n NEWTON_METRES = 'Torque:newton metres',\n 'N⋅m' = 'Torque:newton metres',\n NEWTON_CENTIMETRES = 'Torque:newton centimetres',\n 'N⋅cm' = 'Torque:newton centimetres',\n POUND_FORCE_FEET = 'Torque:pound-force-feet',\n 'lbf⋅ft' = 'Torque:pound-force-feet',\n OUNCE_FORCE_INCHES = 'Torque:ounce-force-inches',\n 'ozf⋅in' = 'Torque:ounce-force-inches',\n}\n\nexport enum Inertia {\n GRAMS = 'Inertia:grams',\n 'g' = 'Inertia:grams',\n KILOGRAMS = 'Inertia:kilograms',\n 'kg' = 'Inertia:kilograms',\n MILLIGRAMS = 'Inertia:milligrams',\n 'mg' = 'Inertia:milligrams',\n POUNDS = 'Inertia:pounds',\n 'lb' = 'Inertia:pounds',\n OUNCES = 'Inertia:ounces',\n 'oz' = 'Inertia:ounces',\n}\n\nexport enum RotationalInertia {\n GRAM_SQUARE_METRE = 'Rotational Inertia:gram-square metre',\n 'g⋅m²' = 'Rotational Inertia:gram-square metre',\n KILOGRAM_SQUARE_METRE = 'Rotational Inertia:kilogram-square metre',\n 'kg⋅m²' = 'Rotational Inertia:kilogram-square metre',\n POUND_SQUARE_FEET = 'Rotational Inertia:pound-square-feet',\n 'lb⋅ft²' = 'Rotational Inertia:pound-square-feet',\n}\n\nexport enum ForceConstant {\n NEWTONS_PER_AMP = 'Force Constant:newtons per amp',\n 'N/A' = 'Force Constant:newtons per amp',\n MILLINEWTONS_PER_AMP = 'Force Constant:millinewtons per amp',\n 'mN/A' = 'Force Constant:millinewtons per amp',\n KILONEWTONS_PER_AMP = 'Force Constant:kilonewtons per amp',\n 'kN/A' = 'Force Constant:kilonewtons per amp',\n POUNDS_FORCE_PER_AMP = 'Force Constant:pounds-force per amp',\n 'lbf/A' = 'Force Constant:pounds-force per amp',\n}\n\nexport enum TorqueConstant {\n NEWTON_METRES_PER_AMP = 'Torque Constant:newton metres per amp',\n 'N⋅m/A' = 'Torque Constant:newton metres per amp',\n MILLINEWTON_METRES_PER_AMP = 'Torque Constant:millinewton metres per amp',\n 'mN⋅m/A' = 'Torque Constant:millinewton metres per amp',\n KILONEWTON_METRES_PER_AMP = 'Torque Constant:kilonewton metres per amp',\n 'kN⋅m/A' = 'Torque Constant:kilonewton metres per amp',\n POUND_FORCE_FEET_PER_AMP = 'Torque Constant:pound-force-feet per amp',\n 'lbf⋅ft/A' = 'Torque Constant:pound-force-feet per amp',\n}\n\nexport enum Voltage {\n VOLTS = 'Voltage:volts',\n 'V' = 'Voltage:volts',\n MILLIVOLTS = 'Voltage:millivolts',\n 'mV' = 'Voltage:millivolts',\n MICROVOLTS = 'Voltage:microvolts',\n 'µV' = 'Voltage:microvolts',\n}\n\nexport enum CurrentControllerProportionalGain {\n VOLTS_PER_AMP = 'Current Controller Proportional Gain:volts per amp',\n 'V/A' = 'Current Controller Proportional Gain:volts per amp',\n MILLIVOLTS_PER_AMP = 'Current Controller Proportional Gain:millivolts per amp',\n 'mV/A' = 'Current Controller Proportional Gain:millivolts per amp',\n MICROVOLTS_PER_AMP = 'Current Controller Proportional Gain:microvolts per amp',\n 'µV/A' = 'Current Controller Proportional Gain:microvolts per amp',\n}\n\nexport enum CurrentControllerIntegralGain {\n VOLTS_PER_AMP_PER_SECOND = 'Current Controller Integral Gain:volts per amp per second',\n 'V/(A⋅s)' = 'Current Controller Integral Gain:volts per amp per second',\n MILLIVOLTS_PER_AMP_PER_SECOND = 'Current Controller Integral Gain:millivolts per amp per second',\n 'mV/(A⋅s)' = 'Current Controller Integral Gain:millivolts per amp per second',\n MICROVOLTS_PER_AMP_PER_SECOND = 'Current Controller Integral Gain:microvolts per amp per second',\n 'µV/(A⋅s)' = 'Current Controller Integral Gain:microvolts per amp per second',\n}\n\nexport enum CurrentControllerDerivativeGain {\n VOLTS_SECOND_PER_AMP = 'Current Controller Derivative Gain:volts second per amp',\n 'V⋅s/A' = 'Current Controller Derivative Gain:volts second per amp',\n MILLIVOLTS_SECOND_PER_AMP = 'Current Controller Derivative Gain:millivolts second per amp',\n 'mV⋅s/A' = 'Current Controller Derivative Gain:millivolts second per amp',\n MICROVOLTS_SECOND_PER_AMP = 'Current Controller Derivative Gain:microvolts second per amp',\n 'µV⋅s/A' = 'Current Controller Derivative Gain:microvolts second per amp',\n}\n\nexport enum Resistance {\n KILOOHMS = 'Resistance:kiloohms',\n 'kΩ' = 'Resistance:kiloohms',\n OHMS = 'Resistance:ohms',\n 'Ω' = 'Resistance:ohms',\n MILLIOHMS = 'Resistance:milliohms',\n 'mΩ' = 'Resistance:milliohms',\n MICROOHMS = 'Resistance:microohms',\n 'µΩ' = 'Resistance:microohms',\n NANOOHMS = 'Resistance:nanoohms',\n 'nΩ' = 'Resistance:nanoohms',\n}\n\nexport enum Inductance {\n HENRIES = 'Inductance:henries',\n 'H' = 'Inductance:henries',\n MILLIHENRIES = 'Inductance:millihenries',\n 'mH' = 'Inductance:millihenries',\n MICROHENRIES = 'Inductance:microhenries',\n 'µH' = 'Inductance:microhenries',\n NANOHENRIES = 'Inductance:nanohenries',\n 'nH' = 'Inductance:nanohenries',\n}\n\nexport enum VoltageConstant {\n VOLT_SECONDS_PER_RADIAN = 'Voltage Constant:volt seconds per radian',\n 'V·s/rad' = 'Voltage Constant:volt seconds per radian',\n MILLIVOLT_SECONDS_PER_RADIAN = 'Voltage Constant:millivolt seconds per radian',\n 'mV·s/rad' = 'Voltage Constant:millivolt seconds per radian',\n MICROVOLT_SECONDS_PER_RADIAN = 'Voltage Constant:microvolt seconds per radian',\n 'µV·s/rad' = 'Voltage Constant:microvolt seconds per radian',\n}\n\nexport enum AbsoluteTemperature {\n DEGREES_CELSIUS = 'Absolute Temperature:degrees Celsius',\n '°C' = 'Absolute Temperature:degrees Celsius',\n KELVINS = 'Absolute Temperature:kelvins',\n 'K' = 'Absolute Temperature:kelvins',\n DEGREES_FAHRENHEIT = 'Absolute Temperature:degrees Fahrenheit',\n '°F' = 'Absolute Temperature:degrees Fahrenheit',\n DEGREES_RANKINE = 'Absolute Temperature:degrees Rankine',\n '°R' = 'Absolute Temperature:degrees Rankine',\n}\n\nexport enum RelativeTemperature {\n DEGREES_CELSIUS = 'Relative Temperature:degrees Celsius',\n '°C' = 'Relative Temperature:degrees Celsius',\n KELVINS = 'Relative Temperature:kelvins',\n 'K' = 'Relative Temperature:kelvins',\n DEGREES_FAHRENHEIT = 'Relative Temperature:degrees Fahrenheit',\n '°F' = 'Relative Temperature:degrees Fahrenheit',\n DEGREES_RANKINE = 'Relative Temperature:degrees Rankine',\n '°R' = 'Relative Temperature:degrees Rankine',\n}\n\nexport enum Frequency {\n GIGAHERTZ = 'Frequency:gigahertz',\n 'GHz' = 'Frequency:gigahertz',\n MEGAHERTZ = 'Frequency:megahertz',\n 'MHz' = 'Frequency:megahertz',\n KILOHERTZ = 'Frequency:kilohertz',\n 'kHz' = 'Frequency:kilohertz',\n HERTZ = 'Frequency:hertz',\n 'Hz' = 'Frequency:hertz',\n MILLIHERTZ = 'Frequency:millihertz',\n 'mHz' = 'Frequency:millihertz',\n MICROHERTZ = 'Frequency:microhertz',\n 'µHz' = 'Frequency:microhertz',\n NANOHERTZ = 'Frequency:nanohertz',\n 'nHz' = 'Frequency:nanohertz',\n}\n\nexport type Units = Native | Length | Velocity | Acceleration | Angle | AngularVelocity | AngularAcceleration | ACElectricCurrent | Percent | DCElectricCurrent | Force | Time | Torque | Inertia | RotationalInertia | ForceConstant | TorqueConstant | Voltage | CurrentControllerProportionalGain | CurrentControllerIntegralGain | CurrentControllerDerivativeGain | Resistance | Inductance | VoltageConstant | AbsoluteTemperature | RelativeTemperature | Frequency;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaber/motion",
3
- "version": "4.3.0",
3
+ "version": "4.5.0",
4
4
  "description": "Zaber Motion Library is a multi-platform library used to operate Zaber devices.",
5
5
  "keywords": [],
6
6
  "main": "dist/lib/index.js",
@@ -32,6 +32,11 @@
32
32
  "require": "./dist/lib/microscopy/index.js",
33
33
  "import": "./dist/lib/microscopy/index.js"
34
34
  },
35
+ "./product": {
36
+ "types": "./dist/lib/product/index.d.ts",
37
+ "require": "./dist/lib/product/index.js",
38
+ "import": "./dist/lib/product/index.js"
39
+ },
35
40
  "./exceptions": {
36
41
  "types": "./dist/lib/exceptions/index.d.ts",
37
42
  "require": "./dist/lib/exceptions/index.js",
@@ -62,6 +67,11 @@
62
67
  "require": "./dist/lib/microscopy/index.js",
63
68
  "import": "./dist/lib/microscopy/index.js"
64
69
  },
70
+ "./dist/lib/product": {
71
+ "types": "./dist/lib/product/index.d.ts",
72
+ "require": "./dist/lib/product/index.js",
73
+ "import": "./dist/lib/product/index.js"
74
+ },
65
75
  "./dist/lib/exceptions": {
66
76
  "types": "./dist/lib/exceptions/index.d.ts",
67
77
  "require": "./dist/lib/exceptions/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"process.js","sourceRoot":"","sources":["../../../src/ascii/process.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtD,oDAAsC;AACtC,iCAA8B;AAC9B,yCAAsC;AACtC,mDAA+C;AAC/C,uCAAwC;AACxC,yCAAsC;AAEtC,2EAAsE;AACtE,gDAA6C;AAE7C;;;;;GAKG;AACH,MAAa,OAAO;IAClB;;OAEG;IACH,IAAW,UAAU;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAGD;;OAEG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAKD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAGD;;OAEG;IACH,IAAW,OAAO;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAGD;;OAEG;IACH,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAGD,YAAY,UAA6B,EAAE,aAAqB;QAC9D,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,IAAI,WAAI,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;QACxD,IAAI,CAAC,SAAS,GAAG,IAAI,4BAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9C,IAAI,CAAC,QAAQ,GAAG,IAAI,qBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAQ,CAAC,UAAU,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAClE,CAAC;IAED;;;OAGG;IAC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,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAExB,MAAM,OAAO,CAAC,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,WAAW,CACtB,KAAa;QAEb,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC;QACjD,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QACtE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACxD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACpC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAExB,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,SAAS,CACtC,2BAA2B,EAC3B,OAAO,EACP,OAAO,CAAC,uBAAuB,CAAC,CAAC;QACnC,OAAO,QAAQ,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;CACF;AA5WD,0BA4WC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { ProcessController } from './process_controller';\nimport * as gateway from '../gateway';\nimport { Axis } from './axis';\nimport { Response } from './response';\nimport { AxisSettings } from './axis_settings';\nimport { AxisStorage } from './storage';\nimport { Warnings } from './warnings';\nimport { ProcessControllerMode } from './process_controller_mode';\nimport { ProcessControllerSource } from './process_controller_source';\nimport { Measurement } from '../measurement';\n\n/**\n * Use to drive voltage for a process such as a heater, valve, Peltier device, etc.\n * WARNING: DO NOT USE. This API is for an as-yet unreleased product and firmware version.\n * It is subject to breaking changes without warning until further notice.\n * Requires at least Firmware 7.34.\n */\nexport class Process {\n /**\n * Controller for this process.\n */\n public get controller(): ProcessController {\n return this._controller;\n }\n private _controller: ProcessController;\n\n /**\n * The process number identifies the process on the controller.\n */\n public get processNumber(): number {\n return this._processNumber;\n }\n private _processNumber: number;\n\n private _axis: Axis;\n\n /**\n * Settings and properties of this process.\n */\n public get settings(): AxisSettings {\n return this._settings;\n }\n private _settings: AxisSettings;\n\n /**\n * Key-value storage of this process.\n */\n public get storage(): AxisStorage {\n return this._storage;\n }\n private _storage: AxisStorage;\n\n /**\n * Warnings and faults of this process.\n */\n public get warnings(): Warnings {\n return this._warnings;\n }\n private _warnings: Warnings;\n\n constructor(controller: ProcessController, processNumber: number) {\n this._controller = controller;\n this._processNumber = processNumber;\n this._axis = new Axis(controller.device, processNumber);\n this._settings = new AxisSettings(this._axis);\n this._storage = new AxisStorage(this._axis);\n this._warnings = new Warnings(controller.device, processNumber);\n }\n\n /**\n * Sets the enabled state of the driver.\n * @param [enabled=true] If true (default) enables drive. If false disables.\n */\n public async enable(\n enabled: boolean = true\n ): Promise<void> {\n const request = new gateway.ProcessOn();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setOn(enabled);\n\n await gateway.callAsync('process-controller/enable', request);\n }\n\n /**\n * Turns this process on. In manual mode, this supplies voltage; in controlled mode, it starts the control loop.\n * @param [duration=0] How long to leave the process on in milliseconds.\n */\n public async on(\n duration: number = 0\n ): Promise<void> {\n const request = new gateway.ProcessOn();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setOn(true);\n request.setDuration(duration);\n\n await gateway.callAsync('process-controller/on', request);\n }\n\n /**\n * Turns this process off.\n */\n public async off(): Promise<void> {\n const request = new gateway.ProcessOn();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setOn(false);\n\n await gateway.callAsync('process-controller/on', request);\n }\n\n /**\n * Sets the control mode of this process.\n * @param mode Mode to set this process to.\n */\n public async setMode(\n mode: ProcessControllerMode\n ): Promise<void> {\n const request = new gateway.DeviceSetSettingRequest();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setSetting('process.control.mode');\n request.setValue(mode);\n\n await gateway.callAsync('device/set_setting', request);\n }\n\n /**\n * Gets the control mode of this process.\n * @returns Control mode.\n */\n public async getMode(): Promise<ProcessControllerMode> {\n const request = new gateway.DeviceGetSettingRequest();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setSetting('process.control.mode');\n\n const response = await gateway.callAsync<gateway.DoubleResponse>(\n 'device/get_setting',\n request,\n gateway.DoubleResponse);\n return response.getValue();\n }\n\n /**\n * Gets the source used to control this process.\n * @returns The source providing feedback for this process.\n */\n public async getSource(): Promise<ProcessControllerSource> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n\n const response = await gateway.callAsync<gateway.ProcessControllerSource>(\n 'process_controller/get_source',\n request,\n gateway.ProcessControllerSource);\n return ProcessControllerSource.fromProtobuf(response.toObject());\n }\n\n /**\n * Sets the source used to control this process.\n * @param source Sets the source that should provide feedback for this process.\n */\n public async setSource(\n source: ProcessControllerSource\n ): Promise<void> {\n const request = new gateway.SetProcessControllerSource();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setSource(ProcessControllerSource.toProtobuf(source));\n\n await gateway.callAsync('process_controller/set_source', request);\n }\n\n /**\n * Gets the current value of the source used to control this process.\n * @returns The current value of this process's controlling source.\n */\n public async getInput(): Promise<Measurement> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n\n const response = await gateway.callAsync<gateway.Measurement>(\n 'process_controller/get_input',\n request,\n gateway.Measurement);\n return Measurement.fromProtobuf(response.toObject());\n }\n\n /**\n * Creates an H-bridge between this process and its neighbor. This method is only callable on axis 1 and 3.\n */\n public async bridge(): Promise<void> {\n const request = new gateway.ProcessOn();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setOn(true);\n\n await gateway.callAsync('process_controller/bridge', request);\n }\n\n /**\n * Breaks the H-bridge between this process and its neighbor, allowing them to be independently controlled.\n * This method is only callable on axis 1 and 3.\n */\n public async unbridge(): Promise<void> {\n const request = new gateway.ProcessOn();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setOn(false);\n\n await gateway.callAsync('process_controller/bridge', request);\n }\n\n /**\n * Detects if the given process is in bridging mode.\n * @returns Whether this process is bridged with its neighbor.\n */\n public async isBridge(): Promise<boolean> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n\n const response = await gateway.callAsync<gateway.BoolResponse>(\n 'process_controller/is_bridge',\n request,\n gateway.BoolResponse);\n return response.getValue();\n }\n\n /**\n * Sends a generic ASCII command to this process' underlying axis.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param [options.checkErrors=true] Controls whether to throw an exception when the device rejects the command.\n * @param [options.timeout=0] The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @returns A response to the command.\n */\n public async genericCommand(\n command: string,\n options: Process.GenericCommandOptions = {}\n ): Promise<Response> {\n const {\n checkErrors = true,\n timeout = 0,\n } = options;\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setCommand(command);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponse>(\n 'interface/generic_command',\n request,\n gateway.GenericCommandResponse);\n return Response.fromProtobuf(response.toObject());\n }\n\n /**\n * Sends a generic ASCII command to this process and expect multiple responses.\n * Responses are returned in order of arrival.\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n * @param [options.checkErrors=true] Controls whether to throw an exception when a device rejects the command.\n * @param [options.timeout=0] The timeout, in milliseconds, for a device to respond to the command.\n * Overrides the connection default request timeout.\n * @returns All responses to the command.\n */\n public async genericCommandMultiResponse(\n command: string,\n options: Process.GenericCommandMultiResponseOptions = {}\n ): Promise<Response[]> {\n const {\n checkErrors = true,\n timeout = 0,\n } = options;\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setCommand(command);\n request.setCheckErrors(checkErrors);\n request.setTimeout(timeout);\n\n const response = await gateway.callAsync<gateway.GenericCommandResponseCollection>(\n 'interface/generic_command_multi_response',\n request,\n gateway.GenericCommandResponseCollection);\n return response.getResponsesList().map(a => Response.fromProtobuf(a.toObject()));\n }\n\n /**\n * Sends a generic ASCII command to this process without expecting a response and without adding a message ID\n * For more information refer to: [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_commands).\n * @param command Command and its parameters.\n */\n public async genericCommandNoResponse(\n command: string\n ): Promise<void> {\n const request = new gateway.GenericCommandRequest();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setCommand(command);\n\n await gateway.callAsync('interface/generic_command_no_response', request);\n }\n\n /**\n * Returns a serialization of the current process state that can be saved and reapplied.\n * @returns A serialization of the current state of the process.\n */\n public async getState(): Promise<string> {\n const request = new gateway.AxisEmptyRequest();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n\n const response = await gateway.callAsync<gateway.StringResponse>(\n 'device/get_state',\n request,\n gateway.StringResponse);\n return response.getValue();\n }\n\n /**\n * Applies a saved state to this process.\n * @param state The state object to apply to this process.\n */\n public async setState(\n state: string\n ): Promise<void> {\n const request = new gateway.SetStateRequest();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setState(state);\n\n await gateway.callAsync('device/set_state', request);\n }\n\n /**\n * Checks if a state can be applied to this process.\n * This only covers exceptions that can be determined statically such as mismatches of ID or version,\n * the process of applying the state can still fail when running.\n * @param state The state object to check against.\n * @returns An explanation of why this state cannot be set to this process.\n */\n public async canSetState(\n state: string\n ): Promise<string> {\n const request = new gateway.CanSetStateRequest();\n request.setInterfaceId(this.controller.device.connection.interfaceId);\n request.setDevice(this.controller.device.deviceAddress);\n request.setAxis(this.processNumber);\n request.setState(state);\n\n const response = await gateway.callAsync<gateway.CanSetStateAxisResponse>(\n 'device/can_set_axis_state',\n request,\n gateway.CanSetStateAxisResponse);\n return response.getError();\n }\n}\n\nnamespace Process {\n export interface GenericCommandOptions {\n checkErrors?: boolean;\n timeout?: number;\n }\n export interface GenericCommandMultiResponseOptions {\n checkErrors?: boolean;\n timeout?: number;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process_controller.js","sourceRoot":"","sources":["../../../src/ascii/process_controller.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAItD,oDAAsC;AACtC,uCAAoC;AAEpC;;;;;GAKG;AACH,MAAa,iBAAiB;IAC5B;;OAEG;IACH,IAAW,MAAM;QACf,O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,CAAC;QAE7C,OAAO,CAAC,QAAQ,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;CACF;AAjED,8CAiEC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport { Connection } from './connection';\nimport { Device } from './device';\nimport * as gateway from '../gateway';\nimport { Process } from './process';\n\n/**\n * Use to manage a process controller.\n * WARNING: DO NOT USE. This API is for an as-yet unreleased product and firmware version.\n * It is subject to breaking changes without warning until further notice.\n * Requires at least Firmware 7.34.\n */\nexport class ProcessController {\n /**\n * The base device of this process controller.\n */\n public get device(): Device {\n return this._device;\n }\n private _device: Device;\n\n /**\n * Creates instance of `ProcessController` of the given device.\n * If the device is identified, this constructor will ensure it is a process controller.\n */\n constructor(device: Device) {\n this._device = device;\n this._verifyIsProcessController();\n }\n\n /**\n * Detects the process controllers on the connection.\n * @param connection The connection to detect process controllers on.\n * @param [identify=true] If the Process Controllers should be identified upon detection.\n * @returns A list of all `ProcessController`s on the connection.\n */\n public static async detect(\n connection: Connection,\n identify: boolean = true\n ): Promise<ProcessController[]> {\n const request = new gateway.DeviceDetectRequest();\n request.setType(gateway.DeviceDetectRequest.DeviceType.PROCESS_CONTROLLER);\n request.setInterfaceId(connection.interfaceId);\n request.setIdentifyDevices(identify);\n\n const response = await gateway.callAsync<gateway.DeviceDetectResponse>(\n 'device/detect',\n request,\n gateway.DeviceDetectResponse);\n return response.getDevicesList().map(deviceAddress => new ProcessController(connection.getDevice(deviceAddress)));\n }\n\n /**\n * Gets an Process class instance which allows you to control a particular voltage source.\n * Axes are numbered from 1.\n * @param processNumber Number of process to control.\n * @returns Process instance.\n */\n public getProcess(\n processNumber: number\n ): Process {\n if (processNumber <= 0) {\n throw new TypeError('Invalid value; processes are numbered from 1.');\n }\n return new Process(this, processNumber);\n }\n\n /**\n * Checks if this is a process controller or some other type of device and throws a detect error if it is not.\n */\n private _verifyIsProcessController(): void {\n const request = new gateway.DeviceEmptyRequest();\n request.setInterfaceId(this.device.connection.interfaceId);\n request.setDevice(this.device.deviceAddress);\n\n gateway.callSync('process_controller/verify', request);\n }\n}\n\nnamespace ProcessController {\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process_controller_mode.js","sourceRoot":"","sources":["../../../src/ascii/process_controller_mode.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD;;GAEG;AACH,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,qEAAU,CAAA;IACV,+DAAO,CAAA;IACP,6EAAc,CAAA;IACd,qEAAU,CAAA;AACZ,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\n/**\n * Servo Tuning Parameter Set to target.\n */\nexport enum ProcessControllerMode {\n MANUAL = 0,\n PID = 1,\n PID_HEATER = 2,\n ON_OFF = 3,\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process_controller_source.js","sourceRoot":"","sources":["../../../src/ascii/process_controller_source.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,oDAAsC;AAmBtC,IAAiB,uBAAuB,CAqBvC;AArBD,WAAiB,uBAAuB;IACzB,8BAAM,GAAG,yBAAyB,CAAC;IAEhD,gBAAgB;IAChB,SAAgB,YAAY,CAAC,MAAgD;QAC3E,OAAO;YACL,MAAM,EAAE,MAAM,CAAC,MAAa;YAC5B,IAAI,EAAE,MAAM,CAAC,IAAI;SAClB,CAAC;IACJ,CAAC;IALe,oCAAY,eAK3B,CAAA;IACD,gBAAgB;IAChB,SAAgB,UAAU,CAAC,MAAkD;QAC3E,MAAM,MAAM,GAAG,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC;QACrD,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,OAAO,MAAM,CAAC;SACf;QAED,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAChC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5B,OAAO,MAAM,CAAC;IAChB,CAAC;IATe,kCAAU,aASzB,CAAA;AACH,CAAC,EArBgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAqBvC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\nimport * as gateway from '../gateway';\nimport { ProcessControllerSourceSensor } from './process_controller_source_sensor';\n\n/**\n * The source used by a process in a closed-loop mode.\n */\nexport interface ProcessControllerSource {\n /**\n * The type of input sensor.\n */\n sensor: ProcessControllerSourceSensor;\n\n /**\n * The specific input to use.\n */\n port: number;\n\n}\n\nexport namespace ProcessControllerSource {\n export const __type = 'ProcessControllerSource';\n\n /** @internal */\n export function fromProtobuf(pbData: gateway.ProcessControllerSource.AsObject): ProcessControllerSource {\n return {\n sensor: pbData.sensor as any,\n port: pbData.port,\n };\n }\n /** @internal */\n export function toProtobuf(source: ProcessControllerSource | null | undefined): gateway.ProcessControllerSource {\n const pbData = new gateway.ProcessControllerSource();\n if (source == null) {\n return pbData;\n }\n\n pbData.setSensor(source.sensor);\n pbData.setPort(source.port);\n return pbData;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process_controller_source_sensor.js","sourceRoot":"","sources":["../../../src/ascii/process_controller_source_sensor.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD;;GAEG;AACH,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACvC,8FAAe,CAAA;IACf,kGAAiB,CAAA;AACnB,CAAC,EAHW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAGxC","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\n/**\n * Servo Tuning Parameter Set to target.\n */\nexport enum ProcessControllerSourceSensor {\n THERMISTOR = 10,\n ANALOG_INPUT = 20,\n}\n"]}