modify pin configuration, add calibration fonctionnality to hal raspberrypi and correct velocity

This commit is contained in:
sinseman44 committed 2020-10-24 08:14:55 +01:00
1 parent a94da2de8e
commit 08f7a7dc86
4 files changed
+195 -105

No files matched your search

+4 -1
View File
@@ -335,11 +335,14 @@ class GMachine(object):
self._convertCoordinates)
# coord = self._position + delta
velocity = gcode.get('F', self._velocity)
logging.debug("Velocity = {}".format(velocity))
radius = gcode.radius(Coordinates(0.0, 0.0, 0.0, 0.0),
self._convertCoordinates)
# check parameters
if velocity < MIN_VELOCITY_MM_PER_MIN:
if velocity < MIN_VELOCITY_MM_PER_MIN and velocity > 1:
raise GMachineException("feed speed too low")
elif velocity == 1:
velocity = MIN_VELOCITY_MM_PER_MIN
# select command and run it
if c == 'G0': # rapid move
vl = max(MAX_VELOCITY_MM_PER_MIN_X,