Open fragmuffin opened 5 years ago
Add functionality to pygcode.Machine to estimate time needed to follow a CNC path.
pygcode.Machine
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:
pygcode.GCodeRapidMove
pygcode.GCodeMotion.__subclasses__()
Out of scope:
G01 X0 Y10
G01 X10 Y10
G01 X0 Y20
Add functionality to
pygcode.Machine
to estimate time needed to follow a CNC path.For example:
Scope: (estimate only) In scope:
pygcode.GCodeRapidMove
)pygcode.GCodeMotion.__subclasses__()
Out of scope:
G01 X0 Y10
->G01 X10 Y10
, tool can't instantly change direction at full speed For the purposes of this estimate the above example would take the same time asG01 X0 Y20