make calibration safer

This commit is contained in:
Nikolay Khabarov
2017-07-02 00:08:15 +03:00
parent c517044316
commit 5b9c0de25e
3 changed files with 76 additions and 51 deletions
+2 -2
View File
@@ -75,8 +75,8 @@ class TestGMachine(unittest.TestCase):
m = GMachine()
self.assertRaises(GMachineException,
m.do_command, GCode.parse_line("G1X1F-1"))
c = "G1X1F" + str(MIN_VELOCITY_MM_PER_MIN - 0.0000001)
self.assertRaises(GMachineException, m.do_command, GCode.parse_line(c))
cl = "G1X1F" + str(MIN_VELOCITY_MM_PER_MIN - 0.0000001)
self.assertRaises(GMachineException, m.do_command, GCode.parse_line(cl))
m.do_command(GCode.parse_line("G1X100F"
+ str(MAX_VELOCITY_MM_PER_MIN_X)))
m.do_command(GCode.parse_line("G1Y100F"