diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-12-06 10:13:58 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-12-06 19:13:54 -0500 |
commit | f6d4284d5ccc7e3041ab3d89a0a9244edcd157b9 (patch) | |
tree | c177886a1919a13a4ed44313ccbc2844f1eddcb1 /klippy/corexy.py | |
parent | 8d9ca6f2dd96e5b1c71999fb8497487fcb091493 (diff) | |
download | kutter-f6d4284d5ccc7e3041ab3d89a0a9244edcd157b9.tar.gz kutter-f6d4284d5ccc7e3041ab3d89a0a9244edcd157b9.tar.xz kutter-f6d4284d5ccc7e3041ab3d89a0a9244edcd157b9.zip |
homing: Directly interact with the kinematic class on query_endstops()
Move the query_endstop logic out of toolhead.py and into homing.py.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/corexy.py')
-rw-r--r-- | klippy/corexy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/corexy.py b/klippy/corexy.py index cd51410b..3eac2e26 100644 --- a/klippy/corexy.py +++ b/klippy/corexy.py @@ -33,6 +33,8 @@ class CoreXYKinematics: self.steppers[1].set_max_jerk(max_xy_halt_velocity, max_accel) self.steppers[2].set_max_jerk( min(max_halt_velocity, self.max_z_velocity), self.max_z_accel) + def get_steppers(self): + return list(self.steppers) def set_position(self, newpos): pos = (newpos[0] + newpos[1], newpos[0] - newpos[1], newpos[2]) for i in StepList: @@ -71,8 +73,6 @@ class CoreXYKinematics: # Support endstop phase detection on Z axis coord[axis] = s.position_endstop + s.get_homed_offset() homing_state.set_homed_position(coord) - def query_endstops(self, print_time, query_flags): - return homing.query_endstops(print_time, query_flags, self.steppers) def motor_off(self, print_time): self.limits = [(1.0, -1.0)] * 3 for stepper in self.steppers: |