extruder: Fix retract
Commit 7554c7f6
broke retract moves. Fix by making sure extrude_r is
always a positive number.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
00b40b720f
commit
d2abbd8f5d
|
@ -36,7 +36,7 @@ class PrinterExtruder:
|
||||||
self.stepper.motor_enable(move_time, 1)
|
self.stepper.motor_enable(move_time, 1)
|
||||||
self.need_motor_enable = False
|
self.need_motor_enable = False
|
||||||
axis_d = move.axes_d[3]
|
axis_d = move.axes_d[3]
|
||||||
extrude_r = axis_d / move.move_d
|
extrude_r = abs(axis_d) / move.move_d
|
||||||
inv_accel = 1. / (move.accel * extrude_r)
|
inv_accel = 1. / (move.accel * extrude_r)
|
||||||
|
|
||||||
start_v = move.start_v * extrude_r
|
start_v = move.start_v * extrude_r
|
||||||
|
|
Loading…
Reference in New Issue