mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Added relative move option
CURA-1339
This commit is contained in:
parent
4b5c118ed2
commit
fc88844cf8
2 changed files with 16 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue