Compute duration estimation across all actual layers for correctness
This also matters as those actual layers are what we will use for ETAmaster
parent
7c3250a9e1
commit
5b572c167f
|
@ -288,10 +288,7 @@ class GCode(object):
|
||||||
#TODO:
|
#TODO:
|
||||||
# get device caps from firmware: max speed, acceleration/axis (including extruder)
|
# get device caps from firmware: max speed, acceleration/axis (including extruder)
|
||||||
# calculate the maximum move duration accounting for above ;)
|
# calculate the maximum move duration accounting for above ;)
|
||||||
zs = self.layers.keys()
|
for layer in self.all_layers:
|
||||||
zs.sort()
|
|
||||||
for z in zs:
|
|
||||||
layer = self.layers[z]
|
|
||||||
for line in layer.lines:
|
for line in layer.lines:
|
||||||
if line.command not in ["G1", "G0", "G4"]:
|
if line.command not in ["G1", "G0", "G4"]:
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue