mirror of
https://git.mirrors.martin98.com/https://github.com/petaflot/pygcode
synced 2025-07-12 07:31:48 +08:00
derps
This commit is contained in:
parent
ab276e3bd2
commit
dcdacd68c0
@ -475,13 +475,13 @@ class GCodeCannedCycle(GCode):
|
|||||||
|
|
||||||
def _process(self, machine):
|
def _process(self, machine):
|
||||||
moveto_coords = self.get_param_dict(letters=machine.axes)
|
moveto_coords = self.get_param_dict(letters=machine.axes)
|
||||||
if isinstance(machine.mode., GCodeCannedCycleReturnToR):
|
if isinstance(machine.mode.canned_cycles_return, GCodeCannedCycleReturnToR):
|
||||||
# canned return is to this.R, not this.Z (plane dependent)
|
# canned return is to this.R, not this.Z (plane dependent)
|
||||||
moveto_coords.update({
|
moveto_coords.update({
|
||||||
machine.mode.plane_selection.normal_axis: this.R,
|
machine.mode.plane_selection.normal_axis: this.R,
|
||||||
})
|
})
|
||||||
|
|
||||||
machine.mode_to(**moveto_coords)
|
machine.move_to(**moveto_coords)
|
||||||
|
|
||||||
|
|
||||||
class GCodeDrillingCycle(GCodeCannedCycle):
|
class GCodeDrillingCycle(GCodeCannedCycle):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user