@duet3d/objectmodel 3.7.0-rc.7 → 3.7.0-rc.8

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.
@@ -45,7 +45,10 @@
45
45
  "boards[].iapFileNameSD": "Filename of the IAP binary that is used for updates from the SD card or null if unsupported",
46
46
  "boards[].inductiveSensor": "Information about an inductive sensor or null if not present",
47
47
  "boards[].maxHeaters": "Maximum number of heaters this board can control",
48
- "boards[].maxMotors": "Maximum number of motors this board can drive",
48
+ "boards[].maxMotors": {
49
+ "summary": "Maximum number of motors this board can drive",
50
+ "remarks": "RRF reports this as verbose on the main board only, because expansion boards can be hot-plugged and verbose values are only fetched on the initial connect"
51
+ },
49
52
  "boards[].mcuTemp": "Minimum, maximum, and current temperatures of the MCU or null if unknown",
50
53
  "boards[].mcuTemp.current": "Current value",
51
54
  "boards[].mcuTemp.max": "Maximum value",
@@ -593,7 +596,6 @@
593
596
  "move.motionSystems[].currentMove.duration": "Duration of the current move (in s)",
594
597
  "move.motionSystems[].currentMove.extrusionRate": "Current extrusion rate (in mm/s)",
595
598
  "move.motionSystems[].currentMove.filePosition": "Position in the job file of the move being executed (in bytes or null)",
596
- "move.motionSystems[].currentMove.laserPwm": "Laser PWM of the current move (0..1) or null if not applicable",
597
599
  "move.motionSystems[].currentMove.requestedSpeed": "Requested speed of the current move (in mm/s)",
598
600
  "move.motionSystems[].currentMove.topSpeed": "Top speed of the current move (in mm/s)",
599
601
  "move.motionSystems[].currentObject": "Number of the current object being printed or null if not printing",
@@ -1,9 +1,19 @@
1
1
  import ModelObject from "../ModelObject";
2
2
  import ModelCollection from "../ModelCollection";
3
3
  import RestorePoint from "../state/RestorePoint";
4
- import { CurrentMove, MoveRotation } from ".";
4
+ import { MoveRotation } from ".";
5
+ export declare class MotionSystemCurrentMove extends ModelObject {
6
+ acceleration: number;
7
+ deceleration: number;
8
+ distance: number;
9
+ duration: number;
10
+ extrusionRate: number;
11
+ filePosition: number | null;
12
+ requestedSpeed: number;
13
+ topSpeed: number;
14
+ }
5
15
  export declare class MotionSystem extends ModelObject {
6
- readonly currentMove: CurrentMove;
16
+ readonly currentMove: MotionSystemCurrentMove;
7
17
  currentObject: number | null;
8
18
  currentTool: number;
9
19
  nextTool: number;
@@ -1,11 +1,24 @@
1
1
  import ModelObject from "../ModelObject";
2
2
  import ModelCollection from "../ModelCollection";
3
3
  import RestorePoint from "../state/RestorePoint";
4
- import { CurrentMove, MoveRotation } from ".";
4
+ import { MoveRotation } from ".";
5
+ export class MotionSystemCurrentMove extends ModelObject {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.acceleration = 0;
9
+ this.deceleration = 0;
10
+ this.distance = 0;
11
+ this.duration = 0;
12
+ this.extrusionRate = 0;
13
+ this.filePosition = null;
14
+ this.requestedSpeed = 0;
15
+ this.topSpeed = 0;
16
+ }
17
+ }
5
18
  export class MotionSystem extends ModelObject {
6
19
  constructor() {
7
20
  super(...arguments);
8
- this.currentMove = new CurrentMove();
21
+ this.currentMove = new MotionSystemCurrentMove();
9
22
  this.currentObject = null;
10
23
  this.currentTool = -1;
11
24
  this.nextTool = -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duet3d/objectmodel",
3
- "version": "3.7.0-rc.7",
3
+ "version": "3.7.0-rc.8",
4
4
  "description": "TypeScript implementation of the Duet3D Object Model",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",