@duet3d/objectmodel 3.7.0-rc.7 → 3.7.0
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/documentation.json +16 -5
- package/dist/move/MotionSystem.d.ts +12 -2
- package/dist/move/MotionSystem.js +15 -2
- package/package.json +1 -1
package/dist/documentation.json
CHANGED
|
@@ -36,8 +36,14 @@
|
|
|
36
36
|
"6": "Driver mode is unknown"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"boards[].firmwareDate":
|
|
40
|
-
|
|
39
|
+
"boards[].firmwareDate": {
|
|
40
|
+
"summary": "Date of the firmware build",
|
|
41
|
+
"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"
|
|
42
|
+
},
|
|
43
|
+
"boards[].firmwareFileName": {
|
|
44
|
+
"summary": "Filename of the firmware binary",
|
|
45
|
+
"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"
|
|
46
|
+
},
|
|
41
47
|
"boards[].firmwareName": "Name of the firmware build",
|
|
42
48
|
"boards[].firmwareVersion": "Version of the firmware build",
|
|
43
49
|
"boards[].freeRam": "Amount of free RAM on this board (in bytes or null if unknown)",
|
|
@@ -45,7 +51,10 @@
|
|
|
45
51
|
"boards[].iapFileNameSD": "Filename of the IAP binary that is used for updates from the SD card or null if unsupported",
|
|
46
52
|
"boards[].inductiveSensor": "Information about an inductive sensor or null if not present",
|
|
47
53
|
"boards[].maxHeaters": "Maximum number of heaters this board can control",
|
|
48
|
-
"boards[].maxMotors":
|
|
54
|
+
"boards[].maxMotors": {
|
|
55
|
+
"summary": "Maximum number of motors this board can drive",
|
|
56
|
+
"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"
|
|
57
|
+
},
|
|
49
58
|
"boards[].mcuTemp": "Minimum, maximum, and current temperatures of the MCU or null if unknown",
|
|
50
59
|
"boards[].mcuTemp.current": "Current value",
|
|
51
60
|
"boards[].mcuTemp.max": "Maximum value",
|
|
@@ -65,7 +74,10 @@
|
|
|
65
74
|
},
|
|
66
75
|
"boards[].supportsDirectDisplay": "Indicates if this board supports external displays",
|
|
67
76
|
"boards[].timeout": "Connection timeout of this board (in s)",
|
|
68
|
-
"boards[].uniqueId":
|
|
77
|
+
"boards[].uniqueId": {
|
|
78
|
+
"summary": "Unique identifier of the board or null if unknown",
|
|
79
|
+
"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. It is flagged verbose here so that non-verbose board updates do not reset it on the main board."
|
|
80
|
+
},
|
|
69
81
|
"boards[].v12": "Minimum, maximum, and current voltages on the 12V rail or null if unknown",
|
|
70
82
|
"boards[].v12.current": "Current value",
|
|
71
83
|
"boards[].v12.max": "Maximum value",
|
|
@@ -593,7 +605,6 @@
|
|
|
593
605
|
"move.motionSystems[].currentMove.duration": "Duration of the current move (in s)",
|
|
594
606
|
"move.motionSystems[].currentMove.extrusionRate": "Current extrusion rate (in mm/s)",
|
|
595
607
|
"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
608
|
"move.motionSystems[].currentMove.requestedSpeed": "Requested speed of the current move (in mm/s)",
|
|
598
609
|
"move.motionSystems[].currentMove.topSpeed": "Top speed of the current move (in mm/s)",
|
|
599
610
|
"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 {
|
|
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:
|
|
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 {
|
|
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
|
|
21
|
+
this.currentMove = new MotionSystemCurrentMove();
|
|
9
22
|
this.currentObject = null;
|
|
10
23
|
this.currentTool = -1;
|
|
11
24
|
this.nextTool = -1;
|