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:
parent
8eb1110aa8
commit
36ae433b57
|
@ -71,6 +71,7 @@ class CartKinematics:
|
||||||
second_homing_speed = hi.second_homing_speed
|
second_homing_speed = hi.second_homing_speed
|
||||||
if axis == 2:
|
if axis == 2:
|
||||||
homing_speed = min(homing_speed, self.max_z_velocity)
|
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 = [None, None, None, None]
|
||||||
homepos[axis] = hi.position_endstop
|
homepos[axis] = hi.position_endstop
|
||||||
coord = [None, None, None, None]
|
coord = [None, None, None, None]
|
||||||
|
|
|
@ -66,6 +66,8 @@ class CoreXYKinematics:
|
||||||
second_homing_speed = hi.second_homing_speed
|
second_homing_speed = hi.second_homing_speed
|
||||||
if axis == 2:
|
if axis == 2:
|
||||||
homing_speed = min(homing_speed, self.max_z_velocity)
|
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 = [None, None, None, None]
|
||||||
homepos[axis] = hi.position_endstop
|
homepos[axis] = hi.position_endstop
|
||||||
coord = [None, None, None, None]
|
coord = [None, None, None, None]
|
||||||
|
|
Loading…
Reference in New Issue