parameters
This commit is contained in:
parent
81c225eb2e
commit
d36c616a38
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue