aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/kinematics/corexy.py
diff options
context:
space:
mode:
authorChris Whiteford <github@chrisandtennille.com>2018-10-04 18:55:58 -0400
committerKevinOConnor <kevin@koconnor.net>2018-10-04 18:55:58 -0400
commitb0d859f220457f0a1c15b5be452620f19043ae16 (patch)
tree83648d1225efc0651e7713d1143dc4f99161b4aa /klippy/kinematics/corexy.py
parent97927172f15c96dc941743f559575ca5ddcf55e1 (diff)
downloadkutter-b0d859f220457f0a1c15b5be452620f19043ae16.tar.gz
kutter-b0d859f220457f0a1c15b5be452620f19043ae16.tar.xz
kutter-b0d859f220457f0a1c15b5be452620f19043ae16.zip
stepper: Adding support for a second_homing_speed parameter (#677)
Signed-off-by: Chris Whiteford <chris@chrisandtennille.com>
Diffstat (limited to 'klippy/kinematics/corexy.py')
-rw-r--r--klippy/kinematics/corexy.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/klippy/kinematics/corexy.py b/klippy/kinematics/corexy.py
index 47bc3e92..a3399d89 100644
--- a/klippy/kinematics/corexy.py
+++ b/klippy/kinematics/corexy.py
@@ -63,6 +63,7 @@ class CoreXYKinematics:
r2pos = rpos + hi.retract_dist
# Initial homing
homing_speed = hi.speed
+ second_homing_speed = hi.second_homing_speed
if axis == 2:
homing_speed = min(homing_speed, self.max_z_velocity)
homepos = [None, None, None, None]
@@ -72,11 +73,11 @@ class CoreXYKinematics:
homing_state.home(coord, homepos, rail.get_endstops(), homing_speed)
# Retract
coord[axis] = rpos
- homing_state.retract(coord, homing_speed)
+ homing_state.retract(coord, second_homing_speed)
# Home again
coord[axis] = r2pos
homing_state.home(coord, homepos, rail.get_endstops(),
- homing_speed/2.0, second_home=True)
+ second_homing_speed, second_home=True)
if axis == 2:
# Support endstop phase detection on Z axis
coord[axis] = hi.position_endstop + rail.get_homed_offset()