klipper-dgus/klippy/extras
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
..
display menu: Remove customized get_status overrides 2019-06-04 11:55:40 -04:00
__init__.py klippy: Add support for dynamic loading of python modules 2018-01-28 12:19:26 -05:00
ad5206.py ad5206: Use bus.py helper code for spi 2018-11-21 12:12:31 -05:00
adc_temperature.py adc_temperature: Minor comment update 2019-06-02 17:12:55 -04:00
bed_mesh.py probe: ProbePointsHelper adjustable minimum points 2019-05-21 14:17:09 -04:00
bed_screws.py bed_screws: No need to re-raise an EndstopError 2019-06-06 10:08:58 -04:00
bed_tilt.py probe: ProbePointsHelper adjustable minimum points 2019-05-21 14:17:09 -04:00
bltouch.py probe: No need to re-raise an EndstopError 2019-06-06 10:08:58 -04:00
bus.py bus: Don't reserve any pins if BUS_PINS_x is not defined 2019-04-07 20:43:23 -04:00
buttons.py buttons: Minor code movement 2019-05-26 00:18:48 -04:00
controller_fan.py controller_fan: Allow multiple controller_fan sections to be defined 2019-03-10 13:57:01 -04:00
delta_calibrate.py probe: ProbePointsHelper adjustable minimum points 2019-05-21 14:17:09 -04:00
endstop_phase.py tmc2660: Add endstop phase detection functionality to TMC2660 extra (#816) 2018-10-24 16:01:12 -04:00
fan.py Wrap code to 80 columns 2019-02-27 13:27:52 -05:00
filament_switch_sensor.py filament_switch_sensor: Use template evaluation on gcode 2019-06-07 11:38:43 -04:00
firmware_retraction.py firmware_retraction: Implementation of tuneable G10/G11 firmware retraction (#1617) 2019-06-06 09:10:09 -04:00
force_move.py force_move: Avoid divide by zero in move time calculation 2019-03-31 09:00:23 -04:00
gcode_macro.py gcode_macro: Parse variable_X parameters using ast.literal_eval() 2019-06-07 19:33:31 -04:00
heater_bed.py heater_bed: Wrap lines to 80 columns 2019-02-26 11:20:01 -05:00
heater_fan.py heater_fan: add get_status method 2019-06-04 11:43:34 -04:00
heater_generic.py heater: Support generic gcode_id registration for sensors 2019-02-26 12:07:00 -05:00
homing_override.py homing_override: Pass params to template evaluation 2019-06-09 11:14:31 -04:00
idle_timeout.py gcode: Eliminate the process_batch() method 2019-06-09 18:44:44 -04:00
manual_probe.py manual_probe: Add extra checks to catch manual probe not finishing correctly 2019-06-06 10:08:58 -04:00
manual_stepper.py homing: Catch the more generic CommandError during homing 2019-06-06 10:08:58 -04:00
mcp4018.py mcp4018: Add initial support for the mcp4018 digipot 2019-02-16 08:16:37 -05:00
mcp4451.py i2ccmds: Pass the i2c address as a 7-bit number (0-127) 2019-01-07 20:00:44 -05:00
mcp4728.py mcp4728: Add initial support for the mcp4728 i2c dac chip 2019-01-02 18:17:56 -05:00
multi_pin.py pins: Explicitly pass can_invert and can_pullup to lookup_pin() 2018-07-26 09:44:45 -04:00
output_pin.py output_pin: add get_status method 2019-06-04 11:44:35 -04:00
pause_resume.py pause_resume: Use Octoprint's "paused" and "resumed" action commands. 2019-06-02 19:19:32 -04:00
pid_calibrate.py pid_calibrate: Add some comments on the calibration methodology 2018-10-19 22:40:11 -04:00
probe.py probe: Allow retries from ProbePointsHelper 2019-06-18 12:12:25 -04:00
quad_gantry_level.py quad_gantry_level: Support retries 2019-06-18 12:12:25 -04:00
query_endstops.py query_endstops: Move QUERY_ENDSTOP command to it own extras/ module 2018-07-16 10:06:30 -04:00
replicape.py replicape: add support for Linux hardware PWM (#1443) 2019-04-06 13:51:51 -04:00
respond.py respond: Wrap code to 80 columns 2019-02-27 14:33:17 -05:00
samd_sercom.py atsamd: Use enumerations for buses and reserve pins 2019-04-04 18:29:31 -04:00
screws_tilt_adjust.py probe: ProbePointsHelper adjustable minimum points 2019-05-21 14:17:09 -04:00
servo.py servo: add get_status method 2019-06-04 11:44:50 -04:00
spi_temperature.py spi_temperature: MAX6675 and MAX31855 should use spi mode 0 2019-05-22 11:40:53 -04:00
static_digital_output.py static_digital_output: Add static_digital_output section to extras/ 2018-03-17 13:06:51 -04:00
statistics.py klippy: Convert printer_state("ready") to an event handler 2019-01-08 10:59:43 -05:00
sx1509.py sx1509: Convert code to use generic i2c bus support 2019-04-04 18:29:30 -04:00
temperature_fan.py temperature_fan: Remove executable flag from temperature_fan.py 2019-06-10 14:30:48 -04:00
temperature_sensor.py temperature_sensor: Add generic temperature sensor support 2019-02-26 13:15:56 -05:00
thermistor.py thermistor: Add support for printers with an "inline_resistor" 2019-06-02 10:59:23 -04:00
tmc.py tmc: Move common TMC stepper driver code to new file tmc.py 2019-06-10 14:29:35 -04:00
tmc2130.py tmc: Move common TMC stepper driver code to new file tmc.py 2019-06-10 14:29:35 -04:00
tmc2208.py tmc2208: Add support for using an analog mux to access TMC uarts 2019-06-12 22:14:41 -04:00
tmc2660.py tmc: Move common TMC stepper driver code to new file tmc.py 2019-06-10 14:29:35 -04:00
tmc5160.py config: Update tmc5160 block in example-extras.cfg 2019-06-18 09:41:27 -04:00
tsl1401cl_filament_width_sensor.py tsl1401cl_filament_width_sensor: Fix incorrect math in filament width sensor. (#1541) 2019-04-15 21:11:26 -04:00
verify_heater.py verify_heater: Don't raise a heater error if the heater is off 2019-06-12 22:06:54 -04:00
virtual_sdcard.py gcode: Eliminate the process_batch() method 2019-06-09 18:44:44 -04:00
z_tilt.py z_tilt: Support retries 2019-06-18 12:12:25 -04:00