klipper-dgus/klippy
fess 49c36f868b z_tilt: Support retries
Support retrying Z_TILT_ADJUST 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 uad_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

the minimum change should  be a single z step for those
probing 2 points for 2 stepper motors and 3 for 3 stepper motors.

at one point it was suggested to use the amount of z adjustment instead of the
range of the probed points as a trigger for retry. I've chosen not to do this.
using z adustment in these cases means the minimum unit of change is related to
the angle created by the probed points  and the distance to stepper motor and
can be more than a couple steps which is rather unintuitive.

for the case when someone is using more probed points than z steppers the
probed points range will have some fixed minimum value that can't be reduced
which is also unintuitive but that case should idealy be the rarer case, and
the user can learn to set a higher tolerance that matches their probing setup.

Signed-off-by: John "Fess" Fessenden <fess@fess.org>
2019-06-18 12:12:25 -04:00
..
chelper serialqueue: Wrap code to 80 columns 2019-02-27 14:20:15 -05:00
extras z_tilt: Support retries 2019-06-18 12:12:25 -04:00
kinematics extruder: Use template evaluation on gcode 2019-06-07 11:38:43 -04:00
clocksync.py clocksync: Wrap code to 80 columns 2019-02-27 13:01:52 -05:00
configfile.py configfile: Add "include" support (#1359) 2019-03-22 20:31:40 -04:00
console.py bus: Support bus enumerations and add support for reserved pins 2019-04-04 18:29:31 -04:00
gcode.py gcode: Eliminate the process_batch() method 2019-06-09 18:44:44 -04:00
heater.py heater: Wrap code to 80 columns 2019-02-27 13:09:24 -05:00
homing.py homing: Catch the more generic CommandError during homing 2019-06-06 10:08:58 -04:00
klippy.py klippy: Provide global access to a printer.command_error exception class 2019-06-06 10:22:14 -04:00
mathutil.py gcode: Change respond_info() to log by default 2019-03-04 13:04:18 -05:00
mcu.py mcu: Support a start value for soft pwm pins 2019-06-02 10:59:33 -04:00
msgproto.py bus: Support bus enumerations and add support for reserved pins 2019-04-04 18:29:31 -04:00
parsedump.py build: Request python2 for all directly executed python binaries 2017-06-27 20:26:02 -04:00
pins.py tmc2208: Add support for using an analog mux to access TMC uarts 2019-06-12 22:14:41 -04:00
queuelogger.py klippy: Automatically clear rollover_info on each restart 2018-04-03 13:18:52 -04:00
reactor.py reactor: Be explicit on which handlers are timer_handler vs file_handler 2019-06-09 18:44:44 -04:00
serialhdl.py serialhdl: Use reactor mutex in send_with_response() 2019-06-09 19:12:24 -04:00
stepper.py endstop_phase: Move endstop phase homing code to new "extras" module 2018-10-16 13:09:23 -04:00
toolhead.py toolhead: Commands should still pause even when sync_print_time 2019-06-09 12:35:54 -04:00
util.py util: Ignore errors in clear_hupcl (allows OSX to run) 2019-05-20 16:49:42 -04:00