@duet3d/objectmodel 3.7.0-beta.14 → 3.7.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/documentation.json +0 -2
- package/dist/sensors/Probe.d.ts +7 -3
- package/dist/sensors/Probe.js +11 -3
- package/package.json +1 -1
package/dist/documentation.json
CHANGED
|
@@ -972,8 +972,6 @@
|
|
|
972
972
|
"sensors.probes[].disablesHeaters": "Whether probing disables the heater(s)",
|
|
973
973
|
"sensors.probes[].diveHeight": "Dive height of the probe (in mm)",
|
|
974
974
|
"sensors.probes[].diveHeights": "Dive heights of the probe (in mm). The first element is the dive height for the first tap; the second element is used for subsequent taps when multi-tapping",
|
|
975
|
-
"sensors.probes[].force": "Force measured by the probe (in g), or null if it is not a force-sensing probe",
|
|
976
|
-
"sensors.probes[].gramsPerCount": "Scale of a force-sensing probe (in g per count), or null if it has not been calibrated",
|
|
977
975
|
"sensors.probes[].isCalibrated": "Indicates if the scanning probe is calibrated",
|
|
978
976
|
"sensors.probes[].lastStopHeight": "Height of the probe where it stopped last time (in mm)",
|
|
979
977
|
"sensors.probes[].maxProbeCount": "Maximum number of times to probe after a bad reading was determined",
|
package/dist/sensors/Probe.d.ts
CHANGED
|
@@ -14,6 +14,12 @@ export declare enum ProbeType {
|
|
|
14
14
|
scanningAnalog = 11,
|
|
15
15
|
loadCell = 12
|
|
16
16
|
}
|
|
17
|
+
export declare class ProbeLoadCell extends ModelObject {
|
|
18
|
+
force: number;
|
|
19
|
+
gramsPerCount: number;
|
|
20
|
+
preload: number;
|
|
21
|
+
preloadWindow: Array<number>;
|
|
22
|
+
}
|
|
17
23
|
export declare class ProbeTouchMode extends ModelObject {
|
|
18
24
|
active: boolean;
|
|
19
25
|
speed: number;
|
|
@@ -30,14 +36,12 @@ export declare class Probe extends ModelObject {
|
|
|
30
36
|
*/
|
|
31
37
|
diveHeight: number;
|
|
32
38
|
diveHeights: Array<number>;
|
|
33
|
-
force: number | null;
|
|
34
|
-
gramsPerCount: number | null;
|
|
35
39
|
isCalibrated: boolean | null;
|
|
36
40
|
lastStopHeight: number;
|
|
41
|
+
loadCell: ProbeLoadCell | null;
|
|
37
42
|
maxProbeCount: number;
|
|
38
43
|
measuredHeight: number | null;
|
|
39
44
|
offsets: Array<number>;
|
|
40
|
-
preload: number | null;
|
|
41
45
|
recoveryTime: number;
|
|
42
46
|
scanCoefficients: Array<number> | null;
|
|
43
47
|
speeds: Array<number>;
|
package/dist/sensors/Probe.js
CHANGED
|
@@ -15,6 +15,15 @@ export var ProbeType;
|
|
|
15
15
|
ProbeType[ProbeType["scanningAnalog"] = 11] = "scanningAnalog";
|
|
16
16
|
ProbeType[ProbeType["loadCell"] = 12] = "loadCell";
|
|
17
17
|
})(ProbeType || (ProbeType = {}));
|
|
18
|
+
export class ProbeLoadCell extends ModelObject {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.force = 0;
|
|
22
|
+
this.gramsPerCount = 0;
|
|
23
|
+
this.preload = 0;
|
|
24
|
+
this.preloadWindow = [0, 0];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
18
27
|
export class ProbeTouchMode extends ModelObject {
|
|
19
28
|
constructor() {
|
|
20
29
|
super(...arguments);
|
|
@@ -35,14 +44,12 @@ export class Probe extends ModelObject {
|
|
|
35
44
|
*/
|
|
36
45
|
this.diveHeight = 5;
|
|
37
46
|
this.diveHeights = [0, 0];
|
|
38
|
-
this.force = null;
|
|
39
|
-
this.gramsPerCount = null;
|
|
40
47
|
this.isCalibrated = null;
|
|
41
48
|
this.lastStopHeight = 0;
|
|
49
|
+
this.loadCell = null;
|
|
42
50
|
this.maxProbeCount = 1;
|
|
43
51
|
this.measuredHeight = null;
|
|
44
52
|
this.offsets = [0, 0];
|
|
45
|
-
this.preload = null;
|
|
46
53
|
this.recoveryTime = 0;
|
|
47
54
|
this.scanCoefficients = null;
|
|
48
55
|
this.speeds = [2, 2];
|
|
@@ -54,6 +61,7 @@ export class Probe extends ModelObject {
|
|
|
54
61
|
this.triggerHeight = 0.7;
|
|
55
62
|
this.type = ProbeType.none;
|
|
56
63
|
this.value = [];
|
|
64
|
+
ModelObject.wrapModelProperty(this, "loadCell", ProbeLoadCell);
|
|
57
65
|
ModelObject.wrapModelProperty(this, "touchMode", ProbeTouchMode);
|
|
58
66
|
}
|
|
59
67
|
}
|