Skip to content

Commit

Permalink
modified check_move to different 5 axes
Browse files Browse the repository at this point in the history
  • Loading branch information
nick3621 committed Dec 10, 2024
1 parent 98557e5 commit 7dd5dca
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions klippy/kinematics/dual_gantry.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,22 @@ def check_move(self, move):
limits = self.limits
end_pos = move.end_pos

# Check XYZ movement

xyz_moving = False
for i in range(3):
if end_pos[i] < limits[i][0] or end_pos[i] > limits[i][1]:
self._check_endstops(move)
xyz_moving = True

# Check UV movement
uv_moving = False
for i in range(3, 5):
if end_pos[i] < limits[i][0] or end_pos[i] > limits[i][1]:
self._check_endstops(move)
uv_moving = True
uv_moving = False
for i in range(5):
# Check XYZ movement
if i < 3:
if end_pos[i] < limits[i][0] or end_pos[i] > limits[i][1]:
self._check_endstops(move)
xyz_moving = True
# Check UV movement
else:
if end_pos[i] < limits[i][0] or end_pos[i] > limits[i][1]:
self._check_endstops(move)
uv_moving = True



# Apply speed constraints for Z moves
if not move.axes_d[2]:
Expand Down

0 comments on commit 7dd5dca

Please sign in to comment.