|
@@ -22,15 +22,15 @@
|
22
|
22
|
|
23
|
23
|
#include "../gcode.h"
|
24
|
24
|
#include "../../module/motion.h"
|
25
|
|
-//#include "../../module/stepper.h"
|
26
|
25
|
|
27
|
26
|
#if ENABLED(CNC_COORDINATE_SYSTEMS)
|
|
27
|
+ #include "../../module/stepper.h"
|
28
|
28
|
|
29
|
29
|
/**
|
30
|
30
|
* Select a coordinate system and update the workspace offset.
|
31
|
31
|
* System index -1 is used to specify machine-native.
|
32
|
32
|
*/
|
33
|
|
- bool GCodeSuite::select_coordinate_system(const int8_t _new) {
|
|
33
|
+ bool GcodeSuite::select_coordinate_system(const int8_t _new) {
|
34
|
34
|
if (active_coordinate_system == _new) return false;
|
35
|
35
|
stepper.synchronize();
|
36
|
36
|
float old_offset[XYZ] = { 0 }, new_offset[XYZ] = { 0 };
|
|
@@ -54,7 +54,7 @@
|
54
|
54
|
* It precedes a movement command (or other modifiers) on the same line.
|
55
|
55
|
* This is the first command to use parser.chain() to make this possible.
|
56
|
56
|
*/
|
57
|
|
- void GCodeSuite::G53() {
|
|
57
|
+ void GcodeSuite::G53() {
|
58
|
58
|
// If this command has more following...
|
59
|
59
|
if (parser.chain()) {
|
60
|
60
|
const int8_t _system = active_coordinate_system;
|
|
@@ -80,11 +80,11 @@
|
80
|
80
|
report_current_position();
|
81
|
81
|
}
|
82
|
82
|
}
|
83
|
|
- void GCodeSuite::G54() { G54_59(); }
|
84
|
|
- void GCodeSuite::G55() { G54_59(); }
|
85
|
|
- void GCodeSuite::G56() { G54_59(); }
|
86
|
|
- void GCodeSuite::G57() { G54_59(); }
|
87
|
|
- void GCodeSuite::G58() { G54_59(); }
|
88
|
|
- void GCodeSuite::G59() { G54_59(parser.subcode); }
|
|
83
|
+ void GcodeSuite::G54() { G54_59(); }
|
|
84
|
+ void GcodeSuite::G55() { G54_59(); }
|
|
85
|
+ void GcodeSuite::G56() { G54_59(); }
|
|
86
|
+ void GcodeSuite::G57() { G54_59(); }
|
|
87
|
+ void GcodeSuite::G58() { G54_59(); }
|
|
88
|
+ void GcodeSuite::G59() { G54_59(parser.subcode); }
|
89
|
89
|
|
90
|
90
|
#endif // CNC_COORDINATE_SYSTEMS
|