Added rudementary 3 point bed leveling

This commit is contained in:
Jaime van Kessel 2015-08-19 16:47:48 +02:00
parent 18497329db
commit 07c19498f1
2 changed files with 43 additions and 49 deletions

View file

@ -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):