Skip to content

Commit

Permalink
Update Printer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lavachemist committed Jul 26, 2020
1 parent b82b4b4 commit d0c7a9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OpenFL/Printer.py
Expand Up @@ -582,6 +582,13 @@ def sample_line_segment_mm_s(start_xy_mm, end_xy_mm, dt_s, mW=None, max_mm=5.0):
""" Given a line segment in mm space, map it to galvo space.
To make the line straight in mm space, samples may be added to
more-closely approximate a straight line.
Center of build plate = (0,0)
start_xy_mm = starting position in mm expressed as (x, y)
end_xy_mm = ending position in mm expressed as (x, y)
dt_s = seconds between start_xy_mm and end_xy_mm (formula = distance between points in mm divided by the feedrate in mm/s)
mW = laser power in mW
Returns: An array of shape nx3 (if mW is None) or nx4 (if mW is not None)
of points time deltas in mm and seconds,
excluding start_xy_mm and including end_xy_mm,
Expand Down

0 comments on commit d0c7a9c

Please sign in to comment.