updates
This commit is contained in:
parent
a86afb5711
commit
de178ad998
|
@ -25,8 +25,8 @@ PEN_DOWN_SPEED = 150
|
||||||
PEN_DOWN_DELAY = 0
|
PEN_DOWN_DELAY = 0
|
||||||
|
|
||||||
ACCELERATION = 8
|
ACCELERATION = 8
|
||||||
MAX_VELOCITY = 8
|
MAX_VELOCITY = 2
|
||||||
CORNER_FACTOR = 0.0005
|
CORNER_FACTOR = 0.001
|
||||||
|
|
||||||
VID_PID = '04D8:FD92'
|
VID_PID = '04D8:FD92'
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ def simplify_path(points, tolerance):
|
||||||
if len(points) < 2:
|
if len(points) < 2:
|
||||||
return points
|
return points
|
||||||
line = LineString(points)
|
line = LineString(points)
|
||||||
line = line.simplify(tolerance)
|
line = line.simplify(tolerance, preserve_topology=False)
|
||||||
return list(line.coords)
|
return list(line.coords)
|
||||||
|
|
||||||
def simplify_paths(paths, tolerance):
|
def simplify_paths(paths, tolerance):
|
||||||
|
|
Loading…
Reference in New Issue