@duet3d/objectmodel 3.7.0-alpha.3 → 3.7.0-alpha.4

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.
@@ -1,6 +1,5 @@
1
1
  import ModelObject from "../ModelObject";
2
2
  export declare class FanThermostaticControl extends ModelObject {
3
- heaters: Array<number>;
4
3
  highTemperature: number | null;
5
4
  lowTemperature: number | null;
6
5
  sensors: Array<number>;
@@ -5,7 +5,6 @@ const ModelObject_1 = require("../ModelObject");
5
5
  class FanThermostaticControl extends ModelObject_1.default {
6
6
  constructor() {
7
7
  super(...arguments);
8
- this.heaters = []; // *** deprecated as of v3.5, use sensors instead
9
8
  this.highTemperature = null;
10
9
  this.lowTemperature = null;
11
10
  this.sensors = [];
@@ -0,0 +1,20 @@
1
+ import ModelObject from "../ModelObject";
2
+ import ModelCollection from "../ModelCollection";
3
+ import RestorePoint from "../state/RestorePoint";
4
+ import { CurrentMove, MoveRotation } from ".";
5
+ export declare class MotionSystem extends ModelObject {
6
+ readonly currentMove: CurrentMove;
7
+ currentObject: number | null;
8
+ currentTool: number;
9
+ nextTool: number;
10
+ previousTool: number;
11
+ printingAcceleration: number;
12
+ readonly restorePoints: ModelCollection<RestorePoint>;
13
+ readonly rotation: MoveRotation;
14
+ speedFactor: number;
15
+ travelAcceleration: number;
16
+ userPosition: Array<number>;
17
+ virtualEPos: number;
18
+ workplaceNumber: number;
19
+ }
20
+ export default MotionSystem;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MotionSystem = void 0;
4
+ const ModelObject_1 = require("../ModelObject");
5
+ const ModelCollection_1 = require("../ModelCollection");
6
+ const RestorePoint_1 = require("../state/RestorePoint");
7
+ const _1 = require(".");
8
+ class MotionSystem extends ModelObject_1.default {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.currentMove = new _1.CurrentMove();
12
+ this.currentObject = null;
13
+ this.currentTool = -1;
14
+ this.nextTool = -1;
15
+ this.previousTool = -1;
16
+ this.printingAcceleration = 10000;
17
+ this.restorePoints = new ModelCollection_1.default(RestorePoint_1.default);
18
+ this.rotation = new _1.MoveRotation();
19
+ this.speedFactor = 1;
20
+ this.travelAcceleration = 10000;
21
+ this.userPosition = [];
22
+ this.virtualEPos = 0;
23
+ this.workplaceNumber = 0;
24
+ }
25
+ }
26
+ exports.MotionSystem = MotionSystem;
27
+ exports.default = MotionSystem;
@@ -4,6 +4,7 @@ import Axis from "./Axis";
4
4
  import Extruder from "./Extruder";
5
5
  import InputShaping from "./InputShaping";
6
6
  import KeepoutZone from "./KeepoutZone";
7
+ import MotionSystem from "./MotionSystem";
7
8
  import MoveCalibration from "./MoveCalibration";
8
9
  import MoveCompensation from "./MoveCompensation";
9
10
  import Kinematics from "./kinematics";
@@ -40,14 +41,30 @@ export declare class Move extends ModelObject {
40
41
  kinematics: Kinematics;
41
42
  limitAxes: boolean;
42
43
  noMovesBeforeHoming: boolean;
44
+ readonly motionSystems: ModelCollection<MotionSystem>;
45
+ /**
46
+ * @deprecated use motionSystems[].printingAcceleration instead
47
+ */
43
48
  printingAcceleration: number;
44
49
  readonly queue: ModelCollection<MoveQueueItem>;
50
+ /**
51
+ * @deprecated use motionSystems[].rotation instead
52
+ */
45
53
  readonly rotation: MoveRotation;
46
54
  readonly shaping: InputShaping;
47
55
  speedFactor: number;
56
+ /**
57
+ * @deprecated use motionSystems[].travelAcceleration instead
58
+ */
48
59
  travelAcceleration: number;
49
- usingSCurve: boolean | null;
60
+ usingSCurve: boolean;
61
+ /**
62
+ * @deprecated use motionSystems[].virtualEPos instead
63
+ */
50
64
  virtualEPos: number;
65
+ /**
66
+ * @deprecated use motionSystems[].workplaceNumber instead
67
+ */
51
68
  workplaceNumber: number;
52
69
  }
53
70
  export default Move;
@@ -59,4 +76,5 @@ export * from "./InputShaping";
59
76
  export * from "./KeepoutZone";
60
77
  export * from "./Microstepping";
61
78
  export * from "./MoveCalibration";
79
+ export * from "./MotionSystem";
62
80
  export * from "./MoveCompensation";
@@ -21,6 +21,7 @@ const Axis_1 = require("./Axis");
21
21
  const Extruder_1 = require("./Extruder");
22
22
  const InputShaping_1 = require("./InputShaping");
23
23
  const KeepoutZone_1 = require("./KeepoutZone");
24
+ const MotionSystem_1 = require("./MotionSystem");
24
25
  const MoveCalibration_1 = require("./MoveCalibration");
25
26
  const MoveCompensation_1 = require("./MoveCompensation");
26
27
  const kinematics_1 = require("./kinematics");
@@ -75,14 +76,30 @@ class Move extends ModelObject_1.default {
75
76
  this.kinematics = new kinematics_1.CoreKinematics(kinematics_1.KinematicsName.cartesian);
76
77
  this.limitAxes = true;
77
78
  this.noMovesBeforeHoming = true;
79
+ this.motionSystems = new ModelCollection_1.default(MotionSystem_1.default);
80
+ /**
81
+ * @deprecated use motionSystems[].printingAcceleration instead
82
+ */
78
83
  this.printingAcceleration = 10000;
79
84
  this.queue = new ModelCollection_1.default(MoveQueueItem);
85
+ /**
86
+ * @deprecated use motionSystems[].rotation instead
87
+ */
80
88
  this.rotation = new MoveRotation();
81
89
  this.shaping = new InputShaping_1.default();
82
90
  this.speedFactor = 1;
91
+ /**
92
+ * @deprecated use motionSystems[].travelAcceleration instead
93
+ */
83
94
  this.travelAcceleration = 10000;
84
- this.usingSCurve = null;
95
+ this.usingSCurve = false;
96
+ /**
97
+ * @deprecated use motionSystems[].virtualEPos instead
98
+ */
85
99
  this.virtualEPos = 0;
100
+ /**
101
+ * @deprecated use motionSystems[].workplaceNumber instead
102
+ */
86
103
  this.workplaceNumber = 0;
87
104
  }
88
105
  }
@@ -96,4 +113,5 @@ __exportStar(require("./InputShaping"), exports);
96
113
  __exportStar(require("./KeepoutZone"), exports);
97
114
  __exportStar(require("./Microstepping"), exports);
98
115
  __exportStar(require("./MoveCalibration"), exports);
116
+ __exportStar(require("./MotionSystem"), exports);
99
117
  __exportStar(require("./MoveCompensation"), exports);
@@ -43,10 +43,19 @@ export declare class State extends ModelObject {
43
43
  machineMode: MachineMode;
44
44
  macroRestarted: boolean;
45
45
  msUpTime: number;
46
+ /**
47
+ * @deprecated use move.motionSystems[].nextTool instead
48
+ */
46
49
  nextTool: number;
47
50
  pluginsStarted: boolean;
48
51
  powerFailScript: string;
52
+ /**
53
+ * @deprecated use move.motionSystems[].previousTool instead
54
+ */
49
55
  previousTool: number;
56
+ /**
57
+ * @deprecated use move.motionSystems[].restorePoints instead
58
+ */
50
59
  readonly restorePoints: ModelCollection<RestorePoint>;
51
60
  startupError: StartupError | null;
52
61
  status: MachineStatus;
@@ -75,10 +75,19 @@ class State extends ModelObject_1.default {
75
75
  this.machineMode = MachineMode.fff;
76
76
  this.macroRestarted = false;
77
77
  this.msUpTime = 0;
78
+ /**
79
+ * @deprecated use move.motionSystems[].nextTool instead
80
+ */
78
81
  this.nextTool = -1;
79
82
  this.pluginsStarted = false;
80
83
  this.powerFailScript = "";
84
+ /**
85
+ * @deprecated use move.motionSystems[].previousTool instead
86
+ */
81
87
  this.previousTool = -1;
88
+ /**
89
+ * @deprecated use move.motionSystems[].restorePoints instead
90
+ */
82
91
  this.restorePoints = new ModelCollection_1.default(RestorePoint_1.default);
83
92
  this.startupError = null;
84
93
  this.status = MachineStatus_1.MachineStatus.starting;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duet3d/objectmodel",
3
- "version": "3.7.0-alpha.3",
3
+ "version": "3.7.0-alpha.4",
4
4
  "description": "TypeScript implementation of the Duet3D Object Model",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",