@duet3d/objectmodel 3.5.0-beta.58 → 3.5.0-rc.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.
- package/dist/network/NetworkInterface.d.ts +2 -1
- package/dist/network/NetworkInterface.js +1 -0
- package/dist/sensors/AnalogSensor.d.ts +5 -0
- package/dist/sensors/AnalogSensor.js +5 -0
- package/dist/sensors/FilamentMonitors/FilamentMonitorBase.d.ts +9 -0
- package/dist/sensors/FilamentMonitors/FilamentMonitorBase.js +11 -1
- package/dist/sensors/Probe.d.ts +5 -0
- package/dist/sensors/Probe.js +5 -0
- package/package.json +1 -1
|
@@ -17,7 +17,8 @@ export declare enum NetworkInterfaceState {
|
|
|
17
17
|
establishingLink = "establishingLink",
|
|
18
18
|
obtainingIP = "obtainingIP",
|
|
19
19
|
connected = "connected",
|
|
20
|
-
active = "active"
|
|
20
|
+
active = "active",
|
|
21
|
+
idle = "idle"
|
|
21
22
|
}
|
|
22
23
|
export declare enum NetworkInterfaceType {
|
|
23
24
|
lan = "lan",
|
|
@@ -23,6 +23,7 @@ var NetworkInterfaceState;
|
|
|
23
23
|
NetworkInterfaceState["obtainingIP"] = "obtainingIP";
|
|
24
24
|
NetworkInterfaceState["connected"] = "connected";
|
|
25
25
|
NetworkInterfaceState["active"] = "active";
|
|
26
|
+
NetworkInterfaceState["idle"] = "idle";
|
|
26
27
|
})(NetworkInterfaceState || (exports.NetworkInterfaceState = NetworkInterfaceState = {}));
|
|
27
28
|
var NetworkInterfaceType;
|
|
28
29
|
(function (NetworkInterfaceType) {
|
|
@@ -40,8 +40,13 @@ export declare enum TemperatureError {
|
|
|
40
40
|
unknownError = "unknownError"
|
|
41
41
|
}
|
|
42
42
|
export declare class AnalogSensor extends ModelObject {
|
|
43
|
+
beta: number | null;
|
|
44
|
+
c: number | null;
|
|
43
45
|
lastReading: number | null;
|
|
44
46
|
name: string | null;
|
|
47
|
+
port: string | null;
|
|
48
|
+
r25: number | null;
|
|
49
|
+
rRef: number | null;
|
|
45
50
|
state: TemperatureError;
|
|
46
51
|
type: AnalogSensorType;
|
|
47
52
|
}
|
|
@@ -47,8 +47,13 @@ var TemperatureError;
|
|
|
47
47
|
class AnalogSensor extends ModelObject_1.default {
|
|
48
48
|
constructor() {
|
|
49
49
|
super(...arguments);
|
|
50
|
+
this.beta = null;
|
|
51
|
+
this.c = null;
|
|
50
52
|
this.lastReading = null;
|
|
51
53
|
this.name = null;
|
|
54
|
+
this.port = null;
|
|
55
|
+
this.r25 = null;
|
|
56
|
+
this.rRef = null;
|
|
52
57
|
this.state = TemperatureError.ok;
|
|
53
58
|
this.type = AnalogSensorType.unknown;
|
|
54
59
|
}
|
|
@@ -15,8 +15,17 @@ export declare enum FilamentMonitorType {
|
|
|
15
15
|
rotatingMagnet = "rotatingMagnet",
|
|
16
16
|
unknown = "unknown"
|
|
17
17
|
}
|
|
18
|
+
export declare enum FilamentMonitorEnableMode {
|
|
19
|
+
disabled = 0,
|
|
20
|
+
enabled = 1,
|
|
21
|
+
alwaysEnabled = 2
|
|
22
|
+
}
|
|
18
23
|
export declare class FilamentMonitorBase extends ModelObject {
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated use enableMode instead
|
|
26
|
+
*/
|
|
19
27
|
enabled: boolean;
|
|
28
|
+
enableMode: FilamentMonitorEnableMode;
|
|
20
29
|
status: FilamentMonitorStatus;
|
|
21
30
|
type: FilamentMonitorType;
|
|
22
31
|
constructor(type?: FilamentMonitorType);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FilamentMonitorBase = exports.FilamentMonitorType = exports.FilamentMonitorStatus = void 0;
|
|
3
|
+
exports.FilamentMonitorBase = exports.FilamentMonitorEnableMode = exports.FilamentMonitorType = exports.FilamentMonitorStatus = void 0;
|
|
4
4
|
const ModelObject_1 = require("../../ModelObject");
|
|
5
5
|
var FilamentMonitorStatus;
|
|
6
6
|
(function (FilamentMonitorStatus) {
|
|
@@ -20,10 +20,20 @@ var FilamentMonitorType;
|
|
|
20
20
|
FilamentMonitorType["rotatingMagnet"] = "rotatingMagnet";
|
|
21
21
|
FilamentMonitorType["unknown"] = "unknown";
|
|
22
22
|
})(FilamentMonitorType || (exports.FilamentMonitorType = FilamentMonitorType = {}));
|
|
23
|
+
var FilamentMonitorEnableMode;
|
|
24
|
+
(function (FilamentMonitorEnableMode) {
|
|
25
|
+
FilamentMonitorEnableMode[FilamentMonitorEnableMode["disabled"] = 0] = "disabled";
|
|
26
|
+
FilamentMonitorEnableMode[FilamentMonitorEnableMode["enabled"] = 1] = "enabled";
|
|
27
|
+
FilamentMonitorEnableMode[FilamentMonitorEnableMode["alwaysEnabled"] = 2] = "alwaysEnabled";
|
|
28
|
+
})(FilamentMonitorEnableMode || (exports.FilamentMonitorEnableMode = FilamentMonitorEnableMode = {}));
|
|
23
29
|
class FilamentMonitorBase extends ModelObject_1.default {
|
|
24
30
|
constructor(type = FilamentMonitorType.unknown) {
|
|
25
31
|
super();
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated use enableMode instead
|
|
34
|
+
*/
|
|
26
35
|
this.enabled = false;
|
|
36
|
+
this.enableMode = FilamentMonitorEnableMode.disabled;
|
|
27
37
|
this.status = FilamentMonitorStatus.noDataReceived;
|
|
28
38
|
this.type = type;
|
|
29
39
|
}
|
package/dist/sensors/Probe.d.ts
CHANGED
|
@@ -18,12 +18,17 @@ export declare class Probe extends ModelObject {
|
|
|
18
18
|
calibrationTemperature: number;
|
|
19
19
|
deployedByUser: boolean;
|
|
20
20
|
disablesHeaters: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated use diveHeights[0] instead
|
|
23
|
+
*/
|
|
21
24
|
diveHeight: number;
|
|
25
|
+
diveHeights: Array<number>;
|
|
22
26
|
isCalibrated: boolean | null;
|
|
23
27
|
lastStopHeight: number;
|
|
24
28
|
maxProbeCount: number;
|
|
25
29
|
offsets: Array<number>;
|
|
26
30
|
recoveryTime: number;
|
|
31
|
+
scanCoefficients: Array<number> | null;
|
|
27
32
|
speeds: Array<number>;
|
|
28
33
|
temperatureCoefficients: Array<number>;
|
|
29
34
|
threshold: number;
|
package/dist/sensors/Probe.js
CHANGED
|
@@ -24,12 +24,17 @@ class Probe extends ModelObject_1.default {
|
|
|
24
24
|
this.calibrationTemperature = 0;
|
|
25
25
|
this.deployedByUser = false;
|
|
26
26
|
this.disablesHeaters = false;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated use diveHeights[0] instead
|
|
29
|
+
*/
|
|
27
30
|
this.diveHeight = 5;
|
|
31
|
+
this.diveHeights = [0, 0];
|
|
28
32
|
this.isCalibrated = null;
|
|
29
33
|
this.lastStopHeight = 0;
|
|
30
34
|
this.maxProbeCount = 1;
|
|
31
35
|
this.offsets = [0, 0];
|
|
32
36
|
this.recoveryTime = 0;
|
|
37
|
+
this.scanCoefficients = null;
|
|
33
38
|
this.speeds = [2, 2];
|
|
34
39
|
this.temperatureCoefficients = [0, 0];
|
|
35
40
|
this.threshold = 500;
|