diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-10-29 11:25:08 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-10-29 11:41:59 -0400 |
commit | 14bdc8e5690404d29799e3fe09b74ac0e108e64d (patch) | |
tree | b7f64cc91b957d735f552ca9ee7781ca6a893bbe /klippy/stepper.py | |
parent | 260f999b87a2a5f76d6a9165d5d92cc017d469df (diff) | |
download | kutter-14bdc8e5690404d29799e3fe09b74ac0e108e64d.tar.gz kutter-14bdc8e5690404d29799e3fe09b74ac0e108e64d.tar.xz kutter-14bdc8e5690404d29799e3fe09b74ac0e108e64d.zip |
stepper: Remove unused _dist_to_time() method
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r-- | klippy/stepper.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py index ec757763..97bc1364 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -53,10 +53,6 @@ class MCU_stepper: def units_in_radians(self): # Returns true if distances are in radians instead of millimeters return self._units_in_radians - def _dist_to_time(self, dist, start_velocity, accel): - # Calculate the time it takes to travel a distance with constant accel - time_offset = start_velocity / accel - return math.sqrt(2. * dist / accel + time_offset**2) - time_offset def setup_itersolve(self, alloc_func, *params): ffi_main, ffi_lib = chelper.get_ffi() sk = ffi_main.gc(getattr(ffi_lib, alloc_func)(*params), ffi_lib.free) |