diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-01-27 22:32:12 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-02-06 12:17:50 -0500 |
commit | 528c29c01c5614387c02bb0dce8d8179ea8ac36e (patch) | |
tree | afa17e71b286a6a7e23021b89e5a0ba94932eb70 /klippy/toolhead.py | |
parent | 1bb7a221151b2f892fd4971f263b44d9acd44a06 (diff) | |
download | kutter-528c29c01c5614387c02bb0dce8d8179ea8ac36e.tar.gz kutter-528c29c01c5614387c02bb0dce8d8179ea8ac36e.tar.xz kutter-528c29c01c5614387c02bb0dce8d8179ea8ac36e.zip |
extruder: Do extruder lookahead based on time instead of cornering
When calculating the extruder lookahead, determine how far to
lookahead by the amount of elapsed time each move takes. This makes
the extruder lookahead code more flexible as it is no longer limited
to the next immediate cornering moves.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r-- | klippy/toolhead.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py index 768f7233..a189a848 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -125,7 +125,7 @@ class MoveQueue: for move, start_v2, cruise_v2, end_v2 in move_info[:flush_count]: move.set_junction(start_v2, cruise_v2, end_v2) # Allow extruder to do its lookahead - flush_count = self.extruder_lookahead(move_info, flush_count, lazy) + flush_count = self.extruder_lookahead(queue, flush_count, lazy) # Generate step times for all moves ready to be flushed for move in queue[:flush_count]: move.move() |