Add KAMP adaptive mesh leveling and priming - untested

This commit is contained in:
2024-10-12 03:08:17 +01:00
parent 6cca953a81
commit 5145e11e4d
7 changed files with 352 additions and 13 deletions

View File

@@ -9,10 +9,40 @@
# then one may need to flash a bootloader to the board - see the
# Klipper docs/Bootloaders.md file for more information.
[gcode_macro _CLIENT_VARIABLE]
#variable_use_custom_pos : False ; use custom park coordinates for x,y [True/False]
#variable_custom_park_x : 0.0 ; custom x position; value must be within your defined min and max of X
#variable_custom_park_y : 0.0 ; custom y position; value must be within your defined min and max of Y
#variable_custom_park_dz : 2.0 ; custom dz value; the value in mm to lift the nozzle when move to park position
#variable_retract : 1.0 ; the value to retract while PAUSE
#variable_cancel_retract : 5.0 ; the value to retract while CANCEL_PRINT
#variable_speed_retract : 35.0 ; retract speed in mm/s
#variable_unretract : 1.0 ; the value to unretract while RESUME
#variable_speed_unretract : 35.0 ; unretract speed in mm/s
#variable_speed_hop : 15.0 ; z move speed in mm/s
#variable_speed_move : 100.0 ; move speed in mm/s
#variable_park_at_cancel : True ; allow to move the toolhead to park while execute CANCEL_PRINT [True/False]
#variable_park_at_cancel_x : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
#variable_park_at_cancel_y : None ; different park position during CANCEL_PRINT [None/Position as Float]; park_at_cancel must be True
## !!! Caution [firmware_retraction] must be defined in the printer.cfg if you set use_fw_retract: True !!!
variable_use_fw_retract : True ; use fw_retraction instead of the manual version [True/False]
#variable_idle_timeout : 0 ; time in sec until idle_timeout kicks in. Value 0 means that no value will be set or restored
#variable_runout_sensor : "" ; If a sensor is defined, it will be used to cancel the execution of RESUME in case no filament is detected.
## Specify the config name of the runout sensor e.g "filament_switch_sensor runout". Hint use the same as in your printer.cfg
## !!! Custom macros, please use with care and review the section of the corresponding macro.
## These macros are for simple operations like setting a status LED. Please make sure your macro does not interfere with the basic macro functions.
## Only single line commands are supported, please create a macro if you need more than one command.
#variable_user_pause_macro : "" ; Everything inside the "" will be executed after the klipper base pause (PAUSE_BASE) function
#variable_user_resume_macro: "" ; Everything inside the "" will be executed before the klipper base resume (RESUME_BASE) function
#variable_user_cancel_macro: "" ; Everything inside the "" will be executed before the klipper base cancel (CANCEL_PRINT_BASE) function
gcode:
[include mainsail.cfg]
[include scottc.cfg]
[include KAMP_Settings.cfg]
# See docs/Config_Reference.md for a description of parameters.
[stepper_x]
@@ -47,6 +77,8 @@ endstop_pin: probe:z_virtual_endstop
position_max: 250
[extruder]
###max_extrude_cross_section: 200 ### DELETE ME? - Cura bug?
max_extrude_cross_section: 5 ### Required by KAMP
max_extrude_only_distance: 100.0
step_pin: PB1
dir_pin: !PB0
@@ -77,8 +109,8 @@ baud: 250000
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_velocity: 150
max_accel: 4000
max_z_velocity: 5
max_z_accel: 100
@@ -127,12 +159,27 @@ horizontal_move_z: 5
mesh_min: 20, 20
mesh_max: 195, 220
mesh_pps: 2, 2
probe_count: 8,8
#probe_count: 8,8
probe_count: 5,5
algorithm: bicubic
fade_start: 1
fade_end: 10
fade_target: 0
[firmware_retraction]
retract_length: 5
# The length of filament (in mm) to retract when G10 is activated,
# and to unretract when G11 is activated (but see
# unretract_extra_length below). The default is 0 mm.
retract_speed: 40
# The speed of retraction, in mm/s. The default is 20 mm/s.
unretract_extra_length: 0
# The length (in mm) of *additional* filament to add when
# unretracting.
unretract_speed: 20
# The speed of unretraction, in mm/s. The default is 10 mm/s.
#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
@@ -151,14 +198,14 @@ fade_target: 0
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*# 0.027500, 0.022500, -0.012500, -0.017500, -0.042500, -0.050000, -0.047500, -0.035000
#*# 0.062500, 0.047500, 0.015000, 0.010000, -0.022500, -0.030000, -0.027500, -0.037500
#*# 0.110000, 0.100000, 0.050000, 0.037500, -0.010000, -0.022500, -0.027500, -0.035000
#*# 0.117500, 0.105000, 0.065000, 0.037500, 0.000000, -0.007500, -0.022500, -0.022500
#*# 0.132500, 0.112500, 0.072500, 0.055000, 0.017500, -0.007500, -0.017500, -0.025000
#*# 0.152500, 0.125000, 0.087500, 0.060000, 0.025000, 0.005000, -0.002500, -0.010000
#*# 0.105000, 0.102500, 0.062500, 0.045000, 0.022500, 0.015000, 0.015000, 0.025000
#*# 0.100000, 0.087500, 0.055000, 0.055000, 0.032500, 0.025000, 0.037500, 0.035000
#*# 0.075000, 0.042500, 0.015000, -0.012500, -0.050000, -0.060000, -0.077500, -0.075000
#*# 0.122500, 0.087500, 0.055000, 0.027500, -0.025000, -0.022500, -0.052500, -0.072500
#*# 0.142500, 0.112500, 0.075000, 0.045000, -0.012500, -0.022500, -0.055000, -0.060000
#*# 0.175000, 0.142500, 0.105000, 0.067500, 0.002500, -0.007500, -0.037500, -0.055000
#*# 0.157500, 0.122500, 0.095000, 0.065000, 0.017500, -0.002500, -0.022500, -0.030000
#*# 0.202500, 0.157500, 0.125000, 0.085000, 0.030000, 0.007500, -0.017500, -0.030000
#*# 0.155000, 0.137500, 0.102500, 0.072500, 0.040000, 0.042500, 0.020000, 0.022500
#*# 0.137500, 0.112500, 0.095000, 0.070000, 0.045000, 0.032500, 0.035000, 0.030000
#*# x_count = 8
#*# y_count = 8
#*# mesh_x_pps = 2
@@ -168,4 +215,4 @@ fade_target: 0
#*# min_x = 20.0
#*# max_x = 195.0
#*# min_y = 20.0
#*# max_y = 219.99
#*# max_y = 219.98999999999998