From d36c616a3848ee3bd61366d9edd96534172c6b72 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Tue, 13 Mar 2018 12:41:49 -0400 Subject: [PATCH] parameters --- axi/device.py | 8 ++++---- examples/ribbon-simple.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/axi/device.py b/axi/device.py index f0b8a41..2d80d00 100644 --- a/axi/device.py +++ b/axi/device.py @@ -12,7 +12,7 @@ from .progress import Bar TIMESLICE_MS = 10 -MICROSTEPPING_MODE = 2 +MICROSTEPPING_MODE = 1 STEP_DIVIDER = 2 ** (MICROSTEPPING_MODE - 1) STEPS_PER_INCH = 2032 / STEP_DIVIDER @@ -26,9 +26,9 @@ PEN_DOWN_POSITION = 40 PEN_DOWN_SPEED = 150 PEN_DOWN_DELAY = 0 -ACCELERATION = 8 -MAX_VELOCITY = 3 -CORNER_FACTOR = 0.005 +ACCELERATION = 16 +MAX_VELOCITY = 4 +CORNER_FACTOR = 0.001 JOG_ACCELERATION = 16 JOG_MAX_VELOCITY = 8 diff --git a/examples/ribbon-simple.py b/examples/ribbon-simple.py index f84ab0e..cec09f1 100644 --- a/examples/ribbon-simple.py +++ b/examples/ribbon-simple.py @@ -10,11 +10,11 @@ BOUNDS = axi.A3_BOUNDS def main(): d = axi.Drawing.load(sys.argv[1]).scale(1, -1) print(len(d.paths)) - d = d.join_paths(0.01) + d = d.join_paths(0.005) d = d.rotate_and_scale_to_fit(*BOUNDS[-2:]) d = d.sort_paths() - d = d.join_paths(0.01) - d = d.simplify_paths(0.001) + d = d.join_paths(0.005) + d = d.simplify_paths(0.0001) print(len(d.paths)) print(d.bounds) d.dump('out.axi')