fragmuffin / pygcode

GCODE Parser for Python
GNU General Public License v3.0
123 stars 38 forks source link

Estimate time for path #17

Open fragmuffin opened 5 years ago

fragmuffin commented 5 years ago

Add functionality to pygcode.Machine to estimate time needed to follow a CNC path.

For example:

>>> m = pygcode.Machine()

# Initial state
>>> m.pos
<Position: X0 Y0 Z0>
>>> m.time
0.0

# After movement
>>> rapid_move = pygcode.GCodeRapidMove(X=10, Y=20)
>>> m.process_gcodes(rapid_move)
>>> m.pos
<Position: X10 Y20 Z0>
>>> m.time
1.23

Scope: (estimate only) In scope:

Out of scope: