mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-07-16 08:37:09 +00:00
round delta with 2 digits, it's enough
This commit is contained in:
+4
-4
@@ -119,10 +119,10 @@ class GMachine(object):
|
|||||||
|
|
||||||
def _move_linear(self, delta, velocity, safe_zero=False):
|
def _move_linear(self, delta, velocity, safe_zero=False):
|
||||||
if not safe_zero:
|
if not safe_zero:
|
||||||
delta = delta.round(1.0 / STEPPER_PULSES_PER_MM_X,
|
delta = delta.round(round(1.0 / STEPPER_PULSES_PER_MM_X, 2),
|
||||||
1.0 / STEPPER_PULSES_PER_MM_Y,
|
round(1.0 / STEPPER_PULSES_PER_MM_Y, 2),
|
||||||
1.0 / STEPPER_PULSES_PER_MM_Z,
|
round(1.0 / STEPPER_PULSES_PER_MM_Z, 2),
|
||||||
1.0 / STEPPER_PULSES_PER_MM_E)
|
round(1.0 / STEPPER_PULSES_PER_MM_E, 2))
|
||||||
if delta.is_zero():
|
if delta.is_zero():
|
||||||
return
|
return
|
||||||
self.__check_delta(delta)
|
self.__check_delta(delta)
|
||||||
|
|||||||
Reference in New Issue
Block a user