@duet3d/objectmodel 3.7.0-beta.11 → 3.7.0-beta.13
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.
|
@@ -7,6 +7,11 @@ export type ItemFactory<T> = (index: number) => T;
|
|
|
7
7
|
* Class for storing model object items in an array
|
|
8
8
|
*/
|
|
9
9
|
export declare class ModelCollection<T extends IModelObject | null> extends Array<T> implements IModelObject {
|
|
10
|
+
/**
|
|
11
|
+
* Derived arrays from filter, map, slice etc. would otherwise be constructed as
|
|
12
|
+
* new ModelCollection(length), leaving $itemConstructor set to a number
|
|
13
|
+
*/
|
|
14
|
+
static get [Symbol.species](): ArrayConstructor;
|
|
10
15
|
/**
|
|
11
16
|
* Constructor of this class
|
|
12
17
|
* @param itemConstructor Item constructor type that items must derive from
|
package/dist/ModelCollection.js
CHANGED
|
@@ -14,6 +14,13 @@ function createItem(collection, index) {
|
|
|
14
14
|
* Class for storing model object items in an array
|
|
15
15
|
*/
|
|
16
16
|
export class ModelCollection extends Array {
|
|
17
|
+
/**
|
|
18
|
+
* Derived arrays from filter, map, slice etc. would otherwise be constructed as
|
|
19
|
+
* new ModelCollection(length), leaving $itemConstructor set to a number
|
|
20
|
+
*/
|
|
21
|
+
static get [Symbol.species]() {
|
|
22
|
+
return Array;
|
|
23
|
+
}
|
|
17
24
|
/**
|
|
18
25
|
* Constructor of this class
|
|
19
26
|
* @param itemConstructor Item constructor type that items must derive from
|
package/dist/documentation.json
CHANGED
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
"boards[].accelerometer.points": "Number of collected data points in the last run or 0 if it failed",
|
|
12
12
|
"boards[].accelerometer.runs": "Number of completed sampling runs",
|
|
13
13
|
"boards[].canAddress": "CAN address of this board or null if not applicable",
|
|
14
|
+
"boards[].closedLoop": "Closed loop data of this board or null if unknown",
|
|
14
15
|
"boards[].closedLoop.points": "Number of collected data points in the last run or 0 if it failed",
|
|
15
16
|
"boards[].closedLoop.runs": "Number of completed sampling runs",
|
|
17
|
+
"boards[].directDisplay": "Details about a connected display or null if none is connected",
|
|
16
18
|
"boards[].directDisplay.encoder": "Encoder of this screen or null if none",
|
|
17
19
|
"boards[].directDisplay.encoder.pulsesPerClick": "Number of pulses per click of the rotary encoder",
|
|
18
20
|
"boards[].directDisplay.screen": "Screen information",
|
|
@@ -42,8 +44,13 @@
|
|
|
42
44
|
},
|
|
43
45
|
"boards[].firmwareDate": "Date of the firmware build",
|
|
44
46
|
"boards[].firmwareFileName": "Filename of the firmware binary",
|
|
47
|
+
"boards[].firmwareName": "Name of the firmware build",
|
|
45
48
|
"boards[].firmwareVersion": "Version of the firmware build",
|
|
46
49
|
"boards[].freeRam": "Amount of free RAM on this board (in bytes or null if unknown)",
|
|
50
|
+
"boards[].iapFileNameSBC": "Filename of the IAP binary that is used for updates from the SBC or null if unsupported",
|
|
51
|
+
"boards[].iapFileNameSD": "Filename of the IAP binary that is used for updates from the SD card or null if unsupported",
|
|
52
|
+
"boards[].inductiveSensor": "Information about an inductive sensor or null if not present",
|
|
53
|
+
"boards[].maxHeaters": "Maximum number of heaters this board can control",
|
|
47
54
|
"boards[].maxMotors": "Maximum number of motors this board can drive",
|
|
48
55
|
"boards[].mcuTemp": "Minimum, maximum, and current temperatures of the MCU or null if unknown",
|
|
49
56
|
"boards[].mcuTemp.current": "Current value",
|
|
@@ -52,6 +59,7 @@
|
|
|
52
59
|
"boards[].name": "Full name of the board",
|
|
53
60
|
"boards[].shortName": "Short name of this board",
|
|
54
61
|
"boards[].state": {
|
|
62
|
+
"summary": "State of this board",
|
|
55
63
|
"values": {
|
|
56
64
|
"unknown": "Unknown state",
|
|
57
65
|
"flashing": "Flashing new firmware",
|
|
@@ -61,6 +69,8 @@
|
|
|
61
69
|
"timedOut": "Board timed out"
|
|
62
70
|
}
|
|
63
71
|
},
|
|
72
|
+
"boards[].supportsDirectDisplay": "Indicates if this board supports external displays",
|
|
73
|
+
"boards[].timeout": "Connection timeout of this board (in s)",
|
|
64
74
|
"boards[].uniqueId": "Unique identifier of the board or null if unknown",
|
|
65
75
|
"boards[].v12": "Minimum, maximum, and current voltages on the 12V rail or null if unknown",
|
|
66
76
|
"boards[].v12.current": "Current value",
|
|
@@ -70,6 +80,7 @@
|
|
|
70
80
|
"boards[].vIn.current": "Current value",
|
|
71
81
|
"boards[].vIn.max": "Maximum value",
|
|
72
82
|
"boards[].vIn.min": "Minimum value",
|
|
83
|
+
"boards[].wifiFirmwareFileName": "Filename of the on-board WiFi chip or null if not present",
|
|
73
84
|
"directories": {
|
|
74
85
|
"summary": "Information about the individual directories",
|
|
75
86
|
"remarks": "This may not be available in RepRapFirmware if no mass storages are available"
|
|
@@ -961,6 +972,8 @@
|
|
|
961
972
|
"sensors.probes[].disablesHeaters": "Whether probing disables the heater(s)",
|
|
962
973
|
"sensors.probes[].diveHeight": "Dive height of the probe (in mm)",
|
|
963
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",
|
|
964
977
|
"sensors.probes[].isCalibrated": "Indicates if the scanning probe is calibrated",
|
|
965
978
|
"sensors.probes[].lastStopHeight": "Height of the probe where it stopped last time (in mm)",
|
|
966
979
|
"sensors.probes[].maxProbeCount": "Maximum number of times to probe after a bad reading was determined",
|
|
@@ -993,7 +1006,8 @@
|
|
|
993
1006
|
"8": "A switch that is triggered when the probe is activated (unfiltered)",
|
|
994
1007
|
"9": "A BLTouch probe",
|
|
995
1008
|
"10": "Z motor stall detection",
|
|
996
|
-
"11": "Analog scanning probe"
|
|
1009
|
+
"11": "Analog scanning probe",
|
|
1010
|
+
"12": "Load cell probe measuring the contact force"
|
|
997
1011
|
}
|
|
998
1012
|
},
|
|
999
1013
|
"sensors.probes[].value": "Current analog values of the probe",
|
package/dist/enums.json
CHANGED
package/dist/sensors/Probe.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ export declare enum ProbeType {
|
|
|
11
11
|
unfilteredDigital = 8,
|
|
12
12
|
blTouch = 9,
|
|
13
13
|
zMotorStall = 10,
|
|
14
|
-
scanningAnalog = 11
|
|
14
|
+
scanningAnalog = 11,
|
|
15
|
+
loadCell = 12
|
|
15
16
|
}
|
|
16
17
|
export declare class ProbeTouchMode extends ModelObject {
|
|
17
18
|
active: boolean;
|
|
@@ -29,6 +30,8 @@ export declare class Probe extends ModelObject {
|
|
|
29
30
|
*/
|
|
30
31
|
diveHeight: number;
|
|
31
32
|
diveHeights: Array<number>;
|
|
33
|
+
force: number | null;
|
|
34
|
+
gramsPerCount: number | null;
|
|
32
35
|
isCalibrated: boolean | null;
|
|
33
36
|
lastStopHeight: number;
|
|
34
37
|
maxProbeCount: number;
|
package/dist/sensors/Probe.js
CHANGED
|
@@ -13,6 +13,7 @@ export var ProbeType;
|
|
|
13
13
|
ProbeType[ProbeType["blTouch"] = 9] = "blTouch";
|
|
14
14
|
ProbeType[ProbeType["zMotorStall"] = 10] = "zMotorStall";
|
|
15
15
|
ProbeType[ProbeType["scanningAnalog"] = 11] = "scanningAnalog";
|
|
16
|
+
ProbeType[ProbeType["loadCell"] = 12] = "loadCell";
|
|
16
17
|
})(ProbeType || (ProbeType = {}));
|
|
17
18
|
export class ProbeTouchMode extends ModelObject {
|
|
18
19
|
constructor() {
|
|
@@ -34,6 +35,8 @@ export class Probe extends ModelObject {
|
|
|
34
35
|
*/
|
|
35
36
|
this.diveHeight = 5;
|
|
36
37
|
this.diveHeights = [0, 0];
|
|
38
|
+
this.force = null;
|
|
39
|
+
this.gramsPerCount = null;
|
|
37
40
|
this.isCalibrated = null;
|
|
38
41
|
this.lastStopHeight = 0;
|
|
39
42
|
this.maxProbeCount = 1;
|