mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 20:28:10 -06:00
homing: Base homing cpu delay on estimated number of steps needed
Instead of adding 250ms to each homing operation add a time relative to the number of estimated steps that are to be generated. This scales the delay to really large axes without adding a delay for normal users. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
6bbb84326d
commit
6930a7de8d
2 changed files with 11 additions and 4 deletions
|
@ -329,10 +329,11 @@ class ToolHead:
|
|||
self._check_stall()
|
||||
def home(self, homing_state):
|
||||
self.kin.home(homing_state)
|
||||
def dwell(self, delay):
|
||||
def dwell(self, delay, check_stall=True):
|
||||
self.get_last_move_time()
|
||||
self.update_move_time(delay)
|
||||
self._check_stall()
|
||||
if check_stall:
|
||||
self._check_stall()
|
||||
def motor_off(self):
|
||||
self.dwell(STALL_TIME)
|
||||
last_move_time = self.get_last_move_time()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue