@zaber/motion 2.14.3 → 2.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.gyp
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"targets": [{
|
|
3
3
|
"target_name": "<(module_name)",
|
|
4
|
-
"cflags
|
|
5
|
-
"cflags_cc
|
|
4
|
+
"cflags": [ "-std=c++17" ],
|
|
5
|
+
"cflags_cc": [ "-std=c++17" ],
|
|
6
|
+
"xcode_settings": {
|
|
7
|
+
"OTHER_CFLAGS": [ "-std=c++17"],
|
|
8
|
+
},
|
|
6
9
|
"sources": [
|
|
7
10
|
"src_cpp/module.cpp",
|
|
8
11
|
"src_cpp/events.cpp",
|
|
Binary file
|
|
@@ -8,10 +8,35 @@ export declare enum WarningFlags {
|
|
|
8
8
|
* Critical System Error.
|
|
9
9
|
*/
|
|
10
10
|
CRITICAL_SYSTEM_ERROR = "FF",
|
|
11
|
+
/**
|
|
12
|
+
* Peripheral Not Supported.
|
|
13
|
+
*/
|
|
14
|
+
PERIPHERAL_NOT_SUPPORTED = "FN",
|
|
15
|
+
/**
|
|
16
|
+
* Peripheral Inactive.
|
|
17
|
+
*/
|
|
18
|
+
PERIPHERAL_INACTIVE = "FZ",
|
|
19
|
+
/**
|
|
20
|
+
* Hardware Emergency Stop Driver Disabled.
|
|
21
|
+
*/
|
|
22
|
+
HARDWARE_EMERGENCY_STOP = "FH",
|
|
11
23
|
/**
|
|
12
24
|
* Overvoltage or Undervoltage Driver Disabled.
|
|
13
25
|
*/
|
|
14
26
|
OVERVOLTAGE_OR_UNDERVOLTAGE = "FV",
|
|
27
|
+
/**
|
|
28
|
+
* Driver Disabled on Startup or by Command.
|
|
29
|
+
* Devices with Firmware 7.11 and above.
|
|
30
|
+
*/
|
|
31
|
+
DRIVER_DISABLED_NO_FAULT = "FO",
|
|
32
|
+
/**
|
|
33
|
+
* Current Inrush Error.
|
|
34
|
+
*/
|
|
35
|
+
CURRENT_INRUSH_ERROR = "FC",
|
|
36
|
+
/**
|
|
37
|
+
* Motor Temperature Error.
|
|
38
|
+
*/
|
|
39
|
+
MOTOR_TEMPERATURE_ERROR = "FM",
|
|
15
40
|
/**
|
|
16
41
|
* Driver Disabled.
|
|
17
42
|
* Devices with Firmware 7.10 and lower.
|
|
@@ -21,10 +46,6 @@ export declare enum WarningFlags {
|
|
|
21
46
|
* Encoder Error.
|
|
22
47
|
*/
|
|
23
48
|
ENCODER_ERROR = "FQ",
|
|
24
|
-
/**
|
|
25
|
-
* Excessive Twist.
|
|
26
|
-
*/
|
|
27
|
-
EXCESSIVE_TWIST = "FT",
|
|
28
49
|
/**
|
|
29
50
|
* Index Error.
|
|
30
51
|
*/
|
|
@@ -33,6 +54,10 @@ export declare enum WarningFlags {
|
|
|
33
54
|
* Analog Encoder Sync Error.
|
|
34
55
|
*/
|
|
35
56
|
ANALOG_ENCODER_SYNC_ERROR = "FA",
|
|
57
|
+
/**
|
|
58
|
+
* Overdrive Limit Exceeded.
|
|
59
|
+
*/
|
|
60
|
+
OVERDRIVE_LIMIT_EXCEEDED = "FR",
|
|
36
61
|
/**
|
|
37
62
|
* Stalled and Stopped.
|
|
38
63
|
*/
|
|
@@ -49,6 +74,10 @@ export declare enum WarningFlags {
|
|
|
49
74
|
* Limit Error.
|
|
50
75
|
*/
|
|
51
76
|
LIMIT_ERROR = "FE",
|
|
77
|
+
/**
|
|
78
|
+
* Excessive Twist.
|
|
79
|
+
*/
|
|
80
|
+
EXCESSIVE_TWIST = "FT",
|
|
52
81
|
/**
|
|
53
82
|
* Unexpected Limit Trigger.
|
|
54
83
|
*/
|
|
@@ -69,6 +98,10 @@ export declare enum WarningFlags {
|
|
|
69
98
|
* Displaced When Stationary.
|
|
70
99
|
*/
|
|
71
100
|
DISPLACED_WHEN_STATIONARY = "WM",
|
|
101
|
+
/**
|
|
102
|
+
* Invalid Calibration Type.
|
|
103
|
+
*/
|
|
104
|
+
INVALID_CALIBRATION_TYPE = "WP",
|
|
72
105
|
/**
|
|
73
106
|
* No Reference Position.
|
|
74
107
|
*/
|
|
@@ -77,10 +110,6 @@ export declare enum WarningFlags {
|
|
|
77
110
|
* Device Not Homed.
|
|
78
111
|
*/
|
|
79
112
|
DEVICE_NOT_HOMED = "WH",
|
|
80
|
-
/**
|
|
81
|
-
* Invalid Calibration Type.
|
|
82
|
-
*/
|
|
83
|
-
INVALID_CALIBRATION_TYPE = "WP",
|
|
84
113
|
/**
|
|
85
114
|
* Manual Control.
|
|
86
115
|
*/
|
|
@@ -101,37 +130,17 @@ export declare enum WarningFlags {
|
|
|
101
130
|
* Value Truncated.
|
|
102
131
|
*/
|
|
103
132
|
VALUE_TRUNCATED = "NT",
|
|
104
|
-
/**
|
|
105
|
-
* Joystick Calibrating.
|
|
106
|
-
*/
|
|
107
|
-
JOYSTICK_CALIBRATING = "NJ",
|
|
108
133
|
/**
|
|
109
134
|
* Setting Update Pending.
|
|
110
135
|
*/
|
|
111
136
|
SETTING_UPDATE_PENDING = "NU",
|
|
112
137
|
/**
|
|
113
|
-
*
|
|
114
|
-
*/
|
|
115
|
-
PERIPHERAL_NOT_SUPPORTED = "FN",
|
|
116
|
-
/**
|
|
117
|
-
* Peripheral Inactive.
|
|
118
|
-
*/
|
|
119
|
-
PERIPHERAL_INACTIVE = "FZ",
|
|
120
|
-
/**
|
|
121
|
-
* Hardware Emergency Stop Driver Disabled.
|
|
122
|
-
*/
|
|
123
|
-
HARDWARE_EMERGENCY_STOP = "FH",
|
|
124
|
-
/**
|
|
125
|
-
* Driver Disabled on Startup or by Command.
|
|
126
|
-
* Devices with Firmware 7.11 and above.
|
|
127
|
-
*/
|
|
128
|
-
DRIVER_DISABLED_NO_FAULT = "FO",
|
|
129
|
-
/**
|
|
130
|
-
* Current Inrush Error.
|
|
138
|
+
* Joystick Calibrating.
|
|
131
139
|
*/
|
|
132
|
-
|
|
140
|
+
JOYSTICK_CALIBRATING = "NJ",
|
|
133
141
|
/**
|
|
134
|
-
*
|
|
142
|
+
* Device in Firmware Update Mode.
|
|
143
|
+
* Firmware 6.xx only.
|
|
135
144
|
*/
|
|
136
|
-
|
|
145
|
+
FIRMWARE_UPDATE_MODE = "NB"
|
|
137
146
|
}
|
|
@@ -14,10 +14,35 @@ var WarningFlags;
|
|
|
14
14
|
* Critical System Error.
|
|
15
15
|
*/
|
|
16
16
|
WarningFlags["CRITICAL_SYSTEM_ERROR"] = "FF";
|
|
17
|
+
/**
|
|
18
|
+
* Peripheral Not Supported.
|
|
19
|
+
*/
|
|
20
|
+
WarningFlags["PERIPHERAL_NOT_SUPPORTED"] = "FN";
|
|
21
|
+
/**
|
|
22
|
+
* Peripheral Inactive.
|
|
23
|
+
*/
|
|
24
|
+
WarningFlags["PERIPHERAL_INACTIVE"] = "FZ";
|
|
25
|
+
/**
|
|
26
|
+
* Hardware Emergency Stop Driver Disabled.
|
|
27
|
+
*/
|
|
28
|
+
WarningFlags["HARDWARE_EMERGENCY_STOP"] = "FH";
|
|
17
29
|
/**
|
|
18
30
|
* Overvoltage or Undervoltage Driver Disabled.
|
|
19
31
|
*/
|
|
20
32
|
WarningFlags["OVERVOLTAGE_OR_UNDERVOLTAGE"] = "FV";
|
|
33
|
+
/**
|
|
34
|
+
* Driver Disabled on Startup or by Command.
|
|
35
|
+
* Devices with Firmware 7.11 and above.
|
|
36
|
+
*/
|
|
37
|
+
WarningFlags["DRIVER_DISABLED_NO_FAULT"] = "FO";
|
|
38
|
+
/**
|
|
39
|
+
* Current Inrush Error.
|
|
40
|
+
*/
|
|
41
|
+
WarningFlags["CURRENT_INRUSH_ERROR"] = "FC";
|
|
42
|
+
/**
|
|
43
|
+
* Motor Temperature Error.
|
|
44
|
+
*/
|
|
45
|
+
WarningFlags["MOTOR_TEMPERATURE_ERROR"] = "FM";
|
|
21
46
|
/**
|
|
22
47
|
* Driver Disabled.
|
|
23
48
|
* Devices with Firmware 7.10 and lower.
|
|
@@ -27,10 +52,6 @@ var WarningFlags;
|
|
|
27
52
|
* Encoder Error.
|
|
28
53
|
*/
|
|
29
54
|
WarningFlags["ENCODER_ERROR"] = "FQ";
|
|
30
|
-
/**
|
|
31
|
-
* Excessive Twist.
|
|
32
|
-
*/
|
|
33
|
-
WarningFlags["EXCESSIVE_TWIST"] = "FT";
|
|
34
55
|
/**
|
|
35
56
|
* Index Error.
|
|
36
57
|
*/
|
|
@@ -39,6 +60,10 @@ var WarningFlags;
|
|
|
39
60
|
* Analog Encoder Sync Error.
|
|
40
61
|
*/
|
|
41
62
|
WarningFlags["ANALOG_ENCODER_SYNC_ERROR"] = "FA";
|
|
63
|
+
/**
|
|
64
|
+
* Overdrive Limit Exceeded.
|
|
65
|
+
*/
|
|
66
|
+
WarningFlags["OVERDRIVE_LIMIT_EXCEEDED"] = "FR";
|
|
42
67
|
/**
|
|
43
68
|
* Stalled and Stopped.
|
|
44
69
|
*/
|
|
@@ -55,6 +80,10 @@ var WarningFlags;
|
|
|
55
80
|
* Limit Error.
|
|
56
81
|
*/
|
|
57
82
|
WarningFlags["LIMIT_ERROR"] = "FE";
|
|
83
|
+
/**
|
|
84
|
+
* Excessive Twist.
|
|
85
|
+
*/
|
|
86
|
+
WarningFlags["EXCESSIVE_TWIST"] = "FT";
|
|
58
87
|
/**
|
|
59
88
|
* Unexpected Limit Trigger.
|
|
60
89
|
*/
|
|
@@ -75,6 +104,10 @@ var WarningFlags;
|
|
|
75
104
|
* Displaced When Stationary.
|
|
76
105
|
*/
|
|
77
106
|
WarningFlags["DISPLACED_WHEN_STATIONARY"] = "WM";
|
|
107
|
+
/**
|
|
108
|
+
* Invalid Calibration Type.
|
|
109
|
+
*/
|
|
110
|
+
WarningFlags["INVALID_CALIBRATION_TYPE"] = "WP";
|
|
78
111
|
/**
|
|
79
112
|
* No Reference Position.
|
|
80
113
|
*/
|
|
@@ -83,10 +116,6 @@ var WarningFlags;
|
|
|
83
116
|
* Device Not Homed.
|
|
84
117
|
*/
|
|
85
118
|
WarningFlags["DEVICE_NOT_HOMED"] = "WH";
|
|
86
|
-
/**
|
|
87
|
-
* Invalid Calibration Type.
|
|
88
|
-
*/
|
|
89
|
-
WarningFlags["INVALID_CALIBRATION_TYPE"] = "WP";
|
|
90
119
|
/**
|
|
91
120
|
* Manual Control.
|
|
92
121
|
*/
|
|
@@ -107,38 +136,18 @@ var WarningFlags;
|
|
|
107
136
|
* Value Truncated.
|
|
108
137
|
*/
|
|
109
138
|
WarningFlags["VALUE_TRUNCATED"] = "NT";
|
|
110
|
-
/**
|
|
111
|
-
* Joystick Calibrating.
|
|
112
|
-
*/
|
|
113
|
-
WarningFlags["JOYSTICK_CALIBRATING"] = "NJ";
|
|
114
139
|
/**
|
|
115
140
|
* Setting Update Pending.
|
|
116
141
|
*/
|
|
117
142
|
WarningFlags["SETTING_UPDATE_PENDING"] = "NU";
|
|
118
143
|
/**
|
|
119
|
-
*
|
|
120
|
-
*/
|
|
121
|
-
WarningFlags["PERIPHERAL_NOT_SUPPORTED"] = "FN";
|
|
122
|
-
/**
|
|
123
|
-
* Peripheral Inactive.
|
|
124
|
-
*/
|
|
125
|
-
WarningFlags["PERIPHERAL_INACTIVE"] = "FZ";
|
|
126
|
-
/**
|
|
127
|
-
* Hardware Emergency Stop Driver Disabled.
|
|
128
|
-
*/
|
|
129
|
-
WarningFlags["HARDWARE_EMERGENCY_STOP"] = "FH";
|
|
130
|
-
/**
|
|
131
|
-
* Driver Disabled on Startup or by Command.
|
|
132
|
-
* Devices with Firmware 7.11 and above.
|
|
133
|
-
*/
|
|
134
|
-
WarningFlags["DRIVER_DISABLED_NO_FAULT"] = "FO";
|
|
135
|
-
/**
|
|
136
|
-
* Current Inrush Error.
|
|
144
|
+
* Joystick Calibrating.
|
|
137
145
|
*/
|
|
138
|
-
WarningFlags["
|
|
146
|
+
WarningFlags["JOYSTICK_CALIBRATING"] = "NJ";
|
|
139
147
|
/**
|
|
140
|
-
*
|
|
148
|
+
* Device in Firmware Update Mode.
|
|
149
|
+
* Firmware 6.xx only.
|
|
141
150
|
*/
|
|
142
|
-
WarningFlags["
|
|
151
|
+
WarningFlags["FIRMWARE_UPDATE_MODE"] = "NB";
|
|
143
152
|
})(WarningFlags = exports.WarningFlags || (exports.WarningFlags = {}));
|
|
144
153
|
//# sourceMappingURL=warning_flags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warning_flags.js","sourceRoot":"","sources":["../../../src/ascii/warning_flags.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD;;;;GAIG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"warning_flags.js","sourceRoot":"","sources":["../../../src/ascii/warning_flags.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,sDAAsD;;;AAEtD;;;;GAIG;AACH,IAAY,YA8KX;AA9KD,WAAY,YAAY;IACtB;;OAEG;IACH,4CAA4B,CAAA;IAE5B;;OAEG;IACH,+CAA+B,CAAA;IAE/B;;OAEG;IACH,0CAA0B,CAAA;IAE1B;;OAEG;IACH,8CAA8B,CAAA;IAE9B;;OAEG;IACH,kDAAkC,CAAA;IAElC;;;OAGG;IACH,+CAA+B,CAAA;IAE/B;;OAEG;IACH,2CAA2B,CAAA;IAE3B;;OAEG;IACH,8CAA8B,CAAA;IAE9B;;;OAGG;IACH,sCAAsB,CAAA;IAEtB;;OAEG;IACH,oCAAoB,CAAA;IAEpB;;OAEG;IACH,kCAAkB,CAAA;IAElB;;OAEG;IACH,gDAAgC,CAAA;IAEhC;;OAEG;IACH,+CAA+B,CAAA;IAE/B;;OAEG;IACH,0CAA0B,CAAA;IAE1B;;OAEG;IACH,0CAA0B,CAAA;IAE1B;;OAEG;IACH,kDAAkC,CAAA;IAElC;;OAEG;IACH,kCAAkB,CAAA;IAElB;;OAEG;IACH,sCAAsB,CAAA;IAEtB;;OAEG;IACH,+CAA+B,CAAA;IAE/B;;OAEG;IACH,2CAA2B,CAAA;IAE3B;;OAEG;IACH,kDAAkC,CAAA;IAElC;;OAEG;IACH,4CAA4B,CAAA;IAE5B;;OAEG;IACH,gDAAgC,CAAA;IAEhC;;OAEG;IACH,+CAA+B,CAAA;IAE/B;;OAEG;IACH,4CAA4B,CAAA;IAE5B;;OAEG;IACH,uCAAuB,CAAA;IAEvB;;OAEG;IACH,qCAAqB,CAAA;IAErB;;OAEG;IACH,2CAA2B,CAAA;IAE3B;;OAEG;IACH,2CAA2B,CAAA;IAE3B;;OAEG;IACH,oCAAoB,CAAA;IAEpB;;OAEG;IACH,sCAAsB,CAAA;IAEtB;;OAEG;IACH,6CAA6B,CAAA;IAE7B;;OAEG;IACH,2CAA2B,CAAA;IAE3B;;;OAGG;IACH,2CAA2B,CAAA;AAE7B,CAAC,EA9KW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QA8KvB","sourcesContent":["// ==== THIS FILE IS GENERATED FROM A TEMPLATE ==== //\n// ============= DO NOT EDIT DIRECTLY ============= //\n\n/**\n * Warning flag constants that indicate whether any device fault or warning is active.\n * For more information please refer to the\n * [ASCII Protocol Manual](https://www.zaber.com/protocol-manual#topic_message_format_warning_flags).\n */\nexport enum WarningFlags {\n /**\n * Critical System Error.\n */\n CRITICAL_SYSTEM_ERROR = 'FF',\n\n /**\n * Peripheral Not Supported.\n */\n PERIPHERAL_NOT_SUPPORTED = 'FN',\n\n /**\n * Peripheral Inactive.\n */\n PERIPHERAL_INACTIVE = 'FZ',\n\n /**\n * Hardware Emergency Stop Driver Disabled.\n */\n HARDWARE_EMERGENCY_STOP = 'FH',\n\n /**\n * Overvoltage or Undervoltage Driver Disabled.\n */\n OVERVOLTAGE_OR_UNDERVOLTAGE = 'FV',\n\n /**\n * Driver Disabled on Startup or by Command.\n * Devices with Firmware 7.11 and above.\n */\n DRIVER_DISABLED_NO_FAULT = 'FO',\n\n /**\n * Current Inrush Error.\n */\n CURRENT_INRUSH_ERROR = 'FC',\n\n /**\n * Motor Temperature Error.\n */\n MOTOR_TEMPERATURE_ERROR = 'FM',\n\n /**\n * Driver Disabled.\n * Devices with Firmware 7.10 and lower.\n */\n DRIVER_DISABLED = 'FD',\n\n /**\n * Encoder Error.\n */\n ENCODER_ERROR = 'FQ',\n\n /**\n * Index Error.\n */\n INDEX_ERROR = 'FI',\n\n /**\n * Analog Encoder Sync Error.\n */\n ANALOG_ENCODER_SYNC_ERROR = 'FA',\n\n /**\n * Overdrive Limit Exceeded.\n */\n OVERDRIVE_LIMIT_EXCEEDED = 'FR',\n\n /**\n * Stalled and Stopped.\n */\n STALLED_AND_STOPPED = 'FS',\n\n /**\n * Stream Bounds Error.\n */\n STREAM_BOUNDS_ERROR = 'FB',\n\n /**\n * Interpolated Path Deviation.\n */\n INTERPOLATED_PATH_DEVIATION = 'FP',\n\n /**\n * Limit Error.\n */\n LIMIT_ERROR = 'FE',\n\n /**\n * Excessive Twist.\n */\n EXCESSIVE_TWIST = 'FT',\n\n /**\n * Unexpected Limit Trigger.\n */\n UNEXPECTED_LIMIT_TRIGGER = 'WL',\n\n /**\n * Voltage Out of Range.\n */\n VOLTAGE_OUT_OF_RANGE = 'WV',\n\n /**\n * Controller Temperature High.\n */\n CONTROLLER_TEMPERATURE_HIGH = 'WT',\n\n /**\n * Stalled with Recovery.\n */\n STALLED_WITH_RECOVERY = 'WS',\n\n /**\n * Displaced When Stationary.\n */\n DISPLACED_WHEN_STATIONARY = 'WM',\n\n /**\n * Invalid Calibration Type.\n */\n INVALID_CALIBRATION_TYPE = 'WP',\n\n /**\n * No Reference Position.\n */\n NO_REFERENCE_POSITION = 'WR',\n\n /**\n * Device Not Homed.\n */\n DEVICE_NOT_HOMED = 'WH',\n\n /**\n * Manual Control.\n */\n MANUAL_CONTROL = 'NC',\n\n /**\n * Movement Interrupted.\n */\n MOVEMENT_INTERRUPTED = 'NI',\n\n /**\n * Stream Discontinuity.\n */\n STREAM_DISCONTINUITY = 'ND',\n\n /**\n * Value Rounded.\n */\n VALUE_ROUNDED = 'NR',\n\n /**\n * Value Truncated.\n */\n VALUE_TRUNCATED = 'NT',\n\n /**\n * Setting Update Pending.\n */\n SETTING_UPDATE_PENDING = 'NU',\n\n /**\n * Joystick Calibrating.\n */\n JOYSTICK_CALIBRATING = 'NJ',\n\n /**\n * Device in Firmware Update Mode.\n * Firmware 6.xx only.\n */\n FIRMWARE_UPDATE_MODE = 'NB',\n\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zaber/motion",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.6",
|
|
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",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"host": "https://zaber-motion-node-pre-gyp.s3-us-west-2.amazonaws.com",
|
|
60
60
|
"package_name": "{napi_build_version}-{platform}-{arch}.tar.gz",
|
|
61
61
|
"napi_versions": [
|
|
62
|
-
|
|
62
|
+
6
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
"nyc": {
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@mapbox/node-pre-gyp": "^1.0.5",
|
|
84
|
-
"google-protobuf": "3.
|
|
85
|
-
"node-addon-api": "^4.
|
|
84
|
+
"google-protobuf": "3.21.0",
|
|
85
|
+
"node-addon-api": "^4.3.0",
|
|
86
86
|
"pkg-up": "^3.1.0",
|
|
87
87
|
"rxjs": "^7.2.0"
|
|
88
88
|
},
|