cartesian: Make sure to constrain second_homing_speed to max_z_velocity

Commit b0d859f2 introduced a second_homing_speed parameter; that
parameter needs to also be constrained to the max_z_velocity.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-10-08 10:52:46 -04:00
parent 8eb1110aa8
commit 36ae433b57
2 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,7 @@ class CartKinematics:
second_homing_speed = hi.second_homing_speed
if axis == 2:
homing_speed = min(homing_speed, self.max_z_velocity)
second_homing_speed = min(second_homing_speed, self.max_z_velocity)
homepos = [None, None, None, None]
homepos[axis] = hi.position_endstop
coord = [None, None, None, None]

View File

@ -66,6 +66,8 @@ class CoreXYKinematics:
second_homing_speed = hi.second_homing_speed
if axis == 2:
homing_speed = min(homing_speed, self.max_z_velocity)
second_homing_speed = min(second_homing_speed,
self.max_z_velocity)
homepos = [None, None, None, None]
homepos[axis] = hi.position_endstop
coord = [None, None, None, None]