mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-10-21 08:48:13 +00:00
migration to a new hardware, adding additional configs
This commit is contained in:
1 parent
c02ec2ebd2
commit
2473d0cdba
10 files changed
+202
-56
No files matched your search
+22
-1
@@ -63,7 +63,7 @@ class TestGMachine(unittest.TestCase):
|
||||
self.assertRaises(GMachineException,
|
||||
m.do_command, GCode.parse_line("G1F-1"))
|
||||
self.assertRaises(GMachineException,
|
||||
m.do_command, GCode.parse_line("G1F999999"))
|
||||
m.do_command, GCode.parse_line("G1X100F999999"))
|
||||
self.assertRaises(GMachineException,
|
||||
m.do_command, GCode.parse_line("G1X-1Y0Z0"))
|
||||
self.assertRaises(GMachineException,
|
||||
@@ -71,6 +71,27 @@ class TestGMachine(unittest.TestCase):
|
||||
self.assertRaises(GMachineException,
|
||||
m.do_command, GCode.parse_line("G1X0Y0Z-1"))
|
||||
|
||||
def test_feed_rate(self):
|
||||
m = GMachine()
|
||||
self.assertRaises(GMachineException,
|
||||
m.do_command, GCode.parse_line("G1X1F-1"))
|
||||
m.do_command(GCode.parse_line("G1X100F"
|
||||
+ str(MAX_VELOCITY_MM_PER_MIN_X)))
|
||||
m.do_command(GCode.parse_line("G1Y100F"
|
||||
+ str(MAX_VELOCITY_MM_PER_MIN_Y)))
|
||||
m.do_command(GCode.parse_line("G1Z100F"
|
||||
+ str(MAX_VELOCITY_MM_PER_MIN_Z)))
|
||||
m.do_command(GCode.parse_line("G1E100F"
|
||||
+ str(MAX_VELOCITY_MM_PER_MIN_E)))
|
||||
s = "G1X0F" + str(MAX_VELOCITY_MM_PER_MIN_X + 1)
|
||||
self.assertRaises(GMachineException, m.do_command, GCode.parse_line(s))
|
||||
s = "G1Y0F" + str(MAX_VELOCITY_MM_PER_MIN_Y + 1)
|
||||
self.assertRaises(GMachineException, m.do_command, GCode.parse_line(s))
|
||||
s = "G1Z0F" + str(MAX_VELOCITY_MM_PER_MIN_Z + 1)
|
||||
self.assertRaises(GMachineException, m.do_command, GCode.parse_line(s))
|
||||
s = "G1E0F" + str(MAX_VELOCITY_MM_PER_MIN_E + 1)
|
||||
self.assertRaises(GMachineException, m.do_command, GCode.parse_line(s))
|
||||
|
||||
def test_g2_g3(self):
|
||||
m = GMachine()
|
||||
self.assertRaises(GMachineException,
|
||||
|
||||
Reference in new issue
Block a user