Commit 0a79e154 authored by kliment's avatar kliment

More precise homing

parent 0d5809ea
...@@ -816,24 +816,24 @@ class pronsole(cmd.Cmd): ...@@ -816,24 +816,24 @@ class pronsole(cmd.Cmd):
if "x" in l.lower(): if "x" in l.lower():
self.do_move("X -250") self.do_move("X -250")
self.p.send_now("G92 X0") self.p.send_now("G92 X0")
self.do_move("X 1 200") self.do_move("X 5 200")
self.do_move("X -1 200") self.do_move("X -10 200")
self.do_move("X 0.1") self.do_move("X 0.1")
self.do_move("X -0.1") self.do_move("X -0.1")
self.p.send_now("G92 X0") self.p.send_now("G92 X0")
if "y" in l.lower(): if "y" in l.lower():
self.do_move("Y -250") self.do_move("Y -250")
self.p.send_now("G92 Y0") self.p.send_now("G92 Y0")
self.do_move("Y 1 200") self.do_move("Y 5 200")
self.do_move("Y -1 200") self.do_move("Y -10 200")
self.do_move("Y 0.1") self.do_move("Y 0.1")
self.do_move("Y -0.1") self.do_move("Y -0.1")
self.p.send_now("G92 Y0") self.p.send_now("G92 Y0")
if "z" in l.lower(): if "z" in l.lower():
self.do_move("Z -250") self.do_move("Z -250")
send_now("G92 Z0") send_now("G92 Z0")
self.do_move("Z 1") self.do_move("Z 2")
self.do_move("Z -1") self.do_move("Z -3")
self.p.send_now("G92 Z0") self.p.send_now("G92 Z0")
if not len(l): if not len(l):
self.p.send_now("G28") self.p.send_now("G28")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment