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/delta.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/delta.py')
-rw-r--r-- | klippy/delta.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/delta.py b/klippy/delta.py index b0ad094e..3b3f24ef 100644 --- a/klippy/delta.py +++ b/klippy/delta.py @@ -58,6 +58,8 @@ class DeltaKinematics: % (math.sqrt(self.max_xy2), math.sqrt(self.slow_xy2), math.sqrt(self.very_slow_xy2))) self.set_position([0., 0., 0.]) + def get_steppers(self): + return list(self.steppers) def _cartesian_to_actuator(self, coord): return [math.sqrt(self.arm_length2 - (self.towers[i][0] - coord[0])**2 @@ -124,8 +126,6 @@ class DeltaKinematics: + self.steppers[i].get_homed_offset() for i in StepList] homing_state.set_homed_position(self._actuator_to_cartesian(spos)) - 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.limit_xy2 = -1. for stepper in self.steppers: |