Skip to content

Conversation

@filip-smid
Copy link

I've added config for increasing probed mesh density. This might be useful for beds with great variability, or where small prints result in meshes that are not smooth enough.

added mesh density modifier
add probe_count multiplication
@lucarampi
Copy link

Is this already available? Could not fund in main branch (also I do use Crality Helper Script)

{% set detach_macro = kamp_settings.detach_macro | string %} # Pull detach probe command from _KAMP_Settings
{% set mesh_margin = kamp_settings.mesh_margin | float %} # Pull mesh margin setting from _KAMP_Settings
{% set fuzz_amount = kamp_settings.fuzz_amount | float %} # Pull fuzz amount setting from _KAMP_Settings
{% set mesh_density = kamp_settings.mesh_density | float %} # Pull mesh density setting from _KAMP_Settings
Copy link

Choose a reason for hiding this comment

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

Suggested change
{% set mesh_density = kamp_settings.mesh_density | float %} # Pull mesh density setting from _KAMP_Settings
{% set mesh_density = kamp_settings.variable_mesh_density | float %} # Pull mesh density setting from _KAMP_Settings

Copy link
Owner

Choose a reason for hiding this comment

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

I don’t think variable needs to be in there, it’s not required, and it also doesn’t match the other variables in the meshing macro. Appreciate the review though!

Copy link

Choose a reason for hiding this comment

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

I am not suggesting that the name of the variable is changed. The author has used different names in two places, so I was simply matching the other place. I agree with your statement though, so perhaps it is better to remove variable_ from the other one instead of adding it here.

Copy link

Choose a reason for hiding this comment

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

Or maybe I am just confused about how variables work, actually. Feel free to ignore x)

Copy link
Owner

Choose a reason for hiding this comment

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

There’s a pitfall here. If you have KAMP updating though the update manager in moonraker, the settings file that is copied to the main directory will not receive the new density variable. So when this is ran on an older setup that updated, it will fail. There will need to be a default value here of 1 initially, that will be overridden if the new variable is found in KAMP_Settings.cfg. You should also add some verbosity for this so the end user can verify that the correct density was applied.

Additionally, adaptive meshing is baked into stock klipper now, so KAMP’s meshing has pretty much been sunset. I don’t see a problem with adding this functionality though, it just needs to be done in a matter that won’t break working setups for those who don’t read the commit history. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants