diff options
author | Master92 <Nils.Friedchen@googlemail.com> | 2019-09-18 15:37:33 +0200 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-09-18 09:37:33 -0400 |
commit | 3a37d4a2085b6f4cbe4b3713bda2056c36d64d43 (patch) | |
tree | 86e7b0d77db1157a7654484cb9c881916adbdf15 /klippy/gcode.py | |
parent | 80775faa09909d9a754b2b1bfa9cba3c0491769b (diff) | |
download | kutter-3a37d4a2085b6f4cbe4b3713bda2056c36d64d43.tar.gz kutter-3a37d4a2085b6f4cbe4b3713bda2056c36d64d43.tar.xz kutter-3a37d4a2085b6f4cbe4b3713bda2056c36d64d43.zip |
safe_z_home: Hop only if necessary and add option to move xy back
Once a hop is performed, it will only be re-issued if the z-axis has been
moved in the meantime. Usually it is only moved by a z-homing so doing so
will cause safe_z_home to do the hop on the next homing action.
When z-axis is homed, x and y positions are known. When setting this
boolean option, these are set back to their last positions.
Whenever a hop is specified it is re-issued after the Z axis has been
homed. This is especially necessary when a pressure-based probe is used.
Also, the module decides if a hop is necessary, based on either a known
Z position or a flag that is set whenever the motors are disabled.
Signed-off-by: Nils Friedchen <Nils.Friedchen@googlemail.com>
Diffstat (limited to 'klippy/gcode.py')
0 files changed, 0 insertions, 0 deletions