Skip to content

Commit

Permalink
Update Adaptive_Meshing.cfg
Browse files Browse the repository at this point in the history
Remove RRI calls as they've been deprecated with new zero reference point configuration.
  • Loading branch information
kyleisah authored Jul 6, 2023
1 parent 79ab38d commit bb6dda7
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions Configuration/Adaptive_Meshing.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ gcode:
{% set points_x = [points_x, probe_count[0]]|min %}
{% set points_y = [points_y, probe_count[1]]|min %}

{% if printer.configfile.settings.bed_mesh.relative_reference_index is defined %} #
{% set ref_index = (points_x * points_y / 2) | int %} #
{% else %} # Set reference index to be point closest to adapted mesh center point if defined
{% set ref_index = -1 %} #
{% endif %} #

{% if verbose_enable == True %} # If verbose is enabled, print information about KAMP's calculations

{ action_respond_info( "Algorithm: {}.".format(
Expand All @@ -66,13 +60,7 @@ gcode:
{ action_respond_info("Adapted probe count: {},{}.".format(
(points_x),
(points_y),
)) }

{% if ref_index != -1 %}
{ action_respond_info( "Reference index adjusted to: {}.".format(ref_index) ) }
{% else %}
{ action_respond_info( "Reference index: None." ) }
{% endif %}
)) }

{action_respond_info("Default mesh bounds: {}, {}.".format(
(bed_mesh_min[0],bed_mesh_min[1]),
Expand Down Expand Up @@ -109,8 +97,8 @@ gcode:
{attach_macro} # Attach/deploy a probe if the probe is stored somewhere outside of the print area
{% endif %}

_BED_MESH_CALIBRATE mesh_min={adapted_x_min},{adapted_y_min} mesh_max={adapted_x_max},{adapted_y_max} ALGORITHM={algorithm} PROBE_COUNT={points_x},{points_y} RELATIVE_REFERENCE_INDEX={ref_index}
_BED_MESH_CALIBRATE mesh_min={adapted_x_min},{adapted_y_min} mesh_max={adapted_x_max},{adapted_y_max} ALGORITHM={algorithm} PROBE_COUNT={points_x},{points_y}

{% if probe_dock_enable == True %}
{detach_macro} # Detach/stow a probe if the probe is stored somewhere outside of the print area
{% endif %} # End of verbose
{% endif %} # End of verbose

0 comments on commit bb6dda7

Please sign in to comment.