From de178ad998bca8f6d62b6f1781cb5ab798e6dee3 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Thu, 23 Mar 2017 22:36:13 -0400 Subject: [PATCH] updates --- axi/device.py | 4 ++-- axi/paths.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/axi/device.py b/axi/device.py index 64a9f97..2b43cae 100644 --- a/axi/device.py +++ b/axi/device.py @@ -25,8 +25,8 @@ PEN_DOWN_SPEED = 150 PEN_DOWN_DELAY = 0 ACCELERATION = 8 -MAX_VELOCITY = 8 -CORNER_FACTOR = 0.0005 +MAX_VELOCITY = 2 +CORNER_FACTOR = 0.001 VID_PID = '04D8:FD92' diff --git a/axi/paths.py b/axi/paths.py index c90dc16..e601712 100644 --- a/axi/paths.py +++ b/axi/paths.py @@ -18,7 +18,7 @@ def simplify_path(points, tolerance): if len(points) < 2: return points line = LineString(points) - line = line.simplify(tolerance) + line = line.simplify(tolerance, preserve_topology=False) return list(line.coords) def simplify_paths(paths, tolerance):