limit min velocity

This commit is contained in:
Nikolay Khabarov committed 2017-07-01 03:14:45 +03:00
1 parent 1c88c8ad41
commit e441b5dc1f
3 files changed
+5 -2

No files matched your search

+2 -2
View File
@@ -324,8 +324,8 @@ class GMachine(object):
radius = gcode.radius(Coordinates(0.0, 0.0, 0.0, 0.0),
self._convertCoordinates)
# check parameters
if velocity <= 0:
raise GMachineException("negative feed speed")
if velocity < MIN_VELOCITY_MM_PER_MIN:
raise GMachineException("feed speed too low")
# select command and run it
if c == 'G0': # rapid move
vl = max(MAX_VELOCITY_MM_PER_MIN_X,