aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-12-20 14:11:38 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-12-20 14:41:20 -0500
commit1d21bf66c605d114055e50d715e2dcbe2ddfd86a (patch)
tree6ef44bf18778d30ffeedec86f6e36cd01d737588 /klippy/stepper.py
parent1b0750597312625c23e3389226e418dda1373df2 (diff)
downloadkutter-1d21bf66c605d114055e50d715e2dcbe2ddfd86a.tar.gz
kutter-1d21bf66c605d114055e50d715e2dcbe2ddfd86a.tar.xz
kutter-1d21bf66c605d114055e50d715e2dcbe2ddfd86a.zip
homing: Handle speed rounding when homing speed greater than max_velocity
Commit 002dc0df added rounding to the homing speed, but it did not work if the configured homing speed was less than the printer's maximum velocity. Move the speed rounding from stepper.py to homing.py and make sure the rounded speed is less than the maximum speed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py
index 109d0904..089d14dc 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -122,13 +122,6 @@ class PrinterHomingStepper(PrinterStepper):
self.homing_endstop_accuracy = self.homing_stepper_phases
def get_endstops(self):
return [(self.mcu_endstop, self.name)]
- def get_homing_speed(self):
- # Round the configured homing speed so that it is an even
- # number of ticks per step.
- adjusted_freq = self.mcu_stepper.get_mcu().get_adjusted_freq()
- dist_ticks = adjusted_freq * self.step_dist
- ticks_per_step = round(dist_ticks / self.homing_speed)
- return dist_ticks / ticks_per_step
def get_homed_offset(self):
if not self.homing_stepper_phases or self.need_motor_enable:
return 0.