diff --git a/cura/PrinterOutputDevice.py b/cura/PrinterOutputDevice.py index 91eba34631..1eff1b945a 100644 --- a/cura/PrinterOutputDevice.py +++ b/cura/PrinterOutputDevice.py @@ -203,6 +203,22 @@ class PrinterOutputDevice(OutputDevice, QObject): def setHeadZ(self, z, speed = 3000): self._setHeadY(z, speed) + ## Move the head of the printer. + # Note that this is a relative move. If you want to move the head to a specific position you can use + # setHeadPosition + # This function is "final" (do not re-implement) + # /param x distance in x to move + # /param y distance in y to move + # /param z distance in z to move + # /param speed Speed by which it needs to move (in mm/minute) + @pyqtSlot("long", "long", "long") + @pyqtSlot("long", "long", "long", "long") + def moveHead(self, x = 0, y = 0, z = 0, speed = 3000): + self._moveHead(x, y, z, speed) + + def _moveHead(self, x, y, z, speed): + pass + def _setHeadPosition(self, x, y, z, speed): pass diff --git a/plugins/USBPrinting/USBPrinterOutputDevice.py b/plugins/USBPrinting/USBPrinterOutputDevice.py index 5536d6c74b..8262aaf3c4 100644 --- a/plugins/USBPrinting/USBPrinterOutputDevice.py +++ b/plugins/USBPrinting/USBPrinterOutputDevice.py @@ -69,9 +69,6 @@ class USBPrinterOutputDevice(PrinterOutputDevice): # List of gcode lines to be printed self._gcode = [] - # Current Z stage location - self._current_z = 0 - # Check if endstops are ever pressed (used for first run) self._x_min_endstop_pressed = False self._y_min_endstop_pressed = False