diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-01-16 18:58:41 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-01-28 12:19:26 -0500 |
commit | 1a679028582d7ae503d80a4bbc8ca233451633be (patch) | |
tree | a86f31c8b0269c762076520a6c04c7f4bc7a1ea6 /klippy/homing.py | |
parent | 01bb4b291eb48a2556096ce0d56a212f52405985 (diff) | |
download | kutter-1a679028582d7ae503d80a4bbc8ca233451633be.tar.gz kutter-1a679028582d7ae503d80a4bbc8ca233451633be.tar.xz kutter-1a679028582d7ae503d80a4bbc8ca233451633be.zip |
homing_override: Allow moves prior to homing an axis
Add support for disabling homing checks via the homing_override
mechanism. This may be useful to move an axis prior to homing it.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/homing.py')
-rw-r--r-- | klippy/homing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/klippy/homing.py b/klippy/homing.py index 41f1ece5..a6725c9a 100644 --- a/klippy/homing.py +++ b/klippy/homing.py @@ -78,7 +78,9 @@ class Homing: raise EndstopError(error) def home(self, forcepos, movepos, endstops, speed, second_home=False): # Alter kinematics class to think printer is at forcepos - self.toolhead.set_position(self._fill_coord(forcepos)) + homing_axes = [axis for axis in range(3) if forcepos[axis] is not None] + self.toolhead.set_position( + self._fill_coord(forcepos), homing_axes=homing_axes) # Add a CPU delay when homing a large axis if not second_home: est_move_d = sum([abs(forcepos[i]-movepos[i]) |