mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Added rudementary 3 point bed leveling
This commit is contained in:
parent
18497329db
commit
07c19498f1
2 changed files with 43 additions and 49 deletions
|
@ -354,6 +354,15 @@ class PrinterConnection(OutputDevice, QObject, SignalEmitter):
|
|||
def heatupBed(self, temperature):
|
||||
self._sendCommand("M140 S%s" % temperature)
|
||||
|
||||
@pyqtSlot("long", "long","long")
|
||||
def moveHead(self, x, y, z):
|
||||
print("Moving head" , x , " ", y , " " , z)
|
||||
self._sendCommand("G0 X%s Y%s Z%s"%(x,y,z))
|
||||
|
||||
@pyqtSlot()
|
||||
def homeHead(self):
|
||||
self._sendCommand("G28")
|
||||
|
||||
## Directly send the command, withouth checking connection state (eg; printing).
|
||||
# \param cmd string with g-code
|
||||
def _sendCommand(self, cmd):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue