parameters

This commit is contained in:
Michael Fogleman 2018-03-13 12:41:49 -04:00
parent 81c225eb2e
commit d36c616a38
2 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ from .progress import Bar
TIMESLICE_MS = 10 TIMESLICE_MS = 10
MICROSTEPPING_MODE = 2 MICROSTEPPING_MODE = 1
STEP_DIVIDER = 2 ** (MICROSTEPPING_MODE - 1) STEP_DIVIDER = 2 ** (MICROSTEPPING_MODE - 1)
STEPS_PER_INCH = 2032 / STEP_DIVIDER STEPS_PER_INCH = 2032 / STEP_DIVIDER
@ -26,9 +26,9 @@ PEN_DOWN_POSITION = 40
PEN_DOWN_SPEED = 150 PEN_DOWN_SPEED = 150
PEN_DOWN_DELAY = 0 PEN_DOWN_DELAY = 0
ACCELERATION = 8 ACCELERATION = 16
MAX_VELOCITY = 3 MAX_VELOCITY = 4
CORNER_FACTOR = 0.005 CORNER_FACTOR = 0.001
JOG_ACCELERATION = 16 JOG_ACCELERATION = 16
JOG_MAX_VELOCITY = 8 JOG_MAX_VELOCITY = 8

View File

@ -10,11 +10,11 @@ BOUNDS = axi.A3_BOUNDS
def main(): def main():
d = axi.Drawing.load(sys.argv[1]).scale(1, -1) d = axi.Drawing.load(sys.argv[1]).scale(1, -1)
print(len(d.paths)) 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.rotate_and_scale_to_fit(*BOUNDS[-2:])
d = d.sort_paths() d = d.sort_paths()
d = d.join_paths(0.01) d = d.join_paths(0.005)
d = d.simplify_paths(0.001) d = d.simplify_paths(0.0001)
print(len(d.paths)) print(len(d.paths))
print(d.bounds) print(d.bounds)
d.dump('out.axi') d.dump('out.axi')