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

2 comments on commit bb6dda7

@B-Man1
Copy link

@B-Man1 B-Man1 commented on bb6dda7 Jul 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am fairly certain the following lines are missing from KAMP/Adaptive_Meshing.cfg

{% set probe_dock_enable = printer["gcode_macro _KAMP_Settings"].probe_dock_enable | abs %}
{% set attach_macro = printer["gcode_macro _KAMP_Settings"].attach_macro | string %}
{% set detach_macro = printer["gcode_macro _KAMP_Settings"].detach_macro | string %}

@kyleisah
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, you're absolutely right, and it's already been fixed. Thank you!

Please sign in to comment.