@duet3d/objectmodel 3.5.0-beta.29 → 3.5.0-beta.31
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/move/Axis.d.ts +1 -0
- package/dist/move/Axis.js +1 -0
- package/dist/move/KeepoutZone.d.ts +10 -0
- package/dist/move/KeepoutZone.js +21 -0
- package/dist/move/index.d.ts +7 -3
- package/dist/move/index.js +7 -3
- package/dist/sensors/AnalogSensor.d.ts +3 -0
- package/dist/sensors/AnalogSensor.js +3 -0
- package/dist/sensors/Probe.js +1 -1
- package/package.json +1 -1
package/dist/move/Axis.d.ts
CHANGED
package/dist/move/Axis.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ModelCollection } from "../ModelCollection";
|
|
2
|
+
import { ModelObject } from "../ModelObject";
|
|
3
|
+
export declare class KeepoutZoneCoordinates extends ModelObject {
|
|
4
|
+
max: number;
|
|
5
|
+
min: number;
|
|
6
|
+
}
|
|
7
|
+
export default class KeepoutZone extends ModelObject {
|
|
8
|
+
active: boolean;
|
|
9
|
+
coords: ModelCollection<KeepoutZoneCoordinates | null>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KeepoutZoneCoordinates = void 0;
|
|
4
|
+
const ModelCollection_1 = require("../ModelCollection");
|
|
5
|
+
const ModelObject_1 = require("../ModelObject");
|
|
6
|
+
class KeepoutZoneCoordinates extends ModelObject_1.ModelObject {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.max = 0;
|
|
10
|
+
this.min = 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.KeepoutZoneCoordinates = KeepoutZoneCoordinates;
|
|
14
|
+
class KeepoutZone extends ModelObject_1.ModelObject {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.active = true;
|
|
18
|
+
this.coords = new ModelCollection_1.ModelCollection(KeepoutZoneCoordinates);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = KeepoutZone;
|
package/dist/move/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import ModelObject from "../ModelObject";
|
|
2
2
|
import ModelCollection from "../ModelCollection";
|
|
3
|
+
import Kinematics from "./kinematics";
|
|
3
4
|
import Axis from "./Axis";
|
|
4
|
-
import MoveCalibration from "./MoveCalibration";
|
|
5
|
-
import MoveCompensation from "./MoveCompensation";
|
|
6
5
|
import Extruder from "./Extruder";
|
|
7
6
|
import InputShaping from "./InputShaping";
|
|
8
|
-
import
|
|
7
|
+
import KeepoutZone from "./KeepoutZone";
|
|
8
|
+
import MoveCalibration from "./MoveCalibration";
|
|
9
|
+
import MoveCompensation from "./MoveCompensation";
|
|
9
10
|
export declare class CurrentMove extends ModelObject {
|
|
10
11
|
acceleration: number;
|
|
11
12
|
deceleration: number;
|
|
@@ -28,11 +29,13 @@ export declare class MoveRotation extends ModelObject {
|
|
|
28
29
|
}
|
|
29
30
|
export declare class Move extends ModelObject {
|
|
30
31
|
readonly axes: ModelCollection<Axis>;
|
|
32
|
+
backlashFactor: number;
|
|
31
33
|
readonly calibration: MoveCalibration;
|
|
32
34
|
readonly compensation: MoveCompensation;
|
|
33
35
|
readonly currentMove: CurrentMove;
|
|
34
36
|
readonly extruders: ModelCollection<Extruder>;
|
|
35
37
|
readonly idle: MotorsIdleControl;
|
|
38
|
+
readonly keepout: ModelCollection<KeepoutZone | null>;
|
|
36
39
|
kinematics: Kinematics;
|
|
37
40
|
limitAxes: boolean;
|
|
38
41
|
noMovesBeforeHoming: boolean;
|
|
@@ -51,6 +54,7 @@ export * from "./Axis";
|
|
|
51
54
|
export * from "./DriverId";
|
|
52
55
|
export * from "./Extruder";
|
|
53
56
|
export * from "./InputShaping";
|
|
57
|
+
export * from "./KeepoutZone";
|
|
54
58
|
export * from "./Microstepping";
|
|
55
59
|
export * from "./MoveCalibration";
|
|
56
60
|
export * from "./MoveCompensation";
|
package/dist/move/index.js
CHANGED
|
@@ -17,12 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.Move = exports.MoveRotation = exports.MoveQueueItem = exports.MotorsIdleControl = exports.CurrentMove = void 0;
|
|
18
18
|
const ModelObject_1 = require("../ModelObject");
|
|
19
19
|
const ModelCollection_1 = require("../ModelCollection");
|
|
20
|
+
const kinematics_1 = require("./kinematics");
|
|
20
21
|
const Axis_1 = require("./Axis");
|
|
21
|
-
const MoveCalibration_1 = require("./MoveCalibration");
|
|
22
|
-
const MoveCompensation_1 = require("./MoveCompensation");
|
|
23
22
|
const Extruder_1 = require("./Extruder");
|
|
24
23
|
const InputShaping_1 = require("./InputShaping");
|
|
25
|
-
const
|
|
24
|
+
const KeepoutZone_1 = require("./KeepoutZone");
|
|
25
|
+
const MoveCalibration_1 = require("./MoveCalibration");
|
|
26
|
+
const MoveCompensation_1 = require("./MoveCompensation");
|
|
26
27
|
class CurrentMove extends ModelObject_1.default {
|
|
27
28
|
constructor() {
|
|
28
29
|
super(...arguments);
|
|
@@ -63,11 +64,13 @@ class Move extends ModelObject_1.default {
|
|
|
63
64
|
constructor() {
|
|
64
65
|
super(...arguments);
|
|
65
66
|
this.axes = new ModelCollection_1.default(Axis_1.default);
|
|
67
|
+
this.backlashFactor = 10;
|
|
66
68
|
this.calibration = new MoveCalibration_1.default();
|
|
67
69
|
this.compensation = new MoveCompensation_1.default();
|
|
68
70
|
this.currentMove = new CurrentMove();
|
|
69
71
|
this.extruders = new ModelCollection_1.default(Extruder_1.default);
|
|
70
72
|
this.idle = new MotorsIdleControl();
|
|
73
|
+
this.keepout = new ModelCollection_1.default(KeepoutZone_1.default);
|
|
71
74
|
this.kinematics = new kinematics_1.default();
|
|
72
75
|
this.limitAxes = true;
|
|
73
76
|
this.noMovesBeforeHoming = true;
|
|
@@ -88,6 +91,7 @@ __exportStar(require("./Axis"), exports);
|
|
|
88
91
|
__exportStar(require("./DriverId"), exports);
|
|
89
92
|
__exportStar(require("./Extruder"), exports);
|
|
90
93
|
__exportStar(require("./InputShaping"), exports);
|
|
94
|
+
__exportStar(require("./KeepoutZone"), exports);
|
|
91
95
|
__exportStar(require("./Microstepping"), exports);
|
|
92
96
|
__exportStar(require("./MoveCalibration"), exports);
|
|
93
97
|
__exportStar(require("./MoveCompensation"), exports);
|
|
@@ -9,6 +9,9 @@ export declare enum AnalogSensorType {
|
|
|
9
9
|
dht21 = "dht21",
|
|
10
10
|
dht22 = "dht22",
|
|
11
11
|
dhtHumidity = "dhthumidity",
|
|
12
|
+
bme280 = "bme280",
|
|
13
|
+
bme280pressure = "bme280-pressure",
|
|
14
|
+
bme280humidity = "bme280-humidity",
|
|
12
15
|
currentLoop = "currentloooppyro",
|
|
13
16
|
mcuTemp = "mcutemp",
|
|
14
17
|
drivers = "drivers",
|
|
@@ -13,6 +13,9 @@ var AnalogSensorType;
|
|
|
13
13
|
AnalogSensorType["dht21"] = "dht21";
|
|
14
14
|
AnalogSensorType["dht22"] = "dht22";
|
|
15
15
|
AnalogSensorType["dhtHumidity"] = "dhthumidity";
|
|
16
|
+
AnalogSensorType["bme280"] = "bme280";
|
|
17
|
+
AnalogSensorType["bme280pressure"] = "bme280-pressure";
|
|
18
|
+
AnalogSensorType["bme280humidity"] = "bme280-humidity";
|
|
16
19
|
AnalogSensorType["currentLoop"] = "currentloooppyro";
|
|
17
20
|
AnalogSensorType["mcuTemp"] = "mcutemp";
|
|
18
21
|
AnalogSensorType["drivers"] = "drivers";
|
package/dist/sensors/Probe.js
CHANGED
|
@@ -24,7 +24,7 @@ class Probe extends ModelObject_1.default {
|
|
|
24
24
|
this.disablesHeaters = false;
|
|
25
25
|
this.diveHeight = 0;
|
|
26
26
|
this.lastStopHeight = 0;
|
|
27
|
-
this.maxProbeCount =
|
|
27
|
+
this.maxProbeCount = 1;
|
|
28
28
|
this.offsets = [0, 0];
|
|
29
29
|
this.recoveryTime = 0;
|
|
30
30
|
this.speeds = [2, 2];
|