toolhead: Don't call into kinematic class on extrude only moves

Add a is_kinematic_move flag to the Move class and clear it on extrude
only moves.  Don't call the kinematic check_move() or move() methods
for extrude only moves.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2016-12-28 11:48:40 -05:00
parent f46bc0ef04
commit f2b406fc5e
3 changed files with 7 additions and 9 deletions

View File

@@ -26,9 +26,7 @@ class PrinterExtruder:
if not self.heater.can_extrude:
raise homing.EndstopMoveError(
move.end_pos, "Extrude below minimum temp")
if (not move.do_calc_junction
and not move.axes_d[0] and not move.axes_d[1]
and not move.axes_d[2]):
if not move.is_kinematic_move:
# Extrude only move - limit accel and velocity
move.limit_speed(self.max_e_velocity, self.max_e_accel)
def move(self, move_time, move):