aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/quad_gantry_level.py
Commit message (Collapse)AuthorAgeFilesLines
* z_tilt: expose an 'applied' status to allow macros to skip QGL/Z_TILT_ADJUST ↵Michael Rose2021-06-021-1/+7
| | | | | | | | | | | | | | (#4313) This is useful for macros that'd like to skip QGL if already leveled, e.g.: ``` {% if not printer.quad_gantry_level.applied %} QUAD_GANTRY_LEVEL {% endif %} ``` Signed-off-by: Michael Rose <elementation@gmail.com>
* quad_gantry_level: Add additional comments on how leveling worksKevin O'Connor2020-09-031-18/+41
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extras: Use "from . import module" for relative importsKevin O'Connor2020-06-151-1/+1
| | | | | | Use alternate import syntax to improve Python3 compatibility. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* quad_gantry_level: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-3/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* z_tilt: Raise a gcode.error() instead of directly calling respond_error()Kevin O'Connor2020-04-241-5/+4
| | | | | | | Raising an error (instead of reporting an error) is important as only a raised error will stop a print from virtual_sdcard. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* quad_gantry_level: Support retriesfess2019-06-181-0/+4
| | | | | | | | | | | | | | Support retrying QUAD_GANTRY_LEVEL a configurable number of times to a configurable tolerance both in the config or as parameters. - By default keeps original behavior of no retries. - Adds parameters RETRIES and RETRY_TOLERANCE to QUAD_GANTRY_LEVEL gcode. - adds config options retries and retry_tolerance to `[quad_gantry_level]` - issues an error if we are getting worse intead of approaching tolerance - issues an error if retries were requested but we did not reach the tolerance in the specified number of retries Signed-off-by: John "Fess" Fessenden <fess@fess.org>
* quad_gantry_level: Use new ZAdjustHelperKevin O'Connor2019-06-171-41/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* quad_gantry_level: Require exactly 4 probe pointsfess2019-05-211-1/+3
| | | | | | | quad_gantry_level requires exactly 4 probe points assert as much at config time. Signed-off-by: John "Fess" Fessenden <fess@fess.org>
* probe: ProbePointsHelper adjustable minimum pointsfess2019-05-211-0/+1
| | | | | | | | Factor out minimum required points check for ProbePointsHelper in prep for setting different values for quad_gantry_level and z_tilt_adjust Signed-off-by: John "Fess" Fessenden <fess@fess.org>
* quad_gantry_level: Limit maximum adjustmentfess2019-05-011-0/+10
| | | | | | | | | | | safety feature that prevents quad_gantry_level from trying to do a correction that might break things - if your probe fires early for whatever reason and tries to do an 8mm correction in one corner instead we abort if a correction is over a configurable limit by default 4mm configurable via `max_adjust` parameter in the config Signed-off-by: John "Fess" Fessenden <fess@fess.org>
* quad_gantry_level: More compact info messagesfess2019-05-011-4/+6
| | | | | | | | In particular trying to keep the output from a single quad_gantry_level so that it fits in the octoprint terminal window without the need to scroll Signed-off-by: John "Fess" Fessenden <fess@fess.org>
* quad_gantry_level: Fixing logic to use probed Z values correctly (#1328)Voron2019-03-081-19/+30
| | | Signed-off-by: Maks Zolin <mzolin@vorondesign.com>
* quad_gantry_level: Wrap code to 80 columnsKevin O'Connor2019-02-271-9/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Convert printer_state("connect") to an event handlerKevin O'Connor2019-01-081-3/+2
| | | | | | | Convert all users of the printer_state("connect") handler to register a "klippy:connect" event handler instead. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Support manual probing at runtimeKevin O'Connor2018-10-011-1/+1
| | | | | | | | Don't require the config file to specify manual probing. Instead, allow the user to select manual probing on each ProbePointsHelper invocation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Perform multi-sample averaging in ProbePointsHelper classKevin O'Connor2018-10-011-15/+0
| | | | | | | | Now that all the callers of ProbePointsHelper take a cartesian coordinate for the probe locations, it's possible to perform averaging of multi-sample probes within the class. This simplifies the callers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* probe: Implement ProbePointsHelper get_probed_position() locallyKevin O'Connor2018-10-011-5/+2
| | | | | | | | Now that all users of ProbePointsHelper use the same get_probed_position() code, it is possible to implement that locally within the ProbePointsHelper class. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* quad_gantry_level: Fix typo, add floating point error protectionMaks Zolin2018-09-141-2/+2
| | | | Signed-off-by: Maks Zolin <mzolin@vorondesign.com>
* quad_gantry_level: Add gantry leveling (ruled hyperbolic parabola ↵Maks Zolin2018-09-121-0/+124
correction) (#631) Signed-off-by: Maks Zolin <mzolin@vorondesign.com>