Commit e89eba8c authored by Steven Devijver's avatar Steven Devijver

Use latest feedrate, no need to fall back

parent 05003322
......@@ -89,10 +89,10 @@ def get_coordinate_value(axis, parts):
def estimate_duration(g):
extra_cost_per_movement = 0.05
extra_cost_per_movement = 0.02
total_duration = 0
fallback_feedrate = 0
initial_feedrate = 0
feedrate = 0
X_last_position = 0
Y_last_position = 0
for i in g:
......@@ -103,14 +103,7 @@ def estimate_duration(g):
F = get_coordinate_value("F", parts[1:])
E = get_coordinate_value("E", parts[1:])
if (X is None and Y is None and E is None and F is not None):
fallback_feedrate = F
continue
feedrate = 0
if (F is None):
feedrate = fallback_feedrate / 60
else:
if (F is not None):
feedrate = F / 60
distance = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment