|
@@ -20,8 +20,17 @@
|
20
|
20
|
*
|
21
|
21
|
*/
|
22
|
22
|
|
|
23
|
+#include "../../inc/MarlinConfig.h"
|
|
24
|
+
|
|
25
|
+#if IS_KINEMATIC
|
|
26
|
+
|
|
27
|
+#include "../gcode.h"
|
|
28
|
+#include "../../module/motion.h"
|
|
29
|
+
|
23
|
30
|
#if ENABLED(DELTA)
|
24
|
31
|
|
|
32
|
+ #include "../../module/delta.h"
|
|
33
|
+
|
25
|
34
|
/**
|
26
|
35
|
* M665: Set delta configurations
|
27
|
36
|
*
|
|
@@ -34,7 +43,7 @@
|
34
|
43
|
* Y = Beta (Tower 2) angle trim
|
35
|
44
|
* Z = Rotate A and B by this angle
|
36
|
45
|
*/
|
37
|
|
- void gcode_M665() {
|
|
46
|
+ void GcodeSuite::M665() {
|
38
|
47
|
if (parser.seen('H')) {
|
39
|
48
|
home_offset[Z_AXIS] = parser.value_linear_units() - DELTA_HEIGHT;
|
40
|
49
|
update_software_endstops(Z_AXIS);
|
|
@@ -54,6 +63,8 @@
|
54
|
63
|
|
55
|
64
|
#elif IS_SCARA
|
56
|
65
|
|
|
66
|
+ #include "../../module/scara.h"
|
|
67
|
+
|
57
|
68
|
/**
|
58
|
69
|
* M665: Set SCARA settings
|
59
|
70
|
*
|
|
@@ -66,7 +77,7 @@
|
66
|
77
|
* A, P, and X are all aliases for the shoulder angle
|
67
|
78
|
* B, T, and Y are all aliases for the elbow angle
|
68
|
79
|
*/
|
69
|
|
- void gcode_M665() {
|
|
80
|
+ void GcodeSuite::M665() {
|
70
|
81
|
if (parser.seen('S')) delta_segments_per_second = parser.value_float();
|
71
|
82
|
|
72
|
83
|
const bool hasA = parser.seen('A'), hasP = parser.seen('P'), hasX = parser.seen('X');
|
|
@@ -91,3 +102,5 @@
|
91
|
102
|
}
|
92
|
103
|
|
93
|
104
|
#endif
|
|
105
|
+
|
|
106
|
+#endif // IS_KINEMATIC
|