mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-10-20 08:47:05 +00:00
modify pin configuration, add calibration fonctionnality to hal raspberrypi and correct velocity
This commit is contained in:
1 parent
a94da2de8e
commit
08f7a7dc86
4 files changed
+195
-105
No files matched your search
+4
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user