refactor calibration process, some dummy commands support

This commit is contained in:
Nikolay Khabarov
2017-07-01 03:07:30 +03:00
parent b181fcc38c
commit 1c88c8ad41
6 changed files with 166 additions and 84 deletions
+2 -2
View File
@@ -32,10 +32,10 @@ class TestGMachine(unittest.TestCase):
m.release()
self.assertEqual(m.position(), Coordinates(0, 0, 0, 4))
def test_home(self):
def test_safe_zero(self):
m = GMachine()
m.do_command(GCode.parse_line("X1Y2Z3E4"))
m.home()
m.safe_zero()
self.assertEqual(m.position(), Coordinates(0, 0, 0, 4))
def test_none(self):