aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/kinematics/delta.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-01-10 11:31:14 -0500
committerKevin O'Connor <kevin@koconnor.net>2025-01-21 18:58:23 -0500
commitc72d73ec450119b5fbe13d98409037a21ae97101 (patch)
tree6f25201d46778109e972a36448a01c42a727c0fa /klippy/kinematics/delta.py
parent5fe333934d678a8dc3f8cdbddcf3ab828da5503e (diff)
downloadkutter-c72d73ec450119b5fbe13d98409037a21ae97101.tar.gz
kutter-c72d73ec450119b5fbe13d98409037a21ae97101.tar.xz
kutter-c72d73ec450119b5fbe13d98409037a21ae97101.zip
stepper_enable: Directly call clear_homing_state() on motor off event
Call clear_homing_state() on each motor off event. This simplifies the kinematic classes as they no longer need to register and handle the motor_off event. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/kinematics/delta.py')
-rw-r--r--klippy/kinematics/delta.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/klippy/kinematics/delta.py b/klippy/kinematics/delta.py
index 04a75547..f10586b7 100644
--- a/klippy/kinematics/delta.py
+++ b/klippy/kinematics/delta.py
@@ -23,8 +23,6 @@ class DeltaKinematics:
stepper_configs[2], need_position_minmax = False,
default_position_endstop=a_endstop)
self.rails = [rail_a, rail_b, rail_c]
- config.get_printer().register_event_handler("stepper_enable:motor_off",
- self._motor_off)
# Setup max velocity
self.max_velocity, self.max_accel = toolhead.get_max_velocity()
self.max_z_velocity = config.getfloat(
@@ -116,8 +114,6 @@ class DeltaKinematics:
forcepos = list(self.home_position)
forcepos[2] = -1.5 * math.sqrt(max(self.arm2)-self.max_xy2)
homing_state.home_rails(self.rails, forcepos, self.home_position)
- def _motor_off(self, print_time):
- self.clear_homing_state((0, 1, 2))
def check_move(self, move):
end_pos = move.end_pos
end_xy2 = end_pos[0]**2 + end_pos[1]**2