aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extruder.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-03-03 14:13:35 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-03-03 14:20:41 -0500
commit54002c43914ea7a88cb831fe16bbfb695c533f74 (patch)
tree9dfff752f5a97fa1d2341c33a438ba91282febba /klippy/extruder.py
parent6a53eaefc03a5643e73619672a2fb522e593a519 (diff)
downloadkutter-54002c43914ea7a88cb831fe16bbfb695c533f74.tar.gz
kutter-54002c43914ea7a88cb831fe16bbfb695c533f74.tar.xz
kutter-54002c43914ea7a88cb831fe16bbfb695c533f74.zip
extruder: Pressure advance lookahead time should start after decel
The pressure advance lookahead time should start after any full deceleration moves. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extruder.py')
-rw-r--r--klippy/extruder.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/klippy/extruder.py b/klippy/extruder.py
index 1c64fbf2..c59bee14 100644
--- a/klippy/extruder.py
+++ b/klippy/extruder.py
@@ -83,6 +83,10 @@ class PrinterExtruder:
if not fmove.max_start_v2:
break
if fmove.cruise_v > max_corner_v:
+ if (not max_corner_v
+ and not fmove.accel_t and not fmove.cruise_t):
+ # Start timing after any full decel moves
+ continue
if sum_t >= fmove.accel_t:
max_corner_v = fmove.cruise_v
else: