Skip to content

Commit

Permalink
恢复初始限位设定为非法值.
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoGeTiertime committed Dec 21, 2023
1 parent f787bad commit 2fd340a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions klippy/kinematics/cartesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ def __init__(self, toolhead, config):
above=0., maxval=max_velocity)
self.max_z_accel = config.getfloat('max_z_accel', max_accel,
above=0., maxval=max_accel)
# self.limits = [(1.0, -1.0)] * 3
self.limits = [(-100.0, 100.0)] * 3
self.limits = [(1.0, -1.0)] * 3
def get_steppers(self):
return [s for rail in self.rails for s in rail.get_steppers()]
def calc_position(self, stepper_positions):
Expand Down Expand Up @@ -91,8 +90,7 @@ def home(self, homing_state):
else:
self.home_axis(homing_state, axis, self.rails[axis])
def _motor_off(self, print_time):
# self.limits = [(1.0, -1.0)] * 3
self.limits = [(-100.0, 100.0)] * 3
self.limits = [(1.0, -1.0)] * 3
def _check_endstops(self, move):
end_pos = move.end_pos
for i in (0, 1, 2):
Expand Down

0 comments on commit 2fd340a

Please sign in to comment.