aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-11-07 11:51:27 -0500
committerKevin O'Connor <kevin@koconnor.net>2017-11-18 17:29:23 -0500
commitfc1d690d75f1b0e5be8a5a3e791007c314156065 (patch)
treec8cfd6fa290825381c6737e09fbb0f285fdecae6 /klippy/stepper.py
parentd10380e73feba3d3befd53e8ac043d85987dec92 (diff)
downloadkutter-fc1d690d75f1b0e5be8a5a3e791007c314156065.tar.gz
kutter-fc1d690d75f1b0e5be8a5a3e791007c314156065.tar.xz
kutter-fc1d690d75f1b0e5be8a5a3e791007c314156065.zip
stepper: Remove unused variables from PrinterStepper class
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py
index f5002d96..473a2435 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -14,8 +14,6 @@ class PrinterStepper:
self.name = self.name[8:]
self.step_dist = config.getfloat('step_distance', above=0.)
- self.inv_step_dist = 1. / self.step_dist
- self.min_stop_interval = 0.
self.mcu_stepper = pins.setup_pin(
printer, 'stepper', config.get('step_pin'))
dir_pin_params = pins.get_printer_pins(printer).parse_pin_desc(
@@ -105,10 +103,10 @@ class PrinterHomingStepper(PrinterStepper):
self.homing_endstop_accuracy = self.homing_stepper_phases//2 - 1
elif self.homing_endstop_phase is not None:
self.homing_endstop_accuracy = int(math.ceil(
- endstop_accuracy * self.inv_step_dist / 2.))
+ endstop_accuracy * .5 / self.step_dist))
else:
self.homing_endstop_accuracy = int(math.ceil(
- endstop_accuracy * self.inv_step_dist))
+ endstop_accuracy / self.step_dist))
if self.homing_endstop_accuracy >= self.homing_stepper_phases // 2:
logging.info("Endstop for %s is not accurate enough for stepper"
" phase adjustment", name)